How do I define InfoPath controls as variables or objects?

M

Monkey

What I want to do is make it possible for the entry in one control to
determine the content of the next ten or so controls...is that possible?
 
N

Nic Roche

...is that possible?

Yes, the onafterchange event should be scripted to change the values of the
DOM values that are bound to the subsequent controls.

XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
....

Nic Roche
 
M

Monkey

Thank you! :D

Nic Roche said:
Yes, the onafterchange event should be scripted to change the values of the
DOM values that are bound to the subsequent controls.

XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
XDocument.DOM.selectSingleNode( "XPATHHERE" ).Text = eventobj.NewValue
....

Nic Roche
 
Top