Friday, January 2, 2009

Context changes in Sharepoint Designer

current user's permission for that item is shown in the 'perm' attribute in SPD code view.
Open SharePoint Designer 2007 and navigate to the page containing the Data Form Web Part. (follow the "Steps to Reproduce" above) In Code view,search for the following peace of code:Perm="{ddwrt:CurrentRights()}" Replace it with the following peace of code:Perm="{@PermMask}" Save the page.

permanent solution:
Go to the folder where SharePoint Designer 2007 is installed. Usually it will be: "c:\Program Files\Microsoft Office\Office12". Find the file CAML2XSL.XSL and open it in a text editor (I used Notepad). Look for the following peace of code (There should be only one occurrence of it) : ddwrt:CurrentRights() Replace it with the following peace of code: @PermMask Save the file

No comments:

Post a Comment