...
Code Block |
---|
"dssIfixEBillsUnpaid": { "chartName": "DSS_IFIX_EBILLS_UNPAID", "queries": [ { "module": "IFIX", "requestQueryMap": "{\"Zone\":\"Data.hierarchyMap.Zone.keyword\",\"Circle\":\"Data.hierarchyMap.Circle.keyword\",\"Department\":\"Data.hierarchyMap.Department.keyword\",\"GP\":\"Data.hierarchyMap.GP.keyword\",\"Division\":\"Data.hierarchyMap.Division.keyword\",\"Sub Division\":\"Data.hierarchyMap.Sub_Division.keyword\",\"Section\":\"Data.hierarchyMap.Section.keyword\"}", "dateRefField": "Data.eventTime", "indexName": "ifix-fiscal-events", "aggrQuery": "{\"aggs\":{\"Department\":{\"terms\":{\"field\":\"Data.hierarchyMap.Zone.keyword\"},\"aggs\":{\"Pending Amount\":{\"filter\":{\"terms\":{\"Data.eventType.keyword\":[\"Bill\",\"Payment\"]}},\"aggs\":{\"Total\":{\"sum\":{\"field\":\"Data.computedFields.electricityExpenseNetAmount\"}}}}}}}}" } ], "isMdmsEnabled": false, "chartType": "table", "valueType": "number", "action": "", "plotLabel": "GPWSCS", "isPostResponseHandler": true, "postAggregationTheory" : "repsonseToDifferenceOfDates", "documentType": "_doc", "drillChart": "none", "aggregationPaths": [ "Pending Amount" ], "pathDataTypeMapping": [ { "Pending Amount": "amount" } ], "insight": { }, "_comment": "" } |
Once the aforementioned steps are completed, we require to add role action mapping for the newly configured dashboard by adding the following configs -
Add the following entries in action config -
Code Block |
---|
{
"id": 2032,
"name": "Dashboard IFIX",
"url": "url",
"displayName": "IFIX",
"orderNumber": 14,
"parentModule": "dss-dashboard",
"enabled": true,
"serviceCode": "DSS",
"code": "null",
"path": "Dashboard.IFIX",
"navigationURL": "/digit-ui/employee/dss/dashboard/ifix",
"leftIcon": "places:business-center",
"rightIcon": ""
},
{
"id": 2033,
"name": "DSS Dashboard Config IFIX",
"url": "/dashboard-analytics/dashboard/getDashboardConfig/ifix",
"parentModule": "",
"displayName": "DSS",
"orderNumber": 0,
"enabled": false,
"serviceCode": "DSS",
"code": "null",
"path": ""
} |
2. Add the following entries in role-action configuration -
Code Block |
---|
{
"rolecode": "EMPLOYEE",
"actionid": 2032,
"actioncode": "",
"tenantId": "pb"
},
{
"rolecode": "EMPLOYEE",
"actionid": 2033,
"actioncode": "",
"tenantId": "pb"
} |