Submit Multiple Users to sharepoint list
-
2012年8月2日 0:55
Hey Guys,
I have a form that submits a variety of data to a Share point Library via a CAML query. I have been requested to add a field that can hold multiple users.
I have created the mult-user column in the SharePoint Library and can successfully submit users to it with the following syntax:
ID;#username;#ID;#username;#ID;#username
The problem I am having is within my InfoPath form is getting these ID's for each of the inputted users and formatting to the above syntax.
I have a person picker that allows multiple selections and can only select people. I also have a data connection to the User Information List of SharePoint that returns users and ID's for each user. Normally I can just query for an individual user and to get the relevant ID but this is proving trickier with the multi users.
Does anyone have another method for getting these ID's for each of the users in the person picker and then formatting it to the syntax mentioned above?
Unfortunately since this a web enabled form I am limited to the code I can use for the form.I appreciate any assistance anyone can give.
全部回复
-
2012年8月3日 9:32版主
Hi Campburn,
This is not possible with OOB solution and we can only use custom code. You can create a form with code behind and publish it as an administrator approved form follow these references.
http://spsfactory.blogspot.com/2007/01/walkthrough-publishing-administrator.html
http://technet.microsoft.com/en-us/library/cc262921.aspxThanks & Regards,
EmirEmir Liu
TechNet Community Support
- 已标记为答案 Emir LiuMicrosoft Contingent Staff, Moderator 2012年8月9日 5:58

