Adding Presentation Model Properties That Siebel Servers Send for_Views
This topic describes how to customize view user properties for presentation models. The Siebel Server sends these properties to the client.
To add presentation model properties that Siebel Servers send for views
Add user properties to the view:
Open Siebel Tools.
For more information, see Using Siebel Tools.
In the Object Explorer, click View.
In the Views list, query the Name property for the view that you must modify.
For example, query the Name property for Contact List View.
In the Object Explorer, expand the View tree, and then click View User Prop.
Do Step 1, Step e through Step g, in the topic Adding Presentation Model Properties That Siebel Servers Send for Applets, except add view user properties to a view instead of adding applet user properties to an applet.
If your custom view presentation model does not override the Setup method, then configure Siebel Open UI to do this override:
Do Step 2 in the topic Adding Presentation Model Properties That Siebel Servers Send for Applets except use vpm instead of apm:
Use a JavaScript editor to open the presentation model file that Siebel Open UI uses to display the view that you modified in Step 1 in the topic Adding Presentation Model Properties That Siebel Servers Send for Applets.
Add the following code:
var consts = SiebelJS.Dependency("SiebelApp.Constants"); var vpm = propSet.GetChildByType(consts.get("SWE_VIEW_PM_PS"));
where:
SWE_VIEW_PM_PS
is a predefined constant that Siebel Open UI uses to get the presentation model properties that it uses to display the view. The Siebel Server sends these properties in a property set.
Add the following code:
var value = vpm.GetProperty("user_property_name")
For example:
var value = vpm.GetProperty("User Property1")
For more information about how to configure an override, see Process of Customizing the Presentation Model.