You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 22 Next »
SimpleOne provides several comprised widgets for displaying read-only information on user queries, incidents, problems, requests, and change requests forms. One of them is the Static User Information widget.
This widget retrieves information from the record referenced in the Caller field. By default, the following fields are displayed:
- Business Phone
- Mobile Phone
- Timezone
- Location
- Department
- Unit
- Work Schedule
The Static User Information widget does not display empty fields. That is, if some fields in the Employee record are not filled, they will be hidden.
Widget appearance
- Username – click on the username to open a relevant record in the Employee table.
- Job title.
- Fields with available information.
You can reorder widgets and fields using the Form Layout functionality.
To learn how to change the order of fields within the Static User Information widget, refer to the next section.
Configuring widget set of fields
Role required: admin.
To change the set of displayed fields, complete the following steps:
- Navigate to Portal Structure → Widgets.
- Open the record named Static User Information.
In the Server Script field, find the line
Server Scriptconst columnNames = [
Add or delete column names in the lines below.
Please note that the script requires the system column names in a single quote marks, for example, 'business_phone' for the Business Phone column.
- Click Save or Save and Exit to apply changes.
You can also change the field order by moving the lines with their system names in the Server Script field.
For example, you want to hide the phone numbers and add the name of the employee's manager. To do that, perform the steps described below. In the Server Script field, make the following edits:
- Delete lines containing column names 'business_phone' and 'mobile_phone'.
- Add a new line containing the system column name 'manager' from the Employee table.
const columnNames = [ 'business_phone', 'mobile_phone', 'email', 'timezone_id', 'location', 'department', 'unit', 'work_schedule' ];
const columnNames = [ 'email', 'manager' 'timezone_id', 'location', 'department', 'unit', 'work_schedule' ];
Adding a widget to custom ITSM essence
To add the Static User Information widget to a custom ITSM table, extended from the ITSM Task table, perform the following steps:
- Open the custom table form.
- In the hamburger menu, select Configure → Form → Layout.
- From the Available box, move the Static User Information widget to the Selected box.
- Click Save.
Configuring the widget fields
Users with the administrator role can manage the location and the content of the fields located in the Static User Information widget. Namely, it is possible to place the selected fields in the exact order within the specified line.
To change the widget layout:
- In the hamburger menu of the form where the widget is located, go to Configure → Form → Layout.
- In the Selected box, select the widget you want to configure.
А window with the Schema Option Values field appears on the right. Change the order and the content of the fields in each raw of the widget. If a field has no value, it is filled with the 'not set' placeholder.
For example, the following settings refer to setting three fields in the first line and two fields in the second line.
[["business_phone","timezone_id","location"],["department","work_schedule"]]
Each line is considered to be a cell that can be divided into numerous columns depending on the number of fields set. Thus, each line, regardless of the number of the columns it has, takes the full width of the widget.
The Static User Information widget may contain the telephone number and email of a user, if one of them or both not set, this filed is not displayed. With the Copy buttons, you can copy the Caller's telephone number and the email address, if provided. When doing so, a toast-message appears stating that the information has been saved to the buffer. Clicking the email address initiates a new email in the email application set by default on the user's computer, where the To field is pre-filled.
To go to the Caller profile, click the link icon .
- No labels