Tuesday, May 7, 2013

Redirect to new person.aspx page from People search results

Leave a Comment
My site has build in page called person.aspx, which is redirected from people search results on clicking person name or image in people results.

But suppose if you want to redirect to another page, let say new-person.aspx, then you need to customize redirection url in people core results.

To redirect user to new-person.aspx follow this steps

  •  Go to People Search results page.
  •  Edit People Search core results web part.
  •  Under Display Properties, uncheck "Use Localization Visualization"
  •  Click "XML Editor.."
  •  Copy content to text editor( word or notepad ++)
  •  Search for text " 
  • Modify href property  of a tag under div.
  • $url variable contains redirect url, which redirects to person.aspx
As sharePoint 2010 supports XSLT 1.0 , you cannot use replace function which is part of XSLT 2.0

But here we can make use of other xslt functions such as concate,substring-before and substring-after

Replace this statement href="{ddwrt:EnsureAllowedProtocol(string($url))}" with


  • After modification copy content to XML Editor pane, 
  • Hit apply and save.
  • Refresh page

Now on clicking user picture in people search results, it will redirect to new-person.aspx

Happy Coding !


Thursday, May 2, 2013

BCS application throwing "There are no addresses available for this application"

Leave a Comment

Today morning I created brand new BCS application.  Creation process went well,  and it  was created successfully. Soon after it, I went back and clicked "BCS Service"  from manage service applications, and got  following error.

The problem occurs because Business Data Connectivity Service  is stopped. To start BCS Service

Go to Central Administration -->  Application Management --> Under Service Applications
Click Manage services on server. Start business data connectivity service.

Perform iis reset.

And it started working.

I hope it helps !