Displaying and Hiding Fields
The example in this topic describes how to configure Siebel Open UI to display a field. To view a diagram that illustrates some of the objects you modify and the relationships between these objects, see Configuring Manifests.
This topic is similar to the Displaying and Hiding Fields topic, but with fewer details. It demonstrates how you can quickly modify a presentation model.
To customize the fields that are visible in an applet
Copy the JavaScript files:
Download a copy of the partialrefreshpm.js file to the following folder:
AI_INSTALL_DIR\applicationcontainer_external\siebelwebroot\scripts\siebel\custom
For more information about this file, see Text Copy of Code That Does a Partial Refresh for the Presentation Model.
Download a copy of the partialrefreshpr.js file to in the following folder:
AI_INSTALL_DIR\applicationcontainer_external\siebelwebroot\scripts\siebel\custom
For more information about this file, see Text Copy of Code That Does a Partial Refresh for the Physical Renderer.
Configure the manifest:
Log in to a Siebel client with administrative privileges.
For more information about the screens that you use in this step, see Configuring Manifests.
Navigate to the Administration - Application screen, and then the Manifest Files view.
In the Files list, add the following files.
Field Value Name
siebel/custom/partialrefreshpr.js
Name
siebel/custom/partialrefreshpm.js
Navigate to the Administration - Application screen, and then the Manifest Administration view.
In the UI Objects list, specify the following applet.
Field Value Type
Applet
Usage Type
Physical Renderer
Name
Contact Form Applet
In the Object Expression list, add the following expression. The physical renderer uses this expression to render the applet in a mobile platform.
Field Value Expression
Mobile
Level
1
In the Files list, add the following file:
siebel/custom/partialrefreshpr.js
In the UI Objects list, specify the following applet.
Field Value Type
Applet
Usage Type
Presentation Model
Name
Contact Form Applet
In the Object Expression list, add a record with no value in the Expression field.
In the Files list, add the following file:
siebel/custom/partialrefreshpm.js
Test your modifications:
Open the browser in the client computer, and then clear the browser cache.
Open the Siebel application, and then navigate to the Contact Form Applet.
Delete the value in the Job Title field, and then step out of the field.
Make sure Siebel Open UI removes the values from the Work # and the Main Fax # fields.
Add a value to the Job Title field, and then step out of the field.
Make sure Siebel Open UI adds values to the Work # and the Main Fax # fields.