Example of a Presentation_Model
The following figure describes how the partialrefreshpm.js file does a partial refresh. It is recommended that you include this business logic in a presentation model so that more than one modeler can reuse it. To get a copy of this file, see Article ID 1494998.1 on My Oracle Support. To view an example that uses this file, see Displaying and Hiding Fields.

As shown in this figure, the partialrefreshpm.js file includes the following sections:
-
Creates the JavaScript namespace.
-
Uses the Define method to make sure Siebel Open UI can identify the constructor. For more information, see Define Method.
-
Creates the presentation model class.
-
Customizes a predefined presentation model to support partial refresh logic.
-
Includes the logic that Siebel Open UI runs if the user changes records.
-
Includes the logic that Siebel Open UI runs if the user modifies a field value in a record.