Coding for a repeating table

K

kalisin

I have an infopath form with three repeating tables & three check
boxes. Each rptTable displays when the matching checkbox is click'd.
I want to clear all fields in the rptTable of the matching check box
when the checkbox is deselected. I've writetn a C# code to clear the
fields for the 1st instance, can I get a lead on how to clear the rest
of the instances of the repeating tables??

Thanks in advance.

Here's my sample code.
if( thisXDocument.DOM.selectSingleNode("//my:chkAdd").text == "0" )
{

thisXDocument.DOM.selectSingleNode("//my:sectionAddUSInformation/my:txtAddUSCode").text
= "";

thisXDocument.DOM.selectSingleNode("//my:sectionAddUSInformation/my:txtAddDsc").text
= "";

}

Kalimukwa
 

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