Addming more than 1 rows in repeating table - InfoPath Dev
in

InfoPath Dev

Addming more than 1 rows in repeating table

Last post 03-07-2006 06:57 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-07-2006 02:47 AM

    • wongz
    • Not Ranked
    • Joined on 02-22-2006
    • Singapore
    • Posts 9

    Addming more than 1 rows in repeating table

    hi,
    i would like to know how to add more than 1 rows in the repeating table.
    I create a repeating table where it will contain more than 5 Products. and the user can add more product they wish to.thus by default when the user launch my infopath i wanted to display 5 new products.

    Please advise.

    With regards
  • 03-07-2006 06:57 AM In reply to

    Re: Addming more than 1 rows in repeating table

    You could do this by editing the template.xml file, or with code in the OnLoad event.

    Editing the template.xml would entail simply adding the appropriate xml to display by default. In this case it would be five instances of the row that you are talking about. To get at the template.xml if you are not using managed code choose Extract Form files from the File menu, choose a folder to extract to, and then open the template.xml in a text editor.

    Using code in the OnLoad event handler would create a clone of the row, and use the appendChild() method to add the rows programmatically.

    I wold recommend editing template.xml. Hope this helps!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.