Static Task Information SA Widget
SimpleOne provides several widgets for displaying read-only information on user queries, incidents, problems, requests, and change request forms. One of them is the Static Task Information SA widget.
This widget retrieves information from the current task record. For more information on the displayable fields, read the Configure the widget fields section.
Widget appearance
- Widget title. You can change the text by changing the translations of the /record/source_message/171050347517417363 source message.
- Fields with available information. You can configure the displayable fields and their layout.
- Date and time of the latest record update.
Add the widget to a form
To add the Static Task Information SA widget to record forms of a specific table, perform the following steps:
- Open the table form.
- In the burger menu , select Configure → Form → Layout.
- From the Available box, move the Static Task Information SA widget to the Selected box.
- Click Save.
Configure the widget fields
The fields displayed in the Static Task Information SA widget are organized into rows and columns. The rows can have different number of columns. Each row, regardless of the number of the columns it has, takes the full width of the widget. If a field has no value, the not set placeholder is displayed in the corresponding column.
You can also specify whether the column style rules should be applied to the fields of the widget in the colorizedFields attribute. If you do not specify that, the style rules will not be applied even if they are configured, and the widget fields will be gray. If the value of the field is not set, the style rules are ignored.
To change the displayed fields and their layout, complete the following steps:
- In the burger menu of the form where the widget is located, go to Configure → Form → Layout.
- In the Selected box, select the widget you need to configure. А window with the Schema option values field appears on the right.
- Specify the system names of the columns you need to include in the widget in the fields attribute. Specify the system names of the columns you need to apply the style rules for in the colorizedFields attribute. Example:
{
"fields":[
["priority","sys_created_at","due_date"],
["state","assignment_group","assigned_user"],
["contact_type","service"]
],
"colorizedFields":[
"state","priority","due_date"
]
}
- Click Save.
As a result, the widget has:
- three columns in the first row with the Priority, Created at and Due date fields.
- three columns in the second row with the State, Assignment group and Assigned user fields.
- two columns in the third row with the Contact type and Service fields.
The State, Priority and Due date fields will be colored according to the column style rules.
Configure widget height
You can set the minimal height of the widget in pixels. Notably, the minimal height cannot be less than the height of displayed elements.
To set the minimal height, complete the following steps:
- Navigate to a table record showing the widget.
- In the burger menu , select Configure → Form → Layout.
- In the Selected box, click the widget name to open the Widget instance window.
- In the Schema option values field, set the minimal height of the widget using the minHeight property as shown below.
{
"minHeight": "600px",
"title": "Task",
"column": "state",
"colorMap": [
{"color": "#0086E5", "value":"1"},
{"color": "red", "value":"-1"}
],
"excludedStates": ["-2","7"]
}
- Click Save to apply the changes.