SharePoint Development Blog

Nick Boumans
View my LinkedIn Profile Follow me on Twitter View my Profile on FaceBook View my projects on CodePlex View my presentations on SlideShare



Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Use a People Picker Control in InfoPath 2007

Default there's no People Picker control in InfoPath, however you can get a People Picker control, even in browser mode.
There is a Active-X control which takes care of the part named "Contact Selector Control".

Add Contact Selector to Controls Pane

  1. On the bottom choose "Add or Remove Custom Controls"
  2. Click "ADD"
  3. Select Active-X
  4. Select "Contact Selector", click Next
  5. Select don't include a .cab file
  6. From the dropdown field select "Field or Group (any data type)
  7. Click Finish

DataSource for the Contact Selector control

  1. Add non Repeating group named "group1"
  2. Add a repeating Group names "Person"
  3. Add following test field to the "Person" group (DisplayName, AccountId, AccountType)

Add Secondary datasource XMl file with details about the SharePoint Server, this is required by the form in order to validate the user against a particular sharepoint server.

  1. Open Notepad and add the following Tag <Context siteUrl="http://<servername>"/>
  2. Save the file as Context.xml (! Case Sensitive !)
  3. Add new connection as "Receive Type" and source of data as "XML"
  4. Option “Include the data as a resource file” shoule be enabled

Do you want to use more then one people picker in your form?

  1. Create a new group for the new contact
  2. Right click on the exiting Person group
  3. Click reference and point it to the new group
  4. That will copy the person xml structure under the new one
Posted: May 09 2010, 13:45 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5