The Summary widget is only used on approval forms. It is used to reduce the number of actions and the time required to get acquainted with the subject of approval.
To display summary of records, you need to add the widget to a form layout and configure the option schema.
Use the Widget Instance window to specify the widget options. Click the widget while configuring the layout.
Configure the option schema to override default widget settings. Learn how to do it below.
The default settings:
|
In the window, fill in the Schema Option Values field. Enter the widget options in JSON format.
If there is no value in the field, the widget is not displayed. |
Define a field with the record that needs approval. Specify a column name and its type:
{ "columnName": "column_name" "columnType": "column_type.title" } |
If the column is of any reference type, specify the table to which the column refers to:
{ "tableId": "table_id" } |
Enable the portal style for the widget:
{ "isPortal": "true" } |
Use this parameter if the widget is added to a portal form. |
Define a configured view name with a specific set of fields:
{ "viewName": "view_name" } |
Change the default title of the widget by defining the new one:
{ "widgetName": "Title" } |
It is better to use a title created in the Source Message (source_message) table, so that it has translations. |
Exclude empty fields not to display in the widget:
{ "isShowEmptyField": "false" } |
Exclude REM attributes not to display in the widget:
{ "isShowRemAttribute": "false" } |
Example:
"tableId": "156873090301469473", "isPortal": true, "viewName": "Default", "columnName": "employee", "columnType": "Reference", "widgetName": "Summary", "isShowEmptyField": false, "isShowRemAttribute": true |