CJ

The circle of life – ** .Net – Training – MOSS **

  • Past Post

  • Vistor Locations

Retrieving data from InfoPath repeating tables

Posted by Clayton James on November 3, 2009

When trying to retreive and view data from InfoPath repeating tables using a no code solution you have a couple of options.

1.
When publising your form you can select the column in the repeating table and modify the column function from (first) to (merge). This merges all the repeating values into one column so you can see all the values in your SharePoint View. One problem with this approach
is that the output doesn’t contain a delimiter for each column value so this makes it difficult for reporting

2.
Another option is to add a textbox to the form which will concatinate the values and seperate them via a deliminator (in this case a semi-              colon ‘;’).

In the value area of the textbox add the following formula.
xdMath:Eval(xdMath:Eval(/my:travelRequest/my:trips/my:trip, ‘concat(concat(concat(my:Airline_Name, concat(” – “, my:Flight_Identifier)), concat(” – “, my:Destination_EndDate)), “;”)’), “..”)

This outputs “Air France – GL3444 – 2009-11-05;Qantas - DJ3456 – 2009-11-27;”

To display this information in a SharePoint view you need to create a column in the Form Library for example FlightDetails and when you publish the form add a column mapping that maps FlightDetails to your textbox identifier.

Fill out a form and view the Flight information in a SharePoint view concatenated via a semi-colon. Now we have a ‘;’ deliminator we can easily extract/filter data when exported to an excel spreadsheet.

If you want to you can hide the textbox so users don’t see the value when filling out the form.

10 Responses to “Retrieving data from InfoPath repeating tables”

  1. Nichelle said

    Hi CJ,

    Thanks for this solution but I am still having some problems.

    I have 2 fields in a repeating table – TL_Description and TL_Platform.
    I was able to build half of the formula – concat(TL_Description, ” – “, TL_Platform). And it is working.

    But I don’t understand how to build the formula to capture all the data in the repeating table.

    Please advise.

    Thanks,
    Nichelle

  2. Thank you. A problem solved!

  3. I have 2 fields in a repeating table – TL_Description and TL_Platform.I was able to build half of the formula – concat(TL_Description, ” – “, TL_Platform). And it is working.
    +1

  4. Azam said

    Thanks for the information. I have tried this but I do not see any of the repeating fields in the publish wizard. I also tried the second approach which seems to just repeat the information it finds in the first record, e.g. if the values I expect back are 1;2;3;4 all I get is 1;1;1;1

    Any advice would be appreciated.

    Thanks

  5. Maria F said

    Hopefully you are still monitoring this post.

    I am working with a repeating section, not a repeating table. I have about 5 fields within this section that I want to merge into SharePoint columns. I am having a little trouble understanding how I can set up this formula and what it will look like.

    With your solution would my 5 columns be merged together with a semicolon delimitor at the end?

    Example: column1 – column2 – column3 – column4 – column5;

    Do they have to be merged together? Can I have one merged column displayed at a time?

    Example: column1;

  6. electric snow blower…

    [...]Retrieving data from InfoPath repeating tables « CJ[...]…

  7. free website audit report, seo audit document, google seo audit, free seo audit tool, seo technical audit, seo audit service, search engine optimzation audit, free seo site audit…

    [...]Retrieving data from InfoPath repeating tables « CJ[...]…

  8. Seo (seo ) may be the traditionally used term in the field of “internet promotion.” i’m able to definitely point out “search engine optimization is the anchor associated with internet marketing.” i want to …skyscraper seo

  9. IM said

    IM…

    [...]Retrieving data from InfoPath repeating tables « CJ[...]…

  10. wei cheng said

    how about situation like this one? any suggestion? thanks!

    http://www.infopathdev.com/forums/p/22267/77072.aspx#77072

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.