Thursday, Aug. 17, 2017

Change Colour based on Picklist Field Values in List Applet

Written By:

|

September 14, 2012

|

Posted In:

Requirement:
The requirement is to display different colour in the picklist values in a List applet. For example, I have a Status Field, which has values such as “Initiated“, “Critical” and “Completed“.
At login, the values should be replaced with the corresponding colours and when a user changes the value from “Initiated” to “Critical“, the colour should change as well.

Solution:
1. Create a Bitmap Category and its child object Bitmaps as shown in the figure below. Ensure that the Filename as gif files should exist in Public/enu/images folder.

change colour1

2. Create a Icon Map and its child object Icons as shown in the screenshot below:

change colour2

Name property in the Icons object shows as “Critical”, “Completed” and “Initiated”. These are mapped to display the images using Bitmap Category and its corresponding Bitmap.

3. Go to the Applet Object and modify the List column called “Status” as below:
Runtime: TRUE
HTML Display Mode: DontEncodeData
HTML Type: Text Box
HTML Icon map: ICM_CUSTOM (as Created in Step 2)

4. Compile the Bitmap Category , Icon Map and Applet to the SRF and launch the client application to view the results as below:

change colour3



Share This Article

About Author

Gurdeep

Hi, I am sharing my experience to alleviate beginners with open UI and HI version of Siebel CRM. I work in Sun Life Financials and can be reached via IT Tool box as well. Thanks.

Comments are closed.

Leave A Reply