Remote Program Delivery through SharePoint; the Front End.

16 03 2010

In Dave’s previous post he talked about the back-end for our delivery of remote programs. I’m going to explain how we then surfaced this through SharePoint.

For those of you that have set up remote programs you will probably be aware of the web part for it, we found that using this didn’t give us very much flexibility in which programs are surfaced. So we came up with a couple of other methods.

The first is by far the simplest; the good old content editor web part! Just put your .rdp files in an accessable location along with some icons. Add the content editor part to the page and add the images, hyperlinked to the rdp file. Simple.

The way we now deliver remote programs is to store the rdp file, the icon and any description or meta data in a sharepoint list. We give them categories to enable us to group them and just render the list with xslt. Again very simple but very effective.

Of course all this transfers to SharePoint 2010 without issue.





XSLT get email address from person field

4 03 2010

In this brief post I will show you how to use xslt to get someone’s email address from the people picker in a SharePoint list. Before I begin I must give credit to David Botschinsky who I met at the BETT show in January. He came to me and asked about getting the email address of a person from the person lookup field in a list – He wanted to achieve this purely through the browser if possible with no code. I had a quick think and couldn’t find a way. I then received an email from David saying he did it through SharePoint designer in the end and it’s this I will share with you:

In SPD create a XSLT view of the list with the person field in. The usual <xsl:value-of select=’@person’ disable-output-escaping=”yes” /> code will return the familiar link that goes to the user information page. By changing the  ‘disable-output-escaping’ to ‘no’ you will return all the code behind this link- including the email address! Then with some xslt sub-string magic you can strip out all but the email address.

<xsl:value-of select= 'substring-before(substring-after(@person, concat("sip=",$dvt_apos)), $dvt_apos)' disable-output-escaping="no"/>

That is all there is to it!








Follow

Get every new post delivered to your Inbox.