Batch Table
This widget shows batch (BPR) headers in a tabular view. The widget derives from Time Period Table
and contains Table
and Time Period Pickers.
Model
{
"type": "batchtable",
"actions": {},
"dataSource": {
"type": "fetch",
"path": "PATH TO BATCH OWNING OBJECT",
"filter": {},
"project": {},
"sort": {},
"skip": 0,
"limit": 1000
},
"endtime": "2020-10-01T10:00:00:000Z",
"maxDuration": "1h",
"starttime": "2020-10-01T00:00:00:000Z",
"table": {},
"toolbars": {}
}
Field | Description |
---|---|
|
In addition to the default lifecycle actions, the batch table widget support additional action hooks. |
|
Optional data source from which the data and model for the widget can be loaded from. |
|
End time can be assigned to initialize the Time Pickers |
|
This property can be used to configure the maximum length of the time period in which data can be collected. |
|
Initial start time can be assigned to initialize the Time Pickers |
|
This can be used to directly access other widgets that are contained within the batch table widget. See the Table widget for details. |
|
Optional configuration to add, customise and hide the widget toolbars. See the |
DataSource
If the dataSource
property is defined as an object, the message returned from the data is usually determined by the type
property. For further information, see the DataSource section in the widget documentation. If the type
field in the dataSource
does not match the widget type
, then, the data
, starttime
and endtime
fields are checked in the payload and merged into the model. If none of these fields are defined, the payload will be assigned to the data
property if the message topic is not "selectRows". See the Table widget.
Toolbars
The batch table widget can have one or more custom toolbars. By default, the batch table has a toolbar on the top of the widget. In addition, the table contained within the widget has two toolbars, one at the top and one at the bottom of the widget. To add custom toolbars to the widget, see the toolbars section in the widget documentation.
Tools
The following tools have a default implementation in the batch table widget:
Icon | Name | Description |
---|---|---|
|
Shows/hides the filter field in each column of the batch table. |
|
|
This tool can be used to navigate between pages and to change the number of rows in the batch table. |
|
|
Refreshes the widget datasource |
|
|
Shows/hides the search input box. Used to search for table entries. |
|
|
This tool is used to specify the alignment of tools in the widget toolbar. |
|
|
When the |
|
|
Configuration for the time period to retrieve data to populate the batch table. |
|
|
Indicates the number of rows visible in the batch table. |