How do I change how a field is displayed on a List page for Oracle Sales?
You can configure how a field is displayed on an Oracle Sales list page by applying a custom field template. A field template defines the properties and styling details for the contents of the field. For example, you can create a field template for displaying the Rank of a Lead in different colors based on its value such as red for Hot, orange for Warm and blue for Cold.
Custom field templates provide the following source-supported benefits:
- Faster visual scanning and decision-making by helping users recognize status, priority, or category without reading all field text.
- Better usability for high-density lists because icons and color signals can communicate information efficiently.
- Easier navigation by allowing links to third-party applications or web pages.
- Standard objects
- Enable templates for the list page
- Create a field template in the object layout
- add a field template map to associate an Adaptive Search REST field with the template.
- Custom objects
- Create or use the custom Adaptive Search service connection
- Enable templates for the list page
- Create a layout and field template
- Create a Dynamic Table rule set
- Map Adaptive Search REST fields to templates.
Configure a Custom Field Template for a Standard Object
Use this procedure to configure a field template for a standard object in Visual Builder Studio.
- Enable field templates for the page:
- Open Visual Builder Studio.
- Navigate to the list page on which you want to enable the custom field template. The source uses the accounts-list page as an example.
- Open the Variables tab.
- Locate the advancedConfiguration constant.
- Change
enableTemplatesfromfalsetotrue.{ "enableTemplates": true }
- Create a field template:
- Open the Layouts tab and search for the object name. The source uses Account as an example.
- Locate the plural and singular object nodes, and open the singular node. For the example, open Account.
- Open the Templates subtab.
- Select Create Template.
- Enter a name and ID, and select Create.
- Switch to Code mode and define the template for the required behavior.
The source provides the following example for displaying a field in red text:
<template id="redTemplate"> <div styles"color:red;"> <oj-bind-text value="[[ $value |]"></oj-bind-text></div> </template> - Add a field template map:
- Open the Rule Sets subtab.
- Locate the existing Dynamic Table entry named Adaptive List. For Accounts, the source identifies it as Accounts Adaptive List.
- Duplicate the existing layout and edit the duplicated entry.
- Open the JSON subtab.
- Locate the
layoutentry underAdaptiveListLayout. - Add the
fieldTemplateMapproperty withinlayout. - Associate the field with the template. Use the Adaptive Search REST field name as the field name.
"fieldTemplateMap": { "AccountName": "redTemplate" }
Configure a Custom Field Template for a Custom Object
For custom objects, the source adds service connection, layout, and rule set configuration before the field template map is applied.
Use this procedure to configure a field template for a standard object in Visual Builder Studio.
- Get the service connection:
- Open CX Extension Generator and create a new extension.
- Include the custom object for which you want to enable custom field
templates. The source uses
ZEM_Auto2as an example. - Open Visual Builder Studio and import the new extension file.
The source states that this creates a service connection named
cx_custom_adaptive_searchif it doesn't already exist. - Enable field templates for the page:
- Navigate to the list page on which you want to enable the custom field template. The source uses zem_auto2_c-list as an example.
- Open the Variables tab.
- Locate the advancedConfiguration constant.
- Change
enableTemplatesfromfalsetotrue.{ "enableTemplates": true "layoutId": "AdaptiveListLayout", "serviceConnectionId": "site_cxsales_Extension:cx_custom_adaptive_search" }
- Create a layout:
- Open the Layouts tab.
- Select the + icon to create a layout.
- Under Services, expand the
cx_custom_adaptive_searchnode. - Locate the
/data/objectentry. The source example is/data/ZEM_Auto2_c. - Select the entry, and select Create.
- Create a field template:
- In the new layout, open the Templates subtab.
- Select Create Template.
- Enter a name and ID, and select Create.
- Switch to Code mode and define the template for the required behavior.
The source provides the following example for displaying a field in blue text:
<template id="myRecordNameTemplate"> <span style="color:blue"> <oj-input-text value="{{ $value }}" label-hint="[[ $label-hint ]]" valid="{{ $fieldValid }}"></oj-input-text> </span> </template> - Create a rule set:
- In the new layout, open the Rule Sets tab.
- Select Create Rule Set.
- Select Dynamic Table as the component.
- Enter
AdaptiveListLayoutas the ID.
- Update display properties and add a field template map:
- Open the JSON subtab.
- Locate the
layoutentry underAdaptiveListLayout, and locatedisplayProperties. - Set
displayPropertiesto the following value."displayProperties": "{{ $componentContext.dynamicFields }}"The source states that this gets metadata from saved searches and displays it in the table at runtime.
- Within
layout, afterdisplayProperties, add thefieldTemplateMapproperty. - Associate the field with the template. Use the Adaptive Search REST
field name as the field
name.
"fieldTemplateMap": { "RecordName": "myRecordNameTemplate" }
Overview of Predefined Field Templates
adaptiveTemplateactionMenuTemplatehyperlinkTemplate
| Name | Description |
|---|---|
adaptiveTemplate |
Use to display FCL fields correctly. The source identifies these behaviors:
|
actionMenuTemplate |
Add an Actions ColumnAdd an
Actions column to a field as follows:
|
hyperlinkTemplate |
Add a Drill Down LinkTo add a
drill down link to a field:
|
Configure a Link that Drills Down to the Same
ObjectTo configure a link that drills down
to the same object, specify dependentFields in
the Fields JSON:
|
|
Configure a Link that Drills Down to a Different
ObjectTo configure a DCL link that drills
down to a different object, specify
dependentFields and
x-target-resource in the Fields JSON.The
field must be the display attribute of the target object as
defined in Adaptive Search. For a custom object, the source
identifies this as Record Name. For a
standard object, the source states that you can get the
display attribute from the entities REST call by locating
|