In earlier Siebel Open UI versions, we are missing this feature to set user properties from server side (or tools) which we can use directly in our Presentation Model and Physical Renderer files.
In Innovation Pack 2014, Oracle has extended this feature. Now we can set properties in Applet/Views User Properties and can access in PM/PR files.
For Applets
Tools Change:
ClientPMUserPropn
For example,
ClientPMUserProp1 = User Property1, User Property2, ..
Siebel Open UI sends these user properties to the presentation model that it uses in the client to display the applet.
Presentation Model File change:
var consts = SiebelJS.Dependency(“SiebelApp.Constants”);
var apm = propSet.GetChildByType(consts.get(“SWE_APPLET_PM_PS”));
where SWE_APPLET_PM_PS is a predefined constant that Siebel Open UI uses to get the presentation model properties that it uses.
For Views
For Tools, we need to use same User Property.
For Presentation Model, we need to 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.
I know its a most useful feature in IP 2014. Hope it will help someone.
[su_divider]
@AskmeSiebel