Setting two different textbox controls from one repeating field - InfoPath Dev
in

InfoPath Dev

Setting two different textbox controls from one repeating field

Last post 06-06-2007 09:22 AM by Greg Collins. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-04-2007 11:31 AM

    Setting two different textbox controls from one repeating field

    I have two texboxes bound to the same child repeating element. root/parent/child

    <root>
     <parent>
      <child attr="value1">1</child>
      <child attr="value2">2</child>
      <child attr="value2">3</child>
     </parent>
    </root>


    I want textbox1 to display the value of child when the attribute attr is value 1 i.e.child/[@attr="value1"] . Similarly, i want the contents of textbox 2 to be whatever is the value of child/[@attr="value2"]

    Is this possible?

    Thank you
    Tanveer Rashid

    Filed under:
  • 06-05-2007 01:16 PM In reply to

    Re: Setting two different textbox controls from one repeating field

    You can do this, but you must wrap the text box in a repeating table or repeating section. Then you place a filter on that repeating table/section as you describe. Then only the one text box will show which is correctly bound to the node you want. Be sure to turn off the insert/delete feature of the repeating control.
  • 06-05-2007 09:34 PM In reply to

    Re: Setting two different textbox controls from one repeating field

    Thank you for your reply.

     There is the requirement that the text boxes would need to be placed at different places on the form section and not together. Or we may need to place the text boxes side-by-side

     Is there a way to achieve this?

     

  • 06-06-2007 09:22 AM In reply to

    Re: Setting two different textbox controls from one repeating field

    Yes, you can do just that with what I described previously. The requirement is that each text box (doesn't matter where in the view) be inside a/the repeating table/section. The filter or conditional formatting, used to ensure that only the specified text box shows, is placed on the repeating control.
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.