Infopath 2003: Populating text box with repeating table information. - InfoPath Dev
in

InfoPath Dev

Infopath 2003: Populating text box with repeating table information.

Last post 02-16-2010 11:13 AM by Hoppity. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-06-2009 10:39 AM

    • nebock
    • Not Ranked
      Female
    • Joined on 03-06-2009
    • Indianapolis, IN
    • Posts 6

    Infopath 2003: Populating text box with repeating table information.

    I have a form with two repeating tables in it.  One repeating table allows the person filling out the form to add rows as this is for user information, the other does not, as it is a static list to make selections from.  I have the data filtered so that it will populate a text box in a different view.  This is to allow users to confirm their requests.  I need for these to be simple text boxes because after the request is confirmed then submitted it is sent to an email web service that requires a certain type of formatting.

    The problem I'm having is that the text boxes in the second view are only pulling the first row of the two repeating lists.

    Is there a way that I can populate all of the information in the tables into the text boxes?  The formatting doesn't need to be pretty, it's mainly so that the information comes through in the ticket that is generated by the email service.

    Also, the second table only populates the values that are selected.  I have this set up as far as the data source is concerned with a group that has two field elements, then I've added the other options through Tools -> Default Values.

    -We're sitting in a cave at the end of the world, cooking and eating our friends.
  • 03-08-2009 08:51 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Infopath 2003: Populating text box with repeating table information.

  • 03-09-2009 04:19 PM In reply to

    • nebock
    • Not Ranked
      Female
    • Joined on 03-06-2009
    • Indianapolis, IN
    • Posts 6

    Re: Infopath 2003: Populating text box with repeating table information.

    That's not quite what I'm looking for.  The repeating tables are already populated.  I need for the information in the tables to then populate text boxes in a different view of the form but the text boxes are only being populated with the first row of the table.  Thanks though.

    -We're sitting in a cave at the end of the world, cooking and eating our friends.
  • 02-16-2010 11:13 AM In reply to

    Re: Infopath 2003: Populating text box with repeating table information.

     I am attempting something similar.  I have repeating tables populated by users.  I want to grab one of the columns from the table and include it in the body of an email.  Right now, I am using "XDocument.DOM.selectSingleNode( "//my:myFields/my:TDYDestinationOption/my:TDYDestinationSection/my:TDYDestination" ).text" to pull the data, but am only pulling the first value of the table.  How can I pull all of the values?

     Here is my code using JScript in Infopath 2003:

     var body = XDocument.DOM.selectSingleNode( "//my:myFields/my:TDYDestinationOption/my:TDYDestinationSection/my:TDYDestination" ).text;

    XDocument.UI.ShowMailItem ("","","","",body);

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