Static User Information SA Widget
SimpleOne provides several widgets for displaying read-only information on user queries, incidents, problems, requests, and change requests forms. One of them is the Static User Information SA widget.
This widget retrieves information from the record referenced in the Caller field.
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
- The label that is displayed if the user has VIP status.
- User's first and last name. If these fields are empty, the user's login is displayed in the widget.
- Job title. This field is hidden if the corresponding column in the user's record is empty.
- User's profile link. Click it to open the user's record in the User (user) or Employee (employee) table.
- Phone number. This field is hidden if the corresponding column in the user's record is empty. Click the number to select an application and call the user. If you move the pointer over the number, you will see the icon. Click it to copy the caller's phone number into the clipboard.
- Email address. This field is hidden if the corresponding column in the user's record is empty. Click the email address to send the caller a message using the default email application on your device. If you move the pointer over the address, you will see the icon. Click it to copy the caller's email address into the clipboard.
- Fields with available information. You can configure the displayed fields and their layout, and specify if the column style rules should be applied to color the fields of the widget.
If the caller was removed from the system, the widget takes the following view:
Add the widget to a form
To add the Static User 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 User Information SA widget to the Selected box.
- Click Save.
Configure the widget fields
The fields displayed in the Static User 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 if the column style rules should be applied to the fields of the widget. If you do not specify that, the style rules will not be applied even if they are configured, and the widget fields will be white. If the value of the field is not set, the style rules are ignored.
To change the displayed fields and their layout, perform 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 color attribute. Example:
{
"color":
["timezone_id","company","work_schedule"],
"fields": [
["timezone_id", "date_of_birth", "company", "language_id"],
["business_phone", "work_schedule", "unit"]
]
}
- Click Save.
As a result, the widget has:
- four columns in the first row with the Timezone, Date of birth, Company, and Language fields.
- three columns in the second row with the Business phone, Work schedule, and Unit fields.
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",
"fields": [
["timezone_id","date_of_birth","location","language_id"],
["business_phone","middle_name","unit"]
]
}
- Click Save to apply the changes.