Open the Data Source pane and then click on the unit price field on the form.
In the Data Source pane you will see that "estimatedUnitPrice" is a child
node of the "item" repeating group. If you look in code for an event handler
for the "item" repeating group, you will find the following function:
function msoxd_item::OnAfterChange(oEvent)
If you look at the beginning of this function you will see that the node
that has changed is retrieved (strChangedNode). Some checks are then
performed and at the end of the function you see the calculation being
performed
calculateItem(oEvent.Site);
---
S.Y.M. Wong-A-Ton
> I'm trying to understand how the Purchase Request form works from the
> scripting perspective. I'm looking at the javascript in the script editor
[quoted text clipped - 7 lines]
>
> --Philip
Philip Colmer - 01 Mar 2006 12:21 GMT
Thank you for that explanation.
The code has comments that says the function handler is generated
automatically. This suggests that InfoPath created the handler through some
user action, What I'm not sure about is what that user action is or could
be. The repeating table doesn't have any rules set on it. Neither "item" nor
"estimatedUnitPrice" have event handlers set on them in the GUI.
So I'm puzzled: how does a user recreate this scenario in a new form?
--Philip
> Open the Data Source pane and then click on the unit price field on the
> form.
[quoted text clipped - 27 lines]
>>
>> --Philip
S.Y.M. Wong-A-Ton - 01 Mar 2006 15:02 GMT
Good one! Don't know. Perhaps a copy/paste/rename action? It's best to repost
your question.
---
S.Y.M. Wong-A-Ton
> Thank you for that explanation.
>
[quoted text clipped - 39 lines]
> >>
> >> --Philip