on 04-11-2018 12:05 PM
Hii Experts ,
I currently working in Dashboard Charts . My Question is , How i control or change my Dimension & Measures in chart depends on selecting X & Y axis in combo box.
For Example When i select any field in x-axis , the portion of x-axis must be change to what field could i select , this is similar to Y-Axis . I want to change my bar chart x & y axis by using combo box. Please Suggest me Any code Sample or Idea .
Thanks in Advance ,
Hi,
what you are trying to do is Filter the values of your graph based on the Value selected in the Drop down?
If so,
1. first get the model associated with the VizFrame and then do a Filter on the data....
something like this...
//Create a Filter
var aFilters = [];
var oFilter = new sap.ui.model.Filter(“<Column for filter>”,“<Operator>”, “<Filter Value>“);
aFilters.push(oFilter);
var oVizFrame = sap.ui.getCore().byId(vizFrameId);
var oBindingData = oVizFrame.getDataset().getBinding("data");
oBindingData.applyFilter();
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.