View fields


A view field is a display-only field that displays any type of content that a typical browser can display, including the following:

  • Views of AR System forms.
  • HTML templates registered in AR System Resource Definitions with parameters or embedded field references.
    These can be full HTML documents, or HTML fragments that are included in the main page.
  • Attachment field contents, such as HTML files, image files, and Microsoft Word documents.

The common use of view field is to embed multiple forms on the view fields that are present on a container form. Embedded forms can share the user interface and workflow. You can load AR System forms as Inline forms. For more information, see Types-of-forms.

Users print a document in a view field by performing right-click on the field and choosing Print. (In a browser, you cannot print the contents of a view field.)

View fields participate in active links and filters as display-only character fields. View fields cannot participate in escalations, and they cannot trigger active links.


You can add multiple view fields to a form to display various pieces of data from different sources. To customize the presentation for any language, platform, or user role, you can use different initial values for every view of a form . You can also create workflow that communicates between the view fields by sending events.

For mid tier users, if you have custom content to display on the view fields, verify that the content displays correctly in web browsers.

Users cannot resize view fields. If a view field is too small to display its entire contents, the value of the Scroll Bar property (see Scroll Bar) determines whether scroll bars appear at the bottom and right side of the field. 

View field with scroll bars 
viewfield.gif

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 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*