In Open UI, Code In the PM/PR Based on Binding to FieldChange Is Executing Multiple Times.
(Doc ID 1577790.1)
Last updated on DECEMBER 15, 2019
Applies to:
Siebel Tools - Version 8.1.1.10 [23021] and laterInformation in this document applies to any platform.
Checked for Relevance on 2-OCT-2019
Symptoms
Used code to add a Function OnFieldChange that is bound to the internal vanilla FieldChange Method. The OnFieldChange function is firing multiple times each time a field is modified. Although the example code here is based on early implementations of Open UI, the overall issue and solution continue to apply to Open UI PM/PR execution.
Test Case:
[Presentation_Model]
Service Request Detail Applet=SRAppletPM
[Physical_Renderer]
Service Request Detail Applet=SRAppletPR
<KEY Name="SRAppletPM">
<FILE_NAME> siebel/applet.js </FILE_NAME>
<FILE_NAME> siebel/pmodel.js </FILE_NAME>
<FILE_NAME> siebel/custom/SRAppletPM.js </FILE_NAME>
</KEY>
<KEY Name="SRAppletPR">
<FILE_NAME> siebel/phyrenderer.js </FILE_NAME>
<FILE_NAME> siebel/custom/SRAppletPR.js </FILE_NAME>
</KEY>
Alert was seen once, and the following was in the Console:
Before Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:24
In AlertUser SRAppletPR.js?_scb=8.1.1.10_SIA_[23021]_ENU:17
After Setting Abstract Updated in OnFieldChange
But upon clicking on a dropdown in another filed, then it executed twice more (or when doing a save).
OnFieldChange has fired for control - Abstract, with a value = dsf SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:22
Before Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:25
In AlertUser SRAppletPR.js?_scb=8.1.1.10_SIA_[23021]_ENU:17
After Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:27
OnFieldChange has fired for control - Abstract, with a value = dsf SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:22
Before Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:25
In AlertUser SRAppletPR.js?_scb=8.1.1.10_SIA_[23021]_ENU:17
After Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:27
OnFieldChange has fired for control - Abstract, with a value = dsf SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:22
Before Setting Abstract Updated in OnFieldChange SRAppletPM.js?_scb=8.1.1.10_SIA_[23021]_ENU:25
In AlertUser SRAppletPR.js?_scb=8.1.1.10_SIA_[23021]_ENU:17
After Setting Abstract Updated in OnFieldChange
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |