In my XML view I have used Smartcharts with CDs views entityset and it was working as per the requirement.

Output

As per the new requirement, need to enable the parameters for the CDs views to reduce the amount of load.
I have tried Smartchart beforeRebindChart event for applying parameters.
<smartChartBeforeRebind: function (oEvent) {
var oBindingParams = oEvent.getParameter("bindingParams");
oBindingParams.parameters = { "entitySet": "Z****_SERV1" };
var aFilters = [];
aFilters.push(new sap.ui.model.Filter("***den", sap.ui.model.FilterOperator.EQ, "ALL"));
oBindingParams.filters = aFilters;
oBindingParams.events.dataRequested = (oEvent) => {
console.log("oBindingParams.events.dataRequested: ", oEvent);
}
oBindingParams.events.dataRecevied = (oEvent) => {
console.log("oBindingParams.events.dataRecevied: ", oEvent);
}
},
After applying the parameters to the entityset the Smartcharts are not loading. An empty tile is loaded without chart. Is there any way I can apply filters to the Smartchart?
I am using oData V2 version and project is created using SAP BAS.
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.