{ "custom": {}, "params": { "titleExtra": "1 rows", "usesTimewidget": true }, "propConfig": { "params.titleExtra": { "paramDirection": "output", "persistent": true }, "params.usesTimewidget": { "binding": { "config": { "expression": "true" }, "type": "expr" }, "paramDirection": "output", "persistent": true } }, "props": { "defaultSize": { "height": 324, "width": 1600 } }, "root": { "children": [ { "meta": { "name": "ScannerSummary" }, "position": { "height": "100%", "width": "100%" }, "propConfig": { "custom.timewidget": { "binding": { "config": { "path": "session.custom.timewidget" }, "type": "property" }, "onChange": { "enabled": null, "script": "\tself.forceRefresh()" } } }, "props": { "cells": { "style": { "borderBottomColor": "#D5D5D5", "borderBottomStyle": "solid", "borderBottomWidth": "1px", "borderRightColor": "#D5D5D5", "borderRightStyle": "solid", "borderRightWidth": "1px", "color": "#000", "fontFamily": "Helvetica", "fontSize": "14px" } }, "columns": [ { "align": "center", "boolean": "checkbox", "dateFormat": "YYYY-MM-DD HH:mm:ss", "editable": false, "field": "sorter", "footer": { "align": "center", "justify": "center", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Sorter" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": false, "sortable": true, "strictWidth": true, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 80 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "scanner", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Scanner" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": false, "sort": "none", "sortable": true, "strictWidth": true, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 90 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "count", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Total" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": false, "sort": "none", "sortable": true, "strictWidth": true, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 100 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "rate", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Rate (PPH)" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": true, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 160 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "avg_gap_trailing", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Avg Gap Trailing (Avg)" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 120 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "avg_gap_leading", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Avg Gap Leading (in)" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 120 }, { "align": "center", "boolean": "checkbox", "dateFormat": "MM/DD/YYYY", "editable": false, "field": "avg_pkg_length", "footer": { "align": "center", "justify": "left", "style": { "classes": "" }, "title": "" }, "header": { "align": "center", "justify": "center", "style": { "classes": "table/column-header" }, "title": "Avg Package Length (in)" }, "justify": "center", "number": "value", "numberFormat": "none", "progressBar": { "bar": { "color": "#62A3F6", "linecap": "round", "width": 5 }, "max": 100, "track": { "color": "#DADADA", "linecap": "round", "width": 2 }, "value": { "color": "#7D7D7D", "show": true } }, "render": "auto", "resizable": true, "sort": "none", "sortable": true, "strictWidth": false, "style": { "classes": "" }, "toggleSwitch": { "color": { "selected": "#2196F3", "unselected": "#FFFFFF" } }, "viewParams": {}, "viewPath": "", "visible": true, "width": 150 } ], "data": [ { "avg_gap_leading": 35.6, "avg_gap_trailing": 29, "avg_pkg_length": 12.4, "count": 73765, "rate": 3074, "scanner": "S01aa", "sorter": "S01" } ], "filter": { "enabled": true }, "pager": { "bottom": false }, "rows": { "highlight": { "enabled": false }, "striped": { "enabled": false }, "style": { "classes": "table/highlight" } }, "style": { "fontFamily": "Helvetica", "fontSize": "14px", "fontWeight": "bold" } }, "scripts": { "customMethods": [ { "name": "forceRefresh", "params": [], "script": "\tRED \u003d lambda x: { \"value\": x, \"style\": { \"background\": \"#FEA3AA\" } }\n\tYELLOW \u003d lambda x: { \"value\": x, \"style\": { \"background\": \"#FAF884\" } }\n\t\n\t# Run query:\n\tdata \u003d system.db.runNamedQuery(\"Status/PackageSummary\", {\n\t\t\"startDate\": self.session.custom.timewidget.startDate,\n\t\t\"endDate\": self.session.custom.timewidget.endDate,\n\t})\n\t# Convert to JSON:\n\tfilteredData \u003d utils.datasetToJSON(data)\n\t# Set title extra:\n\tcou \u003d utils.getRowCount(filteredData)\n\tast \u003d \"*\" if cou \u003e\u003d 4000 else \"\"\n\tself.view.params.titleExtra \u003d \"{:n}{} rows\".format(cou, ast)\n\t# Set data\n\tself.props.data \u003d filteredData" } ], "extensionFunctions": null, "messageHandlers": [ { "messageType": "export-data", "pageScope": true, "script": "\tutils.downloadCSV(self, \"Scanner Summary\")", "sessionScope": false, "viewScope": false } ] }, "type": "ia.display.table" } ], "meta": { "name": "root" }, "type": "ia.container.coord" } }