Contact Selector in InfoPath 2007 and 2010
来源:互联网 发布:权威的时尚杂志 知乎 编辑:程序博客网 时间:2024/05/17 12:51
There are heaps of articles and blogs out there that describe how to create the Contact Selector control in InfoPath 2007. I guess I just want to take the opportunity to refresh everyone’s mind on this and also show you how to create the Contact Selector in InfoPath 2010 for an InfoPath 2007 form.
Let’s start with InfoPath 2007:
- Creating the control:
- In InfoPath select Insert -> More Controls
- A task pane comes up and on the very bottom you will have the option Add or Remove Custom Controls
- Select this option, Click Add in the next dialog box
- Select ActiveX Control and click Next
- Select Contact Selector from the list of controls and click Next
- Select Don’t Include a .cab file and click Next
- Select Value for the binding property and click Next
- Select Field or Group as the Field or Group Type and click Finish
- Click Close and then OK
- Creating the data structure: (Note: You have to ensure that spelling, structure and capitalisation is exactly as described in the next steps)
- Navigate to the Data Source pane in InfoPath
- Right click the node where you want the control’s data structure to sit within your form schema (e.g. right click “myFields”) and selectAdd
- Add a non-repeating group as shown below. (Note:
the name of this group is up to you) - Add a repeating group named Person as shown below
- Add 3 text fields to the repeating group, labelled DisplayName, AccountId, and AccountType
- Create a data source to specify the SharePoint server: (Note:this step is only applicable if you have client AND browser-based forms. If you have browser-only forms, the form will always run in the context of the site the form is published to)
- Open up a text editor of your choice (e.g. NotePad or WordPad)
- You can copy and paste the following:
<Context siteUrl=”http://<YourServerName>”/>
- Save the file as Context.xml
DO NOT SAVE IT AS A TEXT FILE - Return to InfoPath and select Tools -> Data Connections
- Click Add
- Select “Create a new connection to” and then “Receive data“
- Select XML document and click Next
- Browse to the Context.xml file you created earlier and select it, then clickNext
- Leave the default option selected and click Next
- Make sure “Automatically retrieve data when form is opened” is selected and clickFinish
- Add the Contact Selector to the form:
- Click on the myContactSelector group and simply drag & drop it onto the form
- The following selection comes up and you need to select Contact Selector
- Last but not least TEST YOUR FORM
Now let’s have a look at InfoPath 2010:
In InfoPath 2010 you have the Contact Selector as a ready-to go control already built in. There is no need to perform any configuration steps other than Step 3 from the instructions above. Again this only applies in case you deploy forms that will also be used on clients. Simply select the Person/Group Picker control from the controls list. InfoPath will automatically add the data structure required for the control.
- Contact Selector in InfoPath 2007 and 2010
- 转:InfoPath 中,如何验证 Contact Selector 控件是否输入了有效值,或如何强制输入? Validate the Contact Selector in InfoPath – Make the Contact Selector Man
- 转:InfoPath 中,如何限制 Contact Selector 控件中输入的用户数量? Validate the Contact Selector in InfoPath – Limit the number of names a user can
- Contact Selector Control
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- Enable InfoPath service in SharePoint 2010
- Using the Contact Selector Control
- XForms and Microsoft InfoPath
- How To: Implement a rating scale in InfoPath 2010
- Designing Forms for Microsoft Office InfoPath and Forms Services 2007
- Chapter12. Foundation Classes and selector in Objective-C
- What do /deep/ and ::shadow mean in a CSS selector?
- contact list app in android
- Pro InfoPath 2007
- 安装Office InfoPath 2007
- Infopath 2010的变化
- InfoPath
- Checking if a user is a member in a SharePoint group within web InfoPath 2010 forms
- VC命令行编译参数介绍
- 开始使用Mac OS X——写给Mac新人
- 《Unix & Linux 大学教程》 - 第二十二章(二) 学习笔记
- JAVA正则忽略大小写
- Windows Phone 7开发遇到的事:保存、读取图片
- Contact Selector in InfoPath 2007 and 2010
- VC++中使用内存映射文件处理大文件
- python学习笔记
- SSRS:Reporting Services报表制作技巧
- <jsp:include>和<%@include%>的区别
- 南京去年2万多张驾驶证过期未审-驾驶证-过期
- How To: Implement a rating scale in InfoPath 2010
- IHTMLElement和IHTMLElement2接口
- 设计模式- 使用抽象工厂实现多数据库切换实现过程