Displaying Monitoring Screenshots in a DashboardBETA
In this article
Note
These features are available in beta version. Try them in your workflow and share your feedback — your input helps us improve the product.
Screenshots collected by the monitoring agent can be displayed in a dashboard in two ways:
- Using the Text widget
- Using click action configuration
Preparing Data for Screenshot Display
- Enable screenshots monitoring to start screenshot collection by the monitoring agent.
- Perform several work operations on the workstation where the monitoring agent is installed and screenshots monitoring is enabled.
- Go to the Control Panel in the workspace, click Add, and select Script.
- Specify a script name and confirm by clicking Add.
- Add the Manual start trigger to the script.
- To clear the table in the Data Model, add an SQL query block.
- In the block parameters, specify an SQL query to truncate the table.
truncate table if exists table_name - Add a Select rows by SQL query block, and specify an SQL query in the block parameters to select the required fields from the activity table:
select employee_account_id, screenshot_id from !${global.activity_table} - Add an Insert rows block to write data from the activity table into a table in the Data Model.
- Click the Table field, select + Add table from the dropdown menu, and choose Create from output data.
- Select the block whose output data should populate the table and click Add.
- Enter a table name and click Add.
- Click Autocomplete fields with output data to map mapping fields to columns of the new table, then confirm by clicking Apply.
- Test the block.
- Publish and activate the script.
- Go to the Control Panel in the workspace, click Add, and select Dashboard.
- Specify a dashboard name and confirm creation by clicking Save.
Configuring Screenshot Display via the Text Widget
To display screenshots in the Text widget, follow these steps:
- Go to the dashboard indicators tab and add a Dynamic list variable.
- Specify a variable name and set the
screenshot_idcolumn in the list field. - Add a Parameter widget to the view and select the added variable in the widget settings.
- Add a Text widget to the view and configure image rendering:
<img src="https://{Operavix domain}/graphql?query=%7Bmonitoring_screenshot%7Bscreenshot(screenshot_uuid:%22{inputs.Dashboard variable}%22)%7D%7D" style="width: 100%; width: 40% object-fit: scale-down;"/> - Publish the dashboard.
- Select a screenshot identifier in the parameter. The corresponding image appears in the Text widget.
Configuring Screenshot Display via Click Action
Screenshots can be displayed in a separate window when clicking a dimension value in a widget:
- Add a Table widget to the dashboard and specify the required dimensions.
- Create an additional view to display the screenshot.
- Add an Input value variable to the additional view.
- Specify a variable name, select a data type, and set the
screenshot_idcolumn as the Default value. - Add a Text widget to the view and configure screenshot display using the Input value variable:
<img src="https://{Operavix domain}/graphql?query=%7Bmonitoring_screenshot%7Bscreenshot(screenshot_uuid:%22{inputs.Input value variable}%22)%7D%7D" style="width: 100%; width: 40% object-fit: scale-down;"/> - Go to the home view and add an Open view click action to the dimension that should trigger screenshot display.
- Specify an action name, select the target view, and choose where it opens—current, new, or side window.
- Configure parameter passing from the required table column to the opened view.
- Publish the dashboard.
- Click a screenshot identifier, open the context menu, and select Open view.
- The user action screenshot appears in the opened side window.
Was the article helpful?
Yes
No