Thursday, Oct. 19, 2017

Conditionally show an Image / Icon for an empty Field in a List applet

Written By:

|

September 1, 2012

|

Posted In:

Requirement:

The requirement is to show an image when field in a List applet is empty or Null. Say, when an End Date is NULL on a record, other field should display an Icon/Image agianst the corresponding record.

Solution:

Follow the below steps to implement this requirement:

1. Create a new Object for Bitmap Category and Bitmap to define the image file to be disaplyed when field is empty as shown in screenshot below:

icon in field1

Ensure the Filename called “icon_helptext.gif” is present in the folder called /Public/enu/Images folder.

2. Create a new Icon Map and Icon as shown in screenshot below:

icon in field2

For more information on Icon and Icon Map usage refer to the link below:

http://docs.oracle.com/cd/E05553_01/books/ConfigApps/ConfigApps_Images2.html

Icons child object refer to the Bitmap Category (BMC Custom) and Bitmap (BM Custom) created in Step1.

3. Go to your BC and create a new calculated field to evaluate the condition to display the image on the UI.

Name: Help Text
Calculated: TRUE
Calculated Value: IIF([End Date] IS NULL, “Yes”, “”)
Type: DTYPE_TEXT

Notes: “Yes” is used to display the corresponding Icon. Same value should be present in the Name Property of the Icons child object as defined in Step2.

4. Create a new List column in the Custom Appet as shown in figure below:

icon in field3

5. Modify the Web layout and expose this List column on the UI.

6. Compile all the objects such as Bitmap Category, Icon Map, BC and Applet and view the results in the UI as below:

icon in field4

 



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