Reputation: 133
Any one has any idea how to map an infopath field to a sharepoint column of type choice? The infopath field is a repeating field, so the user can select multiple options, I want to be able to map those to the choice field in sharepoint. Any ideas?
update: What I'm trying to do is the following. I have a choice column in sharepoint which allows user entered values. In infopath, I have a repeating field. I'm binding the field to a dropdownlist. The dropdownlist gets filled by a webservice. This dropdownlist is in a repeating section, so the user can choose to select from multiple dropdownlists. So lets say the user adds 2 dropdownlists, and selects an option from each dropdownlist. I want to be able to add those selections as choices in the sharepoint choice column.
Upvotes: 6
Views: 17439
Reputation:
Depends on the type of choice field it is. If it is a Multiple Select (checkboxes) Choice field, you can set the field through the object model (from the sharepoint site) or through the web service, by using ";#" for each item that you want to check mark, where is the value which is listed by the checkbox. I don't remember what the option is for single choice only, but it is something of the same nature. If you are talking about lookup fields, it has to do with the index number of the field from the list you are looking it up from. Also, there is additional steps if the choice field allows users to input or specify their own options.
Upvotes: 0
Reputation: 2965
When you are promoting fields within a repeated section into SharePoint columns, the options available are to promote the column as:
screenshot http://img4.imageshack.us/img4/5539/repeatinggrouptr3.png
Upvotes: 2
Reputation: 1667
SharePoint list is a flat structure, and because of that Infopath does not allow you map repeating sections to list columns.
You might wanna consider the following workaround:
This approach can be useful if you need to do some additional tasks with the repeating data.
Upvotes: 2
Reputation: 1327184
Is it not similar to Create a Repeating Cascading List from:
If it is, may be those two articles may give you some pointers.
Upvotes: 0