2.2.46 sharepointListAdapter

The sharepointListAdapter element specifies the properties of a data adapter that MUST be created to query a protocol server list. The protocol server list MUST be used as a secondary data source, and the protocol server list data adapter MUST NOT support submitting the form file.

Parent Elements

dataAdapters

query

Child Elements

field

Attributes:

infopathGroup: The name of the parent XML element under which all query data is saved in the form file. The data adapter MUST save each returned query data item as a child of the specified element.

name: The name of the data adapter. The specified name MUST be unique for all data adapters within the form template.

queryAllowed: Specifies whether the data adapter is allowed to query the protocol server list (1) for data. If this attribute is not present, its value MUST be interpreted as "yes".

sharepointGuid: The GUID of the protocol server list.

siteUrl: The URL of the parent protocol server site (2).

submitAllowed: Specifies whether the data adapter is allowed to submit data to the protocol server list (1). This attribute MUST NOT be set to "yes". If this attribute is not present, its value MUST be interpreted as "no".

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

 <xsd:element name="sharepointListAdapter">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element name="field" minOccurs="0" maxOccurs="unbounded">
         <xsd:complexType>
           <xsd:attribute name="sharepointName" type="xsd:string" use="required"/>
           <xsd:attribute name="infopathName" type="xsd:string" use="required"/>
           <xsd:attribute name="isLookup" type="xsf:xdYesNo" use="optional"/>
         </xsd:complexType>
       </xsd:element>
     </xsd:sequence>
     <xsd:attribute name="name" type="xsf:xdTitle" use="required"/>
     <xsd:attribute name="siteUrl" type="xsd:string" use="required"/>
     <xsd:attribute name="sharepointGuid" type="xsd:string" use="required"/>
     <xsd:attribute name="infopathGroup" type="xsd:string" use="required"/>
     <xsd:attribute name="queryAllowed" type="xsf:xdYesNo" use="optional"/>
     <xsd:attribute name="submitAllowed" type="xsf:xdYesNo" use="optional"/>
   </xsd:complexType>
 </xsd:element>