您的位置:首页 > 编程语言

深入浅出InfoPath——获取SharePoint群组中用户(无代码)

2011-10-11 15:37 344 查看
一、增加第二数据源

使用GetUserCollectionFromGroup Web Service

二、修改数据源的定义文件

2.1 解压缩xsn文件

GetUserCollectionFromGroup, GetUserCollectionFromGroup1, GetUserCollectionFromGroup2. Open the GetUserCollectionFromGroup xsd and search for query fields. Replace that element with the following.

2.2、修改

<xsd:element name="queryFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="GetUserCollectionFromGroup">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="1" name="groupName" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>


2.3、修改

open the GetUserCollectionFromGroup1 and search for ‘GetUserCollectionFromGroup' and replace that element with the following.

<s:element name="GetUserCollectionFromGroup">
<s:complexType>
<s:sequence>
<s:element name="Users" minOccurs="0" maxOccurs="1">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="User">
<s:complexType>
<s:attribute name="Notes" type="s:string"></s:attribute>
<s:attribute name="Name" type="s:string"></s:attribute>
<s:attribute name="IsSiteAdmin" type="s:string"></s:attribute>
<s:attribute name="Sid" type="s:string"></s:attribute>
<s:attribute name="ID" type="s:string"></s:attribute>
<s:attribute name="LoginName" type="s:string"></s:attribute>
<s:attribute name="Email" type="s:string"></s:attribute>
<s:attribute name="IsDomainGroup" type="s:string"></s:attribute>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>


2.4、打开main.xsn 另存为xsn文件

三、使用修改后的第二数据源
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: