A specifically configured Page Utility and a specifically configured SharePoint List Data Provider are both required in order to use the Grid Display Adapter 2.0 with actions. This section describes how those two web parts must be configured.
When an action is called, the Page Utility defines the window that is displayed. The Grid Display Adapter’s HTML Before property references the Page Utility by name, identifies the action to execute, and tells the Page Utility to load the action. A JavaScript helper file provided by CorasWorks (click here to download the file) makes sure all of this happens. It is meant to be used as is; modifications are not supported.
The Page Utility must be placed either on the same page as the Grid Display Adapter 2.0 or on the master page. In the example provided by CorasWorks, the Page Utility is placed on the master page so it can be called from all of the pages in the site.
In this example, the current page folder is used. However, the Common Use Variables listed at the beginning of this topic are supported.
(Located under Form Decorator Properties.)
<d>
<s>
<DecorationZoneID>viewstodecorate</DecorationZoneID>
<Skin>WebBlue</Skin>
</s>
</d>
(Located under Page Loader Setup Properties.) This is the main property for the Page Utility. It defines what is going to happen when the action is called.
<Window>
<Setup>
<ID>ModalForm</ID>
<Width>800</Width>
<Height>500</Height>
<VisibleOnPageLoad>false</VisibleOnPageLoad>
<VisibleStatusBar>false</VisibleStatusBar>
<Modal>true</Modal>
<Title>CorasWorks Action</Title>
<Skin>WebBlue</Skin>
</Setup>
</Window>
This section describes how the SharePoint List Data Provider must be configured in order to work with the Grid Display Adapter 2.0 and actions.
Make sure this property is selected with a check mark.
This should be defined as: SiteURL, ObjSiteURL, UniqueId
These are hidden SharePoint columns that provide background information on each item and they are required if you want to include actions in your Grid Display..
This must be set to QUERY. If you use the List Method of configuring the SharePoint List Data Provider, you will not get the proper columns.
Set this property as: Contacts
These are the fields that will be used going forward.
<FieldRef
Name="Created"
/>
<FieldRef
Name="Author"
/>
<FieldRef
Name="Modified"
/>
<FieldRef
Name="Editor"
/>
<FieldRef
Name="UniqueId"
/>
<FieldRef
Name="Title"
/>
<FieldRef
Name="FirstName"
/>
<FieldRef
Name="Company"
/>
<FieldRef
Name="JobTitle"
/>
This should be set to 0
Make sure this property is selected with a check mark.