5/01/2011

Using URL Actions in SharePoint 2010










This is my personal format to use URL Actions in SharePoint 2010 :









Code :
  <CustomAction
Id="SimpleAction"
RegistrationType="List"
RegistrationId="104"
ImageUrl="/_layouts/images/saveas32.png"
Location="NewFormToolbar"
Sequence="10"
Title="Announcement Button"
Description="This is an announcement button.">

<UrlAction Url="javascript:alert('Itemid={ItemId} and Listid={ListId}');"/>

</CustomAction>

0 comments: