Oracle CRM On Demand JavaScript API Developer's Guide > Overview of the JavaScript API > Color Coding of Fields and Rows >

Color Coding of Fields and Rows in Lists


To support color coding in lists (on List pages and in related item lists), a List object and ListRow object are required respectively for the list, and specific rows in the list. A custom handler must be registered for the List object and this handler is automatically executed on initial page load, on paging, and when a field on any of the rows is edited inline. For information about methods of the List object, see Table 7, and for an example of a custom handler, see About the Custom Handler for a List Object.

In the custom handler you can use:

  • Methods of the ListRow object to get and set the background color of rows, see Table 8.
  • Methods of the Field object to get and set colors for the values of fields within rows, see Table 5.

NOTE:  In lists, if both the background and text color for a specific field within a row, and the background color for the entire row are set using the JavaScript API, then within the row, the color coding for the specific field overrides the color coding for the row.

For information about finding the field names that you must use when working with these methods, see Finding Field Names.

For information about finding list names, see Finding List Names.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.