Wednesday, September 15, 2010

Get User Email in MatchPoint

If you want to show the user name with a email link in MatchPoint, you can use the SPHelper.GetUser() method. In a DocLib you can use the fields "Editor" or "Modified_by".

In the following example I have a ListDataProvider with a XslTransformer. The first thing we have to do is a mapping.

Mapping of the DataItem

If the field you want to show (Editor) is of type SPUserField you should cast it to String with ToString() or DisplayString.

Now you can you the mapping in the XSLT.


No comments: