Sunday, April 20, 2014

Create a dashboard in Sharepoint 2010 with SharePoint List as a Datasource

In Continuation with my previous posts on how to create a dashboard and a KPI and about various data sources for dashboard, in this post I will add the steps to create a Dashboard with SharePoint List as a Datasource

Important things to remember -

1. The data from the SharePoint lists can only be read by using PerformancePoint Services; any editing of the data must be done from SharePoint Server.
2. You can connect to any kind of SharePoint list.

Steps to create a SharePoint list datasource are :

1. Right-Click the Data Connections folder in the Workspace Browser, and then select New Data Source.

2. In the Category pane of the Select a Data Source Template dialog box, click Tabular List and then click SharePoint list. Click OK.

3. In the left navigation pane (workspace browser), type a name for your data source.

4. In the center pane, click the Editor tab. In the Data Source Settings section, select the method on which to authenticate to the data source.

5. In the Cache Lifetime drop-down list, type the refresh rate (in minutes) for the cache. Data from this data source will update at this interval.

6. In the Connection Settings section, type the URL to the SharePoint site.

7. In the SharePoint Site List drop-down, select a List collection.

8. In the List drop-down list, select the desired SharePoint list from the collection.

9. Click Test Data Source to confirm that the connection is configured correctly.

 

Create a dashboard in Sharepoint 2010

In continuation with my earlier Post about performance point and the prerequisites for creating a dashboard. In this post we will look at the steps to create a new dashboard and a scorecard.

First lets look a quick summary about KPI,Scorecard and Dashboards.

Summary -

KPI's are indicators to measure certain goals in the company. You can create KPI's from different back-end sources using Performance point.

ScoreCard - This is collection of KPIs. You drag-drop your KPI's to a scorecard.

Reports - Lastly, you create reports to be added to your dashboard.

All the above components will create a dashboard for you. Now lets look at them in Detail.

To Create a Dashboard Open the Dashboard Designer. To do this follow the Steps below
1. In Internet Explorer, navigate to the Business Intelligence Center site that you must have created.
2. Click the Create Dashboards link, and then click Start using PerformancePoint Service link.
3. From the PerformancePoint Services page, click the big button that says Run Dashboard Designer. This will download and install the PerformancePoint Dashboard Designer to your workstation.
Once the executable fi le is downloaded and installed on your computer, the PerformancePoint Dashboard Designer appears. Once the Dashboard Designer is installed, you have an empty workspace. A workspace is a primary container for all of the elements that you can use to build your dashboard, and it keeps its content synched with the site from which it was launched.

Creating Your Dashboard -

Before we get started with building a dashboad lets just create a Dashboard Datasource first.

To create a Dashboard Datasource follow the below steps :

1. Right – click the Data Connections folder in the Workspace Browser, and then select New Data Source.
2. From the Select a Data Source Template menu, choose the Analysis Services template to create a datasource that connects to Microsoft SQL Server Analysis Services, and click OK. Next Configure the Connection Settings.
3. Watch for Cache Lifetime setting. The value of this textbox (in minutes) indicates the interval of refreshing the dashboard information from the backend datasource.
4. Click Test Data Source to make sure that your connection settings are correct.
5. Switch to the Properties tab and change the Name of your datasource.
6. Save the new datasource by right – clicking it in the Workspace Browser, and then selecting Save.

Creating KPI –

Now that we have our connection ready lets create our key performance indicator (KPI). In order to create a new KPI to track what ever you wanna track for your company, you need to follow these steps:

1. Right – click the PerformancePoint Content folder and select New KPI.
2. In the Select a KPI Template dialog, select Blank KPI, and then click OK.
3. And once you have your KPI created, you can define your actual and Target values. Also, select the data source and the measure.
4. Click OK to close the dialog.
5. Select the Target row, and click the Set Scoring Pattern and Indicator button in the Thresholds area.
6. Next, In the Edit Binding Settings dialog, select the fi rst option (Band by normalized value of Actual/Target) from the Banding method drop – down, and then click Next.
7. In the Select an Indicator step, select an indicator to use for the target that clearly shows whether the goal is met. You can choose from a collection of indicator templates available in PerformancePoint Dashboard Designer. Once you are done, click Next.
8. In the last step of the wizard, leave the value intact and click Finish.
9. Save the KPI by right – clicking it in the Workspace Browser, and then selecting Save.

 

Wednesday, April 16, 2014

oracle case and decode function syntax

Oracle doesn't provide such IIF Function. Instead, try using one of the following alternatives:

DECODE Funciton:

SELECT DECODE(EMP_ID, 1, 'True', 'False') from Employee

CASE Function:

SELECT CASE WHEN EMP_ID = 1 THEN 'True' ELSE 'False' END from Employee

 

Thursday, March 20, 2014

How to customise SharePoint 2010 Blog Post

This article shows you how to customise SharePoint 2010 Blog Post's look on the Home page

From:

To (include Area information):

Note: Area is an additional column to the Post list.

Follow the following steps to customise the Blog Post look:

  • Copy the Blog Post layout template 'blog.xsd' from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSL from a SharePoint web front server and store it somewhere that is visible the Blog site.

In this example, I will create a folder called xsl under the Blog site root folder and store the xsd there. I will also rename it to BlogPost.xsl

Note:

To create the new folder, you can open the Blog Site in SharePoint Designer, click on All Files and then click on the New Folder button

To import the blogPost.xsl file, click the Import button and select the file

  • Open the BlogPost.xsd in SharePoint designer and look for the section with start with this comment

<!– BaseViewID='0′ and TemplateType='301′ is Home Page view for Blog's posts list –>

  • Find the <div> that define the layout for PostCategory and add the following text after that

<div>

<xsl:for-each select="$Fields">

<xsl:if test="@Name='Area' and not ($thisNode/@Area=")">

<!– output the Area field as "Area: " followed by the area –>

Area<xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">:&amp;nbsp;</xsl:text>[<xsl:apply-templates select="$Fields[@Name='Area']" mode="PrintField"><xsl:with param name="thisNode" select="$thisNode"/></xsl:apply-templates>]

</xsl:if>

</xsl:for-each>

</div>

Note: @Name should be set to the correct field name syntax. To access the list's xml data, follow the instruction here http://vspug.com/dwise/2008/01/10/accessing-sharepoint-xml/

  • Save changes to the BlogPost.xsd file
  • Open the default.aspx in SharePoint Designer and make sure Area is included in the ListView Webpart column lists.
  • Select the Web part and click on the Add/Remove Columns button and then make sure Area is there.

  • Save changes to the default.aspx
  • Browse the default.aspx page and click on Site Actions\Edit Page

  • Edit the Post Web Part

  • Set the XSL Link to xsl/blogPost.xsl and click OK

  • Test the changes to make sure Area is included

 

Duplicated people search result

When searching for a person in Fast Search Centre, duplicated user profile returns.

Cause

Multiple People Content Sources are defined for the same farm. You only need to have one Content Source for user profile crawling.

Resolution

  • Make sure that you use the FAST Query SSA to crawl User Profile. You should not use the FAST Content SSA.
  • Make sure you only define one Content Source for User Profile Crawling.
  • Reset Index
  • Re-start Full Crawl

 

How to install and configure Adobe IFilter For SharePoint Search

These are the instructions to set up SharePoint to crawl and display pdfs in the results:

  • Download the ifilter msi file from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025
  • Unzip the downloaded file and ensure the msi file is in a folder of your choice
  • Find an icon for PDF and save it as ICPDF.gif to the same folder
  • Create a new text file called ifilter-install.txt in the same folder and paste the following

# Enter the following variable…

$searchSSAName = "Search Service Application Name" #Enter the name of the Search Service Application here

Write-Host "Loading SharePoint 2010 PowerShell cmdlets – Global"

Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue

$ParentDirectory = Split-Path $pwd -parent

cmd.exe /C "$ParentDirectory\PDFFilter64installer.msi /passive"

write-host $ParentDirectory

copy-item "$ParentDirectory\ICPDF.gif" -Destination "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\"

$pngmappingkey = ' <Mapping Key="png" Value="icpng.gif"/>'

$pdfmappingkey = ' <Mapping Key="pdf" Value="ICPDF.gif"/>'

$dociconxmlpath = "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML"

$dociconxmlentry = "$pngmappingkey`r`n$pdfmappingkey"

(get-content $dociconxmlpath\DOCICON.XML) | foreach-object {$_ -replace "$pngmappingkey", "$dociconxmlentry"} | set-content $dociconxmlpath\DOCICON.XML

New-Item -path "HKLM:\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf" -erroraction SilentlyContinue

New-ItemProperty "HKLM:\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf" -Name "(Default)" -PropertyType string -value "{E8978DA6-047F-4E3D-9C78-CDBE46041603}" -erroraction SilentlyContinue

$searchapp = Get-SPEnterpriseSearchServiceApplication $searchSSAName -erroraction SilentlyContinue

$searchapp | New-SPEnterpriseSearchCrawlExtension "pdf" -erroraction SilentlyContinue

cmd.exe /C iisreset

net stop "SharePoint Server Search 14″

net start "SharePoint Server Search 14″

  • Open the ifilter-install.txt file and enter the $searchSSAName variable. This should be the exact name of the Search Service Application.
  • Rename the attached ifilter-install.txt to ifilter.ps1
  • Run the ps1 file on SP front-ends…

 

Missing FAST Search keywords, site promotion and demotion, user context from Site Collection Administration

Symptoms

When you go to Site Settings, the following items are missing from the Site Collection Administration:

  • FAST Search keywords
  • FAST Search site promotion and demotion
  • FAST Search user context

Cause

This usually happens when you add FAST Search to an existing SharePoint 2010 farm.

The feature that activates these functions may not enable for the site collection.

Resolution

Run the following command on the SharePoint server in Powershell as Administrator (replace [SiteURL] with the actual URL):

Enable-SPFeature -id "5EAC763D-FBF5-4d6f-A76B-EDED7DD7B0A5″ -Url  [SiteURL]