D
Doug H.
I am using managed code for InfoPath to sum the diff. between two dates and
displaying the "number of days" in the repeating column. The code works fine
on the first row only. If I add a new row the number of days is blank. "the
code fires in debug" but it doesn't use the current selected row node.
How can I sum a column in a repeating row using VB.NET?
Sample LINE:
thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:TotalDays").text
= DateDiff("d",
CDate(thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:RequestFromDate").text),
CDate(thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:RequestToDate").text)) + 1
Thanks,
Doug
displaying the "number of days" in the repeating column. The code works fine
on the first row only. If I add a new row the number of days is blank. "the
code fires in debug" but it doesn't use the current selected row node.
How can I sum a column in a repeating row using VB.NET?
Sample LINE:
thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:TotalDays").text
= DateDiff("d",
CDate(thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:RequestFromDate").text),
CDate(thisXDocument.DOM.selectSingleNode("/my:myFields/my:Request_Types/my:Request_Type/my:RequestToDate").text)) + 1
Thanks,
Doug