Monday, 10 December 2012

How to add custom Javascript file to an applet ?

In order to change the look and feel of the applet or UI, we have to add some JavaScript plugins to the applet This is the very first step in siebel open UI customization. Now lets take a look on that.

TO achive this we are using some user properties
Physical_Renderer Lets give its value as MyRenderer

1) Create a new directory called "custom" under the directory
             " D:\<file system>\client\PUBLIC\enu\IB2012_20\SCRIPTS\siebel"
2) Copy your custom js file lets say  "myUI.js" to the following directory
               "D:\<file system>\client\PUBLIC\enu\IB2012_20\SCRIPTS\siebel\custom"


Next step you have to update the manifest file. To do that
Open the file "D:\<file system>\client\OBJECTS\custom_manifest.xml"

Add a new key in the following section,
<PLATFORM_KEY_SPECIFIC><PLATFORM Name="Desktop">:
<KEY Name = "MyRenderer">
<FILE_NAME> siebel/phyrenderer.js </FILE_NAME>
<FILE_NAME> siebel/custom/myUI.js </FILE_NAME>
</KEY>

compile the applet and open the browser & Test your code.
Please remember if you want to see any CSS changes, you may clear your cache.

5 comments :

  1. hi

    If i need to manipulate any applet, i should be knowing the respective JS files. So how may i find out JS files linked to the particular applet.

    -Sudip

    ReplyDelete
    Replies
    1. If you want to manipulate an applet, you have to write some js code in physical render or physical model. So you are going to write all these. If some one wrote it, go to applet user property, there are some properties like physical_render /Physical_Model. the value indicates the file key. copy the value and open custom_manifest.xml. search by using the copied value. So you can find the path of that js file.

      Delete
    2. Hi Prasanth,

      I have installed siebel 8.2.2 version and i am not finding EnableOpenUI parameter at Applicaiton object Manager Level.Please help me do i need install any other versions

      Thanks in advance

      Regards
      Basha

      Delete
    3. Hi Basha
      Please make sure that your versions are min
      8.1.1.9 / 8.2.2.2

      Delete
  2. Hi Prasanth,

    are there any examples from the custome JScript files (physical render and presentation model)? Because I don't know to write it. Perhaps could you send me your myUI.js.

    Thanks,
    Charles

    ReplyDelete