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 / November 2005

Tip: Looking for answers? Try searching our database.

Programmatically remove repeating table row using JScript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martyn Lawson - 10 Nov 2005 15:52 GMT
Hi,

I have a repeating table with a handful of columns. I would like to empty
the table using a button press in JScript. Is this possible?

I have seen blogs talking about using eventObj.Source but since i am using a
button press, the source has no relation to the table.

Any ideas would be greatly appreciated.

Cheers,
Martyn...
Franck Dauché - 10 Nov 2005 17:04 GMT
Hi Martyn,

What about:
var node = XDocument.DOM.selectSingleNode(
"my:myFields/my:group1/my:group2[my:id = 2]" );
node.parentNode.removeChild( node );
To remove 1 specific node, and:
var allnodes = XDocument.DOM.selectNodes( "/my:myFields/my:group1/my:group2"
);
allnodes.removeAll();

Hope that it helps.

Regards,

Franck Dauché

> Hi,
>
[quoted text clipped - 8 lines]
> Cheers,
> Martyn...
 
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.