How do I add a read only custom field using VB Studio?

Now, we'll create and add a custom field in VB Studio then add it to a layout. For this example, we'll be creating a custom field based on the SR severity.

Note: Custom fields created in VB Studio are read only. To create a custom field that will retain changes to the database, you must use Application Composer. To create a custom field in Application Composer, refer to How do I create a custom field?.
  1. In the Applications Extensions explorer, navigate to App UIs > Oracle Fusion Service UI Extension App > Service > ec > case > create .

  2. Click the Fields tab.

  3. Click the + Custom Field button.

    The Add Custom Field dialog box.

  4. In the Custom Field pop up window, enter the field name that you would like reflected in the UI.

  5. Click Create.

  6. From the list of fields, select the newly created custom field.

  7. In the Properties pane, add referenced fields by doing the following:

    1. Click the Add link for the Referenced Fields property.

    2. In the Referenced Field text field, start entering the word and then choose the PriorityCd field from the results that appear and then click Add Field.

  8. Now, click the Expression editor:

    A detail of the Expression editor icon.

  9. Now in the Expression Editor, set the conditions that govern when the field is displayed by doing the following:

    1. From the Context explorer, expand the fields list.

      Context list.

    2. Locate the PriorityCd field in the list, expand it, and drag and drop value into the editor.

    3. Add the following to the expression: $fields.PriorityCd.value(), then in the Value field, enter: ORA_SVC_HIGH

    4. Click Save.

      Now the custom field will only display if and value has a priority code of 1.

  10. Click Rule Sets to return to the layout.

  11. In the Fields explorer, enter the name for the custom field.

  12. Click the check box to include the field in the layout.

  13. Drag and drop the field to where you want it to appear in the UI.

  14. Use the Field properties window to choose one of the default templates from the Template drop down list.

  15. Click the Create link if you want to create your own template.

  16. Click the Preview button to view your changes.

    Details on creating a template are in the Create Your Own Field Template topic in this chapter.