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

本文介绍如何增加及配置第二数据源,并详细说明了XSD文件中针对特定元素的修改步骤,包括解压XSN文件、更新查询字段及用户集合等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 一、增加第二数据源

使用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、修改

 

  1. <xsd:element name="queryFields">  
  2. <xsd:complexType>  
  3. <xsd:sequence>  
  4. <xsd:element name="GetUserCollectionFromGroup">  
  5. <xsd:complexType>  
  6. <xsd:sequence>  
  7. <xsd:element minOccurs="0" maxOccurs="1" name="groupName" type="xsd:string"></xsd:element>  
  8. </xsd:sequence>  
  9. </xsd:complexType>  
  10. </xsd:element>  
  11. </xsd:sequence>  
  12. </xsd:complexType>  
  13. </xsd:element>  
<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.

  1. <s:element name="GetUserCollectionFromGroup">  
  2. <s:complexType>  
  3. <s:sequence>  
  4. <s:element name="Users" minOccurs="0" maxOccurs="1">  
  5. <s:complexType>  
  6. <s:sequence>  
  7. <s:element minOccurs="0" maxOccurs="unbounded" name="User">  
  8. <s:complexType>  
  9. <s:attribute name="Notes" type="s:string"></s:attribute>  
  10. <s:attribute name="Name" type="s:string"></s:attribute>  
  11. <s:attribute name="IsSiteAdmin" type="s:string"></s:attribute>  
  12. <s:attribute name="Sid" type="s:string"></s:attribute>  
  13. <s:attribute name="ID" type="s:string"></s:attribute>  
  14. <s:attribute name="LoginName" type="s:string"></s:attribute>  
  15. <s:attribute name="Email" type="s:string"></s:attribute>  
  16. <s:attribute name="IsDomainGroup" type="s:string"></s:attribute>  
  17. </s:complexType>  
  18. </s:element>  
  19. </s:sequence>                    
  20. </s:complexType>            
  21. </s:element>   
  22. </s:sequence>  
  23. </s:complexType>  
  24. </s:element>  
<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文件

三、使用修改后的第二数据源

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值