Permits to export data of multiple metrics and things.
This widget is visible only to users who have the "Export Things Data" (EXPORT_DATA) permission.
By clicking the Schedule data export button, the widget switches to a form where the user can configure which data to export.
In a Data Export, you can configure:
- The name of the data export to be scheduled.
- Optionally, you can limit the things to be processed by selecting a customer, a location, and a thing. If left blank, all items visible to the logged-in user are exported.
- The thing-definitions and related metrics to export.
- The file name (placeholder-based template) to be used for each exported thing.
- The time period of data to be exported.
- The timestamp format used as the first column of each CSV generated (ISO or milliseconds).
- If the data is to be anonymized, for instance, the thing name or serial number is blurred.
By pressing the Export button, a data export process is scheduled, and within the widget you can see the status of the data exports and get an idea of the time remaining. When finished, you can download the ZIP archive containing a CSV file for each exported thing.
The widget is aware of the context of the page, so if it is inserted into a customer details page, it will show only the data-exports related to that customer.
Configuration
code_blocksDesign View
In the template editor, you can find the Data Export icon under the Analysis and Reporting component palette group.
code_blocksCode View
Template Syntax
Below you can find some examples of how to use the component within a template.
<data-export-widget [title]="'Data Export'"></data-export-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Data Export <data-export-widget> | |
---|---|
PROPERTIES | |
CSS Class | The name(s) of the CSS class used to customize the widget layout. Type: STRING | Optional class="my-custom-class" |
Title | The title displayed on the top part of the widget box. Type: STRING | Optional [title]="'Details'" |
Visibility Condition | The expression that allows you to reduce the visibility of the element. Type: STRING | Optional *ngIf="getUser().organizationId != null" |
Comments
0 comments
Please sign in to leave a comment.