Configuration Guide for Siebel Offline Client for Life Sciences > Adding and Using Icons >

Adding Icons


This topic describes how to add an icon to the Offline Client for Life Sciences.

To add an icon

  1. Create the icon you require and save it in PNG or JPG format.
  2. Rename the icon in the following format: xyz_WxH.png.

    In this format, xyz describes the icon, and W and H are the width and height of the icon in pixels, for example, newactivity_10x20.png.

  3. Save a copy of the icon in the appropriate folder, for example, as shown in the following table.
    Product
    Project File Location

    Siebel CRM

    CONFIG_PROJECTS_OP\iconproject\icons

  4. Edit the IconProject.as file in the iconproject folder to add your new icon to the m_arrIcons array, as follows:
    1. Add the following two statements to the IconProject.as file:

       [Embed(source="icons/xyz_10x20.png")]
          private var xyz_10x20:Class;

    1. Add the following case statement to the getIcon function:

       case "xyz_10x20":
          m_mapIconFamily[ICON_DEFAULT] = xyz_10x20;
          m_mapIconFamily[ICON_DOWN] = xyz_10x20;
          m_mapIconFamily[ICON_UP] = xyz_10x20;
          m_mapIconFamily[ICON_OVER] = xyz_10x20;
          m_mapIconFamily[ICON_SDOWN] = xyz_10x20;
          m_mapIconFamily[ICON_SUP] = xyz_10x20;
          m_mapIconFamily[ICON_SOVER] = xyz_10x20;
          m_mapIconFamily[ICON_DISABLED] = xyz_10x20;
          m_mapIconFamily[ICON_SDISABLED] = xyz_10x20;
          break;

  5. Rebuild the Offline Client for Life Sciences application you have modified, for example, the Sales application.

    For more information, see Process of Building the Offline Client for Life Sciences with Automated Scripts.

Configuration Guide for Siebel Offline Client for Life Sciences Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.