Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mapping Infopath fields to Sharepoint columns

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.

like image 998
Sam Avatar asked Dec 11 '08 07:12

Sam


People also ask

How do I link InfoPath to SharePoint?

Add an InfoPath Form to a SharePoint Document Library or Update an Existing InfoPath Form in a SharePoint Library. Open InfoPath, click File, click New, then click SharePoint List. Enter the web address of your SharePoint site in the Data Connection Wizard, then click Next.

What will replace InfoPath in SharePoint?

Customize SharePoint with Power Apps Use Power Apps, the successor to InfoPath, to improve business productivity in SharePoint without writing code.

How do I add fields to InfoPath form?

In the Data source task pane, right-click the field to which you want to add a field, and then click Add on the shortcut menu. In the Name box in the Add Field or Group dialog box, type a name for the new field.


2 Answers

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:

  • Store Infopath form to one library (along with non-repeating fields)
  • Use one of these custom activities to extract data from repeating table and copy it to another list
  • Create a custom data view or a web part to display these items (if necessary)

This approach can be useful if you need to do some additional tasks with the repeating data.

like image 151
Toni Frankola Avatar answered Oct 26 '22 23:10

Toni Frankola


When you are promoting fields within a repeated section into SharePoint columns, the options available are to promote the column as:

  • first (i.e. only the first selection is promoted)
  • last
  • count
  • merge (I believe this merges all the selected values together into a single entry)

screenshot http://img4.imageshack.us/img4/5539/repeatinggrouptr3.png

like image 44
Tundey Avatar answered Oct 26 '22 23:10

Tundey