I
ikidd
I have created a repeating section that contains a text field that is
the result of a vbScript function that calculates the difference in 2
time fields in the repeating section. I've done this because I can't
find such a function built into Infopath.
I'm using the
XDocument.DOM.selectSingleNode("/myigital_SO_Entry/my:grpTimeEntry/my:txtEntryOTBillHours").text
= intDateDiff
function to locate the text box and write the value to it.
Unfortunately, this only works for the first section, and subsequent
sections will read and write from the first set of controls only.
Is there a way to pass in the current node of the repeating section or
locate it using some property of the control that triggers the function
so I can properly locate the instance of the controls I want to read
from and write to?
If someone can even just point me to a tutorial or examples in how to
navigate the XML node structure from within Infopath scripting, I
should be able to figure it out.
I can post my code if you need to see what is happening.
TIA
the result of a vbScript function that calculates the difference in 2
time fields in the repeating section. I've done this because I can't
find such a function built into Infopath.
I'm using the
XDocument.DOM.selectSingleNode("/myigital_SO_Entry/my:grpTimeEntry/my:txtEntryOTBillHours").text
= intDateDiff
function to locate the text box and write the value to it.
Unfortunately, this only works for the first section, and subsequent
sections will read and write from the first set of controls only.
Is there a way to pass in the current node of the repeating section or
locate it using some property of the control that triggers the function
so I can properly locate the instance of the controls I want to read
from and write to?
If someone can even just point me to a tutorial or examples in how to
navigate the XML node structure from within Infopath scripting, I
should be able to figure it out.
I can post my code if you need to see what is happening.
TIA