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
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