getting the nth entry in a repeating table

I

IT PHYTOSAN

How can I use the nth entry in a repeating table as the default value for a
non repeating field?

Thanks

IT PHYTOSAN
 
F

Franck Dauché

Hi,

Select your single node on one hand:
IXMLDOMNode oN = thisXDocument.DOM.SelectSingleNode(Your XPath);

On the other hand,
If you drop a repeating section on a blank form (with 1 textboxes field1),
you will have the following schema:
myFields
group1
group2
field1
then use:
IXMLDOMNode oS =
thisXDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[n]/my:field1")
where n is your nth entry......

Finally: oN.text = oS.text;

Hope that it helps.

Regards,

Franck Dauché
 

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