CJ

The circle of life – ** .Net – Training – MOSS **

  • Past Post

  • Vistor Locations

Data View Part Extension Functions

Posted by Clayton James on October 8, 2008

Great guide to ddwrt functions. http://msdn.microsoft.com/en-us/library/aa505323.aspx

“During the XSLT transformation process, the Data View Web Part uses an XSLT extension object that provides several functions in the ddwrt namespace. These functions perform tasks such as accessing properties of a SharePoint list or firing events to connected Web Parts. This article describes the functions implemented by the extension object.”

One of the nice functions I have used recently is UserLookup. I used this to get the current users email address to display their presence information.

UserLookup

public string UserLookup(string UserName, string FieldName);

Returns e-mail, ID, or login information about the specified user.

The UserName parameter contains the value as defined in SPUser.Name, for example, DOMAIN\User. It is in the format defined by FieldName, which can be either "Email", "ID", or "Login".

 

Another I use regularly is FormatDate.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: