Populate Repeating Table Field - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Populate Repeating Table Field

Last post 03-31-2008 12:08 PM by ahieatt. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-09-2006 10:51 AM

    • marks
    • Not Ranked
    • Joined on 09-27-2005
    • Posts 4

    Populate Repeating Table Field

    I am trying to populate the field of a Repeating Table.

    Field 'One' of the Repeating Table is a Dropdown List box connected to a WSS List Library consisting of only two columns A & B. The drop
    down selects data from column A into field 'One'(This all works OK). After selecting the data I populate Field Two in the Repeating Table with the contents of column B.
    It works OK until I start adding more rows to the Repeating Table and then the data in Field Two is not correct - it mostly just repeats the contents of the previous row.

    Does anyone know of a solution that does not require changing code?

    Thanks for your help!
  • 11-09-2006 04:56 PM In reply to

    Re: Populate Repeating Table Field

    Hello Marks,
    Have you tried these linkshttp://www.infopathdev.com/howto/tutorials/default.aspx?i=075c4e8e56db4fa5bd63615b712c0d91

    Hope this helps!
  • 03-31-2008 12:08 PM In reply to

    • ahieatt
    • Not Ranked
    • Joined on 03-05-2008
    • Baltimore, MD
    • Posts 5

    Re: Populate Repeating Table Field

    You may have already found a solution for this, but in case you haven't...

    I was having problems trying to get conditional formating for other elements (a check box) to recognize the multiple lines of a repeating table.  The solution was the reference to the table.  If you use the InfoPath interface the coding will only refer to the first line.  You have to manually go into the file and change the reference, or use the "expression" function to dig below the first line.  The key... brackets!

    Here's an example:

    I wanted a check box to be selected if the value for a drop-down in the repeating table was "1".  When I set the conditions using the InfoPath interface it came out like this:

    my:group1/my:Observations/my:Item (starts-with(my:Item, "1."))

    That worked for only the first line of the table.  The solution:

    my:group1/my:Observations [ (starts-with(my:Item, "1.")) ]

    You can modify this by using the "expression" option and typing in the code, or you can change the code directly.

    My hunch is you have the same issue.  I'm a newbie at this, so I may be totally wrong. 

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.