Defining Style Behavior Properties

Use the Style behavior to control the appearance of a given node in the web client. You can apply multiple Style behaviors to a data node, each defined with specific conditions such that when one condition evaluates to true, the OSM server will apply the corresponding style behavior. For example, you can specify that the font color for a field in the web client appear black unless a user enters an invalid value, in which case you specify the font color to change to red.

OSM applies style behaviors to all compensation strategies: Redo, Undo, and Do Nothing.

When editing order and task data in an editor, you can right-click data node behaviors and select Open Properties View to access the behavior properties.You use the Properties view tabs to model Style behaviors.

Note:

The level at which you create a behavior (at the data element level, task level, or order level) determines where you access and configure the behavior's properties. See "Creating New Behaviors" for more information.

To define Style behavior properties:

  1. From the Design perspective, right-click the behavior and select Open Properties View.

    The Behaviors Properties view is displayed.

  2. Click the Appearance tab.

    Use the Appearance tab to specify how field options are displayed, whether to include line breaks after fields, and whether to hide sensitive information in field contents. See "Style Behavior Properties View Appearance Tab" for more information.

  3. Click the Layout tab.

    Use the Layout tab to group child nodes into tabs or table columns. These options are available only for structures that contain child nodes. See "Style Behavior Properties View Layout Tab" for more information.

  4. Click the CSS Style tab.

    On the CSS Style tab, you can add HTML formatting to field values and labels in the web client. Enter HTML directly into the CSS Style Attribute fields for values and labels, or enter a class name to control the formatting for values and labels. See "Style Behavior Properties View CSS Style Tab" for more information.

  5. Click the Details tab.

    The Behaviors Properties view Details tab is displayed. The Name, Type, and Path field values are read-only, and cannot be modified on this tab. See "Defining Behavior Detail Properties" for more information about the options that you can define on this page.

  6. Click the Conditions tab.

    Use the Conditions tab to add conditional logic to the Style behavior. See "Defining Behavior Condition Properties" for more information about defining conditions for behaviors.

  7. Click the Notes tab.

    Use the Notes tab to describe the functionality or include internal documentation about the Style behavior.

Note:

See OSM Concepts for more information about behavior default values, inheritance, and declarative syntax.