How to copy repeating list from parent form to child form?

B

Barry Prentiss

Hi,
I'm using VBScript in InfoPath '03...
I am creating a new form with NewFromSolution, then filling some form
sections using data from the parent form.

This works great for single entry items like this:
objNewXDoc.DOM.selectSingleNode("/my:myFields/my:projInfoSection/my:RqstrName").Text
= _
objSrcXDoc.DOM.selectSingleNode("/my:myFields/my:projInfoSection/my:RqstrName").Text

But copying repeating lists from the source form is not so
straightforward...
How do I copy a repeating list from one form to another?

Thx,
Barry
 
S

Shiva (GGK Tech)

Hello,

You have to use the selectNodes instead of using selectSingleNode in your
code.

dim projInfoSectionNodes =
objNewXDoc.DOM.selectNodes("/my:myFields/my:projInfoSection")

From above you will get list of nodes available in ‘ProjInfoSection’. You
have to write code to get each node value and setting to another node.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top