Programatically adding to nested repeating groups - InfoPath Dev
in

InfoPath Dev

Programatically adding to nested repeating groups

Last post 05-03-2005 09:42 PM by bob_ross. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-03-2005 05:36 PM

    Programatically adding to nested repeating groups

    Ok, so I'm able to add elements to a repeating group using executeaction. However I have a repeating group nested within a repeating group, like so:
    /my:Job
    |
    + OrderStorage
    |
    + OS_Orders (Repeating)
    |
    + OS_Unit (Repeating)
    |
    + OS_UnitDescrition
    + OS_UnitMeasure


    So I use ExecuteAction to insert a new OS_Orders entry. Now I want to create entries for the OS_Unit in the OS_Orders entry I just created but I'm not sure how. Just using the xmlToEdit value of OS_Unit throws an error. Hopefully someone can even follow my lame description.
  • 05-03-2005 08:31 PM In reply to

    Re: Programatically adding to nested repeating groups

    Hi Bob, Welcome to the Board!
    You have the information about how to add a repeating element at "http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=303".

    This works in your case also, Only thing is getParentNode() method specified should get "OS_Orders (Repeating)" node and "Field1" can be your "OS_Unit" node.


    Agni
    InfoPathDev India
  • 05-03-2005 09:42 PM In reply to

    Re: Programatically adding to nested repeating groups

    Thank you for the help, I was able to get it to work. Forgive my ignorance I'm relatively new to DOM.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.