M
Mark Parter
I'm "developing" an overtime claim form in InfoPath. In this form is a
Repeating Table. This table has the following fields:-
ClaimInstanceDate
TimeFrom
TimeTo
HoursWorked
HoursPaid
Reason
What I'm trying to do, is, calculate and populate the field HoursWorked with
the result of TimeTo - TimeFrom. I can do all the calculations OK in VB.Net,
I'm struggling to figure out how I know what that current 'Table' is so it
calculates and populates the correct fields.
I've tried using:-
Dim nodeClaimDate As IXMLDOMNode =
e.Site.selectSingleNode("../my:ClaimInstanceDate")
Dim nodeTimeFrom As IXMLDOMNode = e.Site.selectSingleNode("../my:TimeFrom")
Dim nodeTimeTo As IXMLDOMNode = e.Site.selectSingleNode("../my:TimeTo")
Dim nodeHoursWorked As IXMLDOMNode =
e.Site.selectSingleNode("../my:HoursWorked")
But this doesn't work. UI'm fumbling about in the dark here and it's really
starting to annoy me. Especially the lack of resources on the Internet for
doing this in managed code (not rules or JScript).
Can anybody save me, please?
Thanks.
Repeating Table. This table has the following fields:-
ClaimInstanceDate
TimeFrom
TimeTo
HoursWorked
HoursPaid
Reason
What I'm trying to do, is, calculate and populate the field HoursWorked with
the result of TimeTo - TimeFrom. I can do all the calculations OK in VB.Net,
I'm struggling to figure out how I know what that current 'Table' is so it
calculates and populates the correct fields.
I've tried using:-
Dim nodeClaimDate As IXMLDOMNode =
e.Site.selectSingleNode("../my:ClaimInstanceDate")
Dim nodeTimeFrom As IXMLDOMNode = e.Site.selectSingleNode("../my:TimeFrom")
Dim nodeTimeTo As IXMLDOMNode = e.Site.selectSingleNode("../my:TimeTo")
Dim nodeHoursWorked As IXMLDOMNode =
e.Site.selectSingleNode("../my:HoursWorked")
But this doesn't work. UI'm fumbling about in the dark here and it's really
starting to annoy me. Especially the lack of resources on the Internet for
doing this in managed code (not rules or JScript).
Can anybody save me, please?
Thanks.