Copying Data from one Repeater Table

D

Daniel

I am trying to copy a list of names from one repeater table into another
repeater table.

How would I go about doing this?

I will be doing the coding in VB.Net, But if somebody has an example in
JavaScript etc that would still be a great help.

Regards,
 
M

Michelle

Daniel

You need to create nodes in the DOM where the second repeater table is bound
by copying the nodes the first repeater table is bound to. You'll have to do
this in codebehind probably triggered by a button click or such. Depending
on how your nodes are named you might be able to clone the nodes from the
first group and add them to the second group, or if you have a blank row in
the second repeating table you could clone those nodes and set their values
based on the corresponding row in the first repeating table. Otherwise
you'll have to manually create the nodes in the second group for each row and
set the data values. Look at IXMLDOMNodeList and cloneNode(), appendChild()
or insertBefore().

The following example might give you some ideas (it's not exactly what you
are looking for but should demonstrate several ideas you will need)
http://www.infopathdev.com/examples/#Accessing and Updating Repeating Table Row Cells, v1.1

Michelle
 
D

Daniel

How would you sugest to this.

I have tried several bits of code and still havent had sucsess...

I suppose I need to loop round the record in the DOM, To do that would I
just need to find out how many entries have been added to the table or is
there another way.

I am very new to infopath and am finding it hard to get my head around this
problem.

Any help would be very greatly appreatied...
 

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