Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2004

Tip: Looking for answers? Try searching our database.

Copying Data from one Repeater Table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 29 Nov 2004 15:33 GMT
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,
Michelle - 30 Nov 2004 18:07 GMT
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%20and%20Updating%20Repeating%20Ta
ble%20Row%20Cells,%20v1.1


Michelle

> I am trying to copy a list of names from one repeater table into another
> repeater table.
[quoted text clipped - 5 lines]
>
> Regards,
Daniel - 01 Dec 2004 16:29 GMT
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...

> Daniel
>
[quoted text clipped - 24 lines]
> >
> > Regards,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.