Updated Statistics Aggregation Mode filtration

This commit is contained in:
gigi.mamaladze 2025-10-20 17:49:41 +04:00
parent 3eb9dd231c
commit d09cbd0222

View File

@ -12,7 +12,7 @@
} }
}, },
"params": { "params": {
"Tab_ID": 0, "Tab_ID": 1,
"Table": "Statistics" "Table": "Statistics"
}, },
"propConfig": { "propConfig": {
@ -1486,7 +1486,7 @@
}, },
"hiddenInLegend": false, "hiddenInLegend": false,
"label": { "label": {
"text": "" "text": "Diverter"
}, },
"line": { "line": {
"appearance": { "appearance": {
@ -1746,7 +1746,7 @@
}, },
"hiddenInLegend": false, "hiddenInLegend": false,
"label": { "label": {
"text": "Dest Jam" "text": ""
}, },
"line": { "line": {
"appearance": { "appearance": {
@ -3138,6 +3138,7 @@
"config": { "config": {
"script": "\n\tself.parent.parent.getChild(\"Aggregation Mode\").getChild(\"Aggregation Mode DropDown\").props.value \u003d \"Count\"" "script": "\n\tself.parent.parent.getChild(\"Aggregation Mode\").getChild(\"Aggregation Mode DropDown\").props.value \u003d \"Count\""
}, },
"enabled": false,
"scope": "G", "scope": "G",
"type": "script" "type": "script"
} }
@ -7507,7 +7508,7 @@
"props.currentTabIndex": { "props.currentTabIndex": {
"onChange": { "onChange": {
"enabled": null, "enabled": null,
"script": "\t# Resolve the dropdown once\n\tdropdown \u003d self.parent.getChild(\"Aggregation Mode\").getChild(\"Aggregation Mode DropDown\")\n\t\n\t# Define options\n\toptions_rate \u003d [\n\t {\"value\": \"Count\", \"label\": \"Count\"},\n\t {\"value\": \"Percentage\", \"label\": \"Percentage\"},\n\t {\"value\": \"Rate\", \"label\": \"Rate\"}\n\t]\n\toptions_no_rate \u003d [\n\t {\"value\": \"Count\", \"label\": \"Count\"},\n\t {\"value\": \"Percentage\", \"label\": \"Percentage\"}\n\t]\n\t\n\t# Read current value safely (accepts 1/True for \"Rate\" enabled)\n\tval \u003d getattr(currentValue, \"value\", None)\n\tif (val \u003d\u003d 0):\n\t\tdropdown.props.options \u003d options_no_rate\n\t\tdropdown.props.value \u003d \"Count\"\n\telif (val \u003d\u003d 1):\n\t\tdropdown.props.options \u003d options_rate\n\n\n\t\t" "script": "\t# Resolve the dropdown once\n\tdropdown \u003d self.parent.getChild(\"Aggregation Mode\").getChild(\"Aggregation Mode DropDown\")\n\t\n\t# Define options\n\toptions_rate \u003d [\n\t {\"value\": \"Count\", \"label\": \"Count\"},\n\t {\"value\": \"Percentage\", \"label\": \"Percentage\"},\n\t {\"value\": \"Rate\", \"label\": \"Rate\"}\n\t]\n\toptions_no_rate \u003d [\n\t {\"value\": \"Count\", \"label\": \"Count\"},\n\t {\"value\": \"Percentage\", \"label\": \"Percentage\"}\n\t]\n\t\n\t# Read current value safely (accepts 1/True for \"Rate\" enabled)\n\tval \u003d getattr(currentValue, \"value\", None)\n\tif (val \u003d\u003d 0):\n\t\tdropdown.props.options \u003d options_no_rate\n\t\tif (dropdown.props.value \u003d\u003d \"Rate\"):\n\t\t\tdropdown.props.value \u003d \"Count\"\n\telif (val \u003d\u003d 1):\n\t\tdropdown.props.options \u003d options_rate\n\n\n\t\t"
} }
}, },
"props.tabs": { "props.tabs": {
@ -7515,6 +7516,7 @@
} }
}, },
"props": { "props": {
"currentTabIndex": 1,
"menuStyle": { "menuStyle": {
"backgroundColor": "#FFFFFFBD", "backgroundColor": "#FFFFFFBD",
"fontSize": "1.0vmin", "fontSize": "1.0vmin",
@ -7591,6 +7593,10 @@
{ {
"label": "Percentage", "label": "Percentage",
"value": "Percentage" "value": "Percentage"
},
{
"label": "Rate",
"value": "Rate"
} }
], ],
"style": { "style": {
@ -9384,7 +9390,7 @@
}, },
"props": { "props": {
"dismissOnSelect": false, "dismissOnSelect": false,
"formattedValue": "Oct 19, 2025 7:44 PM", "formattedValue": "Oct 20, 2025 9:49 AM",
"formattedValues": { "formattedValues": {
"date": "Mar 26, 2021", "date": "Mar 26, 2021",
"datetime": "Mar 26, 2021 12:00 AM", "datetime": "Mar 26, 2021 12:00 AM",
@ -9402,9 +9408,9 @@
"$": [ "$": [
"ts", "ts",
192, 192,
1760917456306 1760968151054
], ],
"$ts": 1760888655000 "$ts": 1760939351000
} }
}, },
"type": "ia.input.date-time-input" "type": "ia.input.date-time-input"
@ -9555,7 +9561,7 @@
}, },
"props": { "props": {
"dismissOnSelect": false, "dismissOnSelect": false,
"formattedValue": "Oct 20, 2025 3:44 AM", "formattedValue": "Oct 20, 2025 5:49 PM",
"formattedValues": { "formattedValues": {
"date": "Mar 29, 2021", "date": "Mar 29, 2021",
"datetime": "Mar 29, 2021 1:37 PM", "datetime": "Mar 29, 2021 1:37 PM",
@ -9573,9 +9579,9 @@
"$": [ "$": [
"ts", "ts",
192, 192,
1760917456964 1760968151054
], ],
"$ts": 1760917456000 "$ts": 1760968151000
} }
}, },
"type": "ia.input.date-time-input" "type": "ia.input.date-time-input"