Determine What's Displayed at Runtime With a Rule Set

To configure a dynamic form or table component, you'll usually want to start by opening its rule set. A component's rule set determines what a component displays at runtime through the use of display logic and layouts. Here's an example of what a rule set for a dynamic form looks like:



In this rule set, the display logic has three rules: the default rule at the bottom, and two rules that have been added above it. The top rule, isSalesManager, determines if the user viewing the page has a specific user role (ORA_ZBS_SALES_MANAGER_JOB). If they do, then the user will see the fields defined in the managerLayout layout displayed in the form. If they don't, the next rule (isAuthenticatedAndTablet) is evaluated.

This rule set also has two layouts, manageLayout and manageLayout_small, in addition to its default layout. Each layout contains a different configuration of fields, columns, and so on, which dictate how the component should look when rendered at runtime.