Additional Web Part Configuration

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.

Page Utility Configuration

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.

Form Decorator Setup

(Located under Form Decorator Properties.)

<d>

<s>

<DecorationZoneID>viewstodecorate</DecorationZoneID>

<Skin>WebBlue</Skin>

</s>

</d>

 

Window Setup

(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>

 

SharePoint List Data Provider Configuration

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.

Include Site List Data

Make sure this property is selected with a check mark.

Extra Data

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..

Query Property

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.

Query Lists

Set this property as:  Contacts

Query View Fields

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"

                />

Query Row Limit

This should be set to 0

Query One List at a time

Make sure this property is selected with a check mark.