Displays a list of all noteworthy events that have occurred or that are still active.
The widget is aware of the page context, and so can load events over multiple customers, locations and machines.
When placed in a page, you must choose whether to show events that are finished and therefore historical, or show events that are still active.
Active or Historical Events
By changing the Event Status property you select whether active or historical events must be displayed.
If the Event Status property is left blank, the widget will allow selecting whether to display the active or historical events.
Details Navigation
Clicking on a row opens the event details popup. Optionally the event details can be opened in a full page (see Details Mode option).
The header of the event details popup contains the event name, description, and a breadcrumb that provides the context of the event, and whose tokens can be clicked to quickly jump to related objects (e.g. Customer, Location, Thing).
The event details body is generated through a template which by default reports the event main information (e.g. timeline, technical description), but in the alternative you can redefine the template within the event definition page.
On the event list rows, you can also click directly on specific information to jump to the event related objects:
Customer Name / Code ā Customer details page
Location name ā Location details page
Thing Name / Serial Number ā Thing details page
In all other case the event details popup/page is opened.
Advanced Search
The advanced search allows filtering events by:
Text Key: text which is searched into the name, title and description of each event.
Customer: a customer can be selected, in the case of a user belonging to an organization or partner.
Severity: the severity of the event, one of Failure, Major Anomaly, Minor Anomaly and Operation.
Period: the time period used to filter events by start timestamp.
Thing Definition or Product Model: one or more thing definitions or product models.
Type: type of event, choosing one or more definitions.
By clicking the Export button, all events that meet the search criteria can be downloaded through a CSV file.
User Reported Events
User reported events can be created by clicking on the 3-dots icon and the Report Event.
A popup request the user to select the event to register, and optionally provide some additional notes for technicians.
Configuration
Template Syntax
Below you can find some examples of how to use the component within a template.
<event-list-widget [pageSize]="10" [title]="'Events'">
<property name="eventSeverity" label="Type" filter="eventSeverity"></property>
<property name="date" [label]="'Date Time'"></property>
<property name="thing.serialNumber" label="Thing"></property>
<property [name]="'customer.name'" [label]="'Customer'" *ngIf="getUser()?.organizationId || getUser()?.partnerId"></property>
<property [name]="'location.name'" [label]="'Location'"></property>
<property name="title" [label]="'Alert'"></property>
<property name="description" [label]="'Details'"></property>
<property name="duration" [label]="'Elapsed Time'"></property>
</event-list-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Event List <event-list-widget> | |
---|---|
PROPERTIES | |
Controls Enabled | The boolean flag indicating whether controls (e.g. Search, Export) are enabled on the widget. true false
|
CSS Class | The name(s) of the CSS class used to customize the widget layout. |
Details Mode | The way the alert details is opened if in a POPUP, in a dedicated PAGE or NONE to disable details. POPUP PAGE NONE
|
Empty Message | The blank message to be displayed in the widget in case no item was found. To manage translations, you can define a label and use the key as the value of the property. |
Event Status | The status of the event to display. ACTIVE CLOSED
|
Export Enabled | The boolean flag indicating whether the data export is enabled. true false
|
Include Sub Things Events | The flag indicating whether sub-things events must be included when this widget is placed in a thing dashboard. true false
|
Initial Sorting | The array of property names and criteria to use for sorting (e.g. ['name','asc','serialNumber','desc']). |
Page Size | The number of items to load on each page. |
Query | The array of conditions filtering out items. |
Query Variable | The id of the page's <things-filter-field> used for searching. |
Title | The title displayed on the top part of the widget box. |
Click On Row Behaviour | The expected behaviour when a row is clicked. OPEN_DETAILS OPEN_CONTEXT_OBJECT
[DEPRECATED] |
SUB-ELEMENTS | |
Property | The property whose value must be displayed for each event row. |
Composite Part | The composite part whose value must be displayed within the event row. <property name="name"></property> <property name="severity"></property> </composite-part> |
Property <property> | |
---|---|
PROPERTIES | |
Column CSS Class | The name(s) of the column CSS class used to customize the table column. |
Description | The property description. |
Export Only | The boolean flag indicating whether the property value should be included only in the export and not visible within the page. true false
|
Filter | The name of the filter used to transform and display values. |
Label | The property alternative label. |
Name | The property whose value must be loaded by the widget. |
Show Header | The flag indicated whether the header is visible. true false
|
Visibility Condition | The expression that allows you to reduce the visibility of the element. |
Composite Part <composite-part> | |||||
---|---|---|---|---|---|
PROPERTIES | |||||
Column CSS Class | The name(s) of the column CSS class used to customize the table column. | ||||
Description | The composite-part description. | ||||
Filter | The filter applied on the composite-part to transform or display its value. | ||||
Label | The label displayed by the widget. | ||||
Name | The composite-part name. | ||||
Show Header | The flag indicated whether the header is visible. true false
| ||||
Visibility Condition | The expression that allows you to reduce the visibility of the element. | ||||
SUB-ELEMENTS | |||||
Property | The property whose value must be loaded within the composite-part.
|