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": {
"Tab_ID": 0,
"Tab_ID": 1,
"Table": "Statistics"
},
"propConfig": {
@ -1486,7 +1486,7 @@
},
"hiddenInLegend": false,
"label": {
"text": ""
"text": "Diverter"
},
"line": {
"appearance": {
@ -1746,7 +1746,7 @@
},
"hiddenInLegend": false,
"label": {
"text": "Dest Jam"
"text": ""
},
"line": {
"appearance": {
@ -3138,6 +3138,7 @@
"config": {
"script": "\n\tself.parent.parent.getChild(\"Aggregation Mode\").getChild(\"Aggregation Mode DropDown\").props.value \u003d \"Count\""
},
"enabled": false,
"scope": "G",
"type": "script"
}
@ -7507,7 +7508,7 @@
"props.currentTabIndex": {
"onChange": {
"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": {
@ -7515,6 +7516,7 @@
}
},
"props": {
"currentTabIndex": 1,
"menuStyle": {
"backgroundColor": "#FFFFFFBD",
"fontSize": "1.0vmin",
@ -7591,6 +7593,10 @@
{
"label": "Percentage",
"value": "Percentage"
},
{
"label": "Rate",
"value": "Rate"
}
],
"style": {
@ -9384,7 +9390,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Oct 19, 2025 7:44 PM",
"formattedValue": "Oct 20, 2025 9:49 AM",
"formattedValues": {
"date": "Mar 26, 2021",
"datetime": "Mar 26, 2021 12:00 AM",
@ -9402,9 +9408,9 @@
"$": [
"ts",
192,
1760917456306
1760968151054
],
"$ts": 1760888655000
"$ts": 1760939351000
}
},
"type": "ia.input.date-time-input"
@ -9555,7 +9561,7 @@
},
"props": {
"dismissOnSelect": false,
"formattedValue": "Oct 20, 2025 3:44 AM",
"formattedValue": "Oct 20, 2025 5:49 PM",
"formattedValues": {
"date": "Mar 29, 2021",
"datetime": "Mar 29, 2021 1:37 PM",
@ -9573,9 +9579,9 @@
"$": [
"ts",
192,
1760917456964
1760968151054
],
"$ts": 1760917456000
"$ts": 1760968151000
}
},
"type": "ia.input.date-time-input"