Default language.

Creating view fields


Use this procedure to create a view field.

Note

For an overview of view fields, see View-fields.

 To create a view field

  1. Open the appropriate form.
  2. Right-click the form, and select Create a New Field > View.
     The new view field appears on the form.
  3. Select the field.
  4. In the Properties tab, select the Text property, and click its ellipsis button.
  5. In the Text dialog box, enter an initial value for the view field, and click OK.
     You can enter any value that a browser can read. For example, you can enter your company's URL, the URL for a form in the mid tier, an HTML snippet, or Oracle JavaScript. The web page, form, or interpreted code appears in the view field in BMC Remedy Developer Studio when you close the dialog box. 

    Warning

    In view fields, the primitive value is returned from the server. If you use scripting in view fields, make sure that the script does not appear to users.

    You can also reference a template. See Using-templates-with-fields.
     In a browser, the contents of a view field do not load automatically when users open a form. To display the initial value in those applications, perform one of these steps:

    • Select the view and set the Set to Defaults property to True (governs New mode), and set user preferences to "Set Fields to Default Values" in New and Search modes in the AR System User Preference form.
    • Use a Set Fields active link action to set the view field value to $DEFAULT$ when the form opens. In this case, set the execute on condition to Window Loaded.
       You can also leave the Text property blank and use workflow to set the initial display value.
       To make the contents of the view field persist across actions in the same window, make the view field a window-scoped global field. Create the view field with a field ID in the range of 3000000 to 3999999, and use workflow to set the initial value. See Creating global fields

      Warning

      Do not use HTML snippets that contain tables or frames. Instead, use a URL to display this type of content.

  6. Set border and scroll bar properties. See Field-Properties.
     If the contents of the web page or HTML snippet are too large for the field, the value of the Scroll Bar property determines whether scroll bars appear at the field's bottom and right side in a browser.
  7. Set the other field properties as needed. See Field-Properties.
  8. Select the view field, drag it to a position in the form, and adjust its size.
     See Arranging-fields-in-a-form-view.
  9. (Optional) Use a trim text field to add a label (view fields do not have labels).
  10. Right-click the form, and select Save.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*