Adding general elements to a view

Adding a section
About this task
Sections are valid in Creation, Task, and Admin Views.
A section contains fields and inline guidance. When you work on the Design tab:
- You can add a section. When you add a section, it appears as the last section.
- You can control the order of sections in a view.
- You can define whether a section is collapsed or expanded when a user initially opens a view.
- You can expand and collapse individual sections or all sections using the Expand All and Collapse All toggles.
- You cannot embed a section in another section.
- You can add fields directly to sections, in which case they are ordered consecutively down the page in the view.
- You can add groups to sections and then add fields to groups, in which case you can arrange the fields in columns and place them more precisely in the view.
- If a Task View is used in a workflow, task view overrides can hide a section and override the Initially Collapsed setting. For more information, see Defining a standard stage.
In an Admin View, sections can either be dynamic, which means the fields are automatically added at run time, or static. Creation and Task Views contain only static sections. An Admin View can contain the following dynamic sections:
- The Other fields section contains fields that are in the profile but not already in the view. Fields in Other fields are not imported or exported by FastMap. If you want a field to be exported or imported, add the field to a nondynamic section.
- The Parents section automatically displays grid fields for all enabled parent relationship types.
- The Children section automatically displays grid fields for all enabled child relationship types.
- The Parent and child relationships section displays a relationship tree with parents and children.
On the JSON tab, a section is defined in a sections element.
Procedure
Adding a trend chart based on field value change history
You can add a trend chart with fields to a Task or Admin View to display the trends of numeric fields over time.
You can select the time period, the fields that you want displayed in the chart, and the colors to represent the trend for each field.
You can set colors for trend charts and heat maps within the view, because they are not associated to a specific field. For other chart types, learn how to apply colors to values by reviewing Defining fields and adding them to field groups
The chart shows data from the currently selected reporting period only. If the time period you select for the chart doesn't overlap with the current reporting period, the chart is empty.
All dynamic date ranges are based on the current date, regardless of selected reporting period.
Procedure
Arranging fields in columns
About this task
Columns are valid in Creation Views and Task Views.
- A group must be within a section.
- Groups can contain object fields and relationship fields.
- A group cannot be embedded in another group.
You can find an example in: SysView-Task-SOXControl.
On the JSON tab, columns are defined in a columns property.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- Drag a Column element from the palette to the section where you want it to display.
- Enter a value in Name. This is an internal name that is not displayed in the view.
- Select a number in Number of Columns. You can define no more than four columns.
- Click Done.
-
Add fields to the group. You can drag a field either from the palette or the canvas and drop it into
Group Fields.
There is no limit on the number of fields you can have in a column.
- Move fields up or down to change the display order.
Configuring fields to be required or read-only in a view
About this task
When you work on the Design tab, you can click a field on the palette and set it to required or read-only.
The same rule applies for dependent fields. For example, suppose that a user has read-only access to Field A and write access to Field B. Also, suppose that the value of Field A must be Yes if Field B is No and Field A must be No if Field B is Yes. When Field A is Yes and the user changes the value of Field B from No to Yes, they can save their changes because Field A is read-only. Field A retains the invalid value and no error message is displayed.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- If the field you want to configure is not on the canvas, drag the field from the palette to the section on the canvas where you want it to display.
-
Click the field.
The panel for the field is displayed.
- If you want the field to be read-only, set Read Only to True.
- If you want the field to be required, set Required to True.
- Click Done.
Adding a button to view AI insights
Before you begin
Configure a Task or Report View that contains the OpenPages fields that you want the model to process.
About this task
You can add a View AI insights button to a Creation View, Task View, Admin
View, or Report View. When you configure the button, you specify the model to run and the view to
use as input. After you publish the view, the user can click View Insights
to
display the insights from the model.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- Drag the View AI Insights element from Buttons in the palette to a section.
- Enter a Label.
- In Select AI model integration, select the model that you want to associate with the button.
- If the model that you selected in the previous step has an Input type of View definition, use Select a view to send to the model to select the model that contains the fields that you want the model to process as input.
- Click Done.
Adding inline guidance
About this task
Inline guidance is valid in Creation Views and Task Views.
Each section can contain one or more inline guidance elements.
Visible or hidden rules can be applied to each field within an inline guidance section.
When it is displayed in a view, users can expand or collapse the text if it is long.
On the JSON tab, inline help is defined in helpTopic and helpText properties.
Procedure
Adding user guidance
About this task
User guidance is valid in Creation Views and Task Views.
User guidance is displayed in a panel in the upper right corner of a view. It contains informational text, a progress bar, and a list of key items. If a task is part of a workflow that has started, Select an action to validate is also displayed. Messages and field symbols guide users through finishing a task.
When it is displayed in a view, users can expand or collapse the text if it is long.
A view can have one user guidance section. The name user guidance is shown in the View Designer but the section has no title when it is displayed in a view.
For more information about user guidance, see How key items and workflow actions display in user guidance.
Procedure
How key items and workflow actions display in user guidance
Key items in user guidance
Key items are listed after the informational text under the title Key Items. You configure the list of key items. In addition, required fields and invalid fields are automatically listed as key items. When a user clicks a key item, the cursor moves to that field and places it in edit mode. The symbols next to a field indicate its status. The symbols are fixed and cannot be changed.
Workflow actions and user guidance
If a task is part of a workflow that has started, Select an action to validate is displayed in the user guidance panel.
For more information about defining validations on actions, see Defining a workflow action.
The workflow information card appears above the user guidance and contains summary information.
Neither Select an action to validate nor the workflow information card requires configuration.
Task view overrides can change the user guidance and key items that are displayed. For more information, see Defining a standard stage.
See the IBM OpenPages User Guide for more information about how users work with the user guidance panel.
Applying light formatting to text
About this task
Procedure
Defining a Task View header
About this task
A task view header is valid only in Task Views.
You can add an Actions button and up to three fields to a Task View header, where the field type can be integer, decimal, currency, simple text, enumerated, user, date, and relationship count. The Task View header has limited space so add fields whose content is short and concise.
If the object type has workflows, the workflow drives the options on the Actions button. For more information, see How users interact with workflows.
The options on the Actions button can be configured to allow a user to enter a comment. The comment can be required or optional. For more information, see Defining a workflow action.
If the object type does not have workflows, you can add one Actions button. The actions facilitate moving the object to the next stage in its lifecycle. The values are from any set of enumerated field values or from the configurable lifecycle transitions for the object. The field type must be enumerated. The label of the Actions button is fixed and cannot be changed.
You cannot add rules to fields in the Task View header.
In this example, the Task View header for the Issue object contains three fields: Issue Status, Priority, and Action Items.

You can find an example in: SysView-Task-SOXIssue.
On the JSON tab, a task view header is defined in a header element.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- Expand the Header panel.
- In Lifecycle Action, choose an enumerated field that drives the Actions button.
- Add fields to the header. You can drag a field either from the palette or the canvas and drop it into the group.
Applying alternate field labels
About this task
Alternate field labels are valid in Grid Views, Creation Views, and Task Views.
You can apply labels to fields and UI components in the UI that do not have localized text. The names of sections, inline guidances, and relationship fields are unique to the UI and have no localized text until you create it. For example, a section that is titled Remediation in English has no translated string in German. When you add the German title, a string key is automatically created.
For information about localization, see Localizing text.
You can provide localized text only for labels where an Edit button is displayed.
On the JSON tab, localized values are defined in nameLabels properties for
fields and UI components.
Procedure
Results
String keys are automatically created for the localized text you add. If values change in the future, repeat the steps and make the changes.
Defining default filters on Grid Views
About this task
If you define a default filter, a checkbox with the label you provide displays on the grid. It is selected by default. Only objects that match the filter are displayed in a view.
For quicker system performance, apply a default filter to Grid Views that are defined for object types that potentially display many objects.
Filters can be based only on single value enumerated fields. A Grid View can have only one default filter but it can have multiple rules. An object must meet all rules to match the filter.
Grid Views for object types that have workflows display a filter named Active Only. If you define a default filter rule for an object type that has workflows, it overwrites the Active Only filter.
An example of a default filter is that you want a Grid View for SOXRisk objects to display only objects whose Status field is set to Approved. A checkbox labeled Only display approved items is displayed on the grid.
You can use a filter so that a Grid View for SOXRisk objects displays only objects whose Status field is set to Reject and whose Audit Inherent Impact is 1 or 2. One checkbox labeled Only display rejected items is displayed on the grid.
For more information about rules, see Configuring rules.
On the JSON tab, default filter rules are defined in a defaultFilterRules element in a Grid View.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- On the canvas, click Define default filter.
- Specify a Label. This name displays on the grid.
- Click New Rule.
- In Field, choose the field that the filter is based on. Only single value enumerated fields are listed.
- In Matches any of, select the value or values that you want to filter on. If you add multiple values, an object must have one of the values to match the filter.
- Click Done.
- Add more rules, if needed. If you add multiple rules, an object must meet all rules to match the filter.
- Click Create.
What to do next
Publish the Grid View to test the filter. Filters are not supported on the Preview tab.
Adding a referenced content field
A Referenced content field in the View Designer gives you the option to enter a generated API URL that is displayed in the Task View. The URL can be automatically refreshed for users in set minute intervals.
About this task
The Referenced content field is valid in a Task View.
You can choose to automatically refresh the API URL to get updated information, which depends on how many minutes you set it to refresh in the View Designer. You can also choose to set the visibility of the field based on other fields in the view.
Procedure
Defining default layouts on Grid Views
You can set a default layout for Grid Views.
About this task
You can define Grid Views to display objects in a list or card layout. The layout you select is the default layout that users see. Users can still choose which layout they want to view for better readability of the data. For example, if users were using the Grid View on a small mobile screen, then a card layout would be appropriate.
Procedure
- In the View Designer, click the Design tab. The palette is displayed.
- On the canvas, click Default layout.
- Select Card or List to set the default layout.
- Click Done and publish the view. Previewing layouts is not available.
Adding a table layout
Add a table layout to organize fields in sections for better readability.
About this task
Table layouts are valid in Creation, Task, and Admin Views.
Table layouts contain fields that users can edit or read. The field attributes are the same as other attributes, such as rules.
to populate translated values to languages. For more
information, see