sharepointListAdapter Element
Contains the data adapter information to query a SharePoint list or library.
Type
|
Child Elements
Element | Description |
---|---|
field | Contains field mapping information for each field in a SharePoint list and the corresponding name used in Microsoft Office InfoPath 2007. |
Attributes
Attribute | Type | Required | Description | Possible Values |
---|---|---|---|---|
name |
|
Yes | Contains the name of the sharepointListAdapter and is used as the secondary data source name. | minLength = 1 maxLength = 255 pattern = ([^\p{Z}\p{Cc}\p{Cf}\p{Cn}])(([^\p{Zl}\p{Zp}\p{Cc}])*([^\p{Z}\p{Cc}\p{Cf}\p{Cn}]))? |
|
||||
siteUrl |
|
Yes | Contains the Uniform Resource Locator (URL) of the SharePoint site. | string |
|
||||
sharepointGuid |
|
Yes | Contains the GUID of the SharePoint list. | string |
|
||||
infopathGroup |
|
Yes | Contains the name of the group under which all fields in the SharePoint list will be stored. | string |
|
||||
queryAllowed |
|
No | Specifies whether the adapter can be used for querying the data source. Always set to "yes" for the sharepointListAdapter. |
|
|
||||
submitAllowed |
|
No | Specifies whether the adapter can be used for submitting to the data source. Omitted for the sharepointListAdapter, corresponding to a default value of "no". |
|
|
Definition
|
Remarks
Each field in the SharePoint list that is returned by the data adapter will have a field element. The sharepointListAdapter can only be used as a secondary data source and does not support a submit action.
Example
The following is an example of the sharepointListAdapter element:
|