on 08-18-2015 6:44 AM
Hello Experts,
In the FlatternedDataSet, passing the filter values with the data, The most of filter operators are working leaving some like Less than, If i use the operator less than and 75, still it is showing values like 100.
Has someone faced this issue?
Best regards,
Rohit
Hi Rohit,
Less than operator is working fine for me. Please check the working sample here - JS Bin - Test Chart Filter
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
Once i use my data and do this, there is a error.
this.dataset.getBinding("d/results").filter(ofilter, "Application");
Uncaught TypeError: Cannot read property 'filter' of undefined
at eval (eval at evaluate (unknown source), <anonymous>:1:37)
at Object.InjectedScript._evaluateOn (<anonymous>:905:55)
at Object.InjectedScript._evaluateAndWrap (<anonymous>:838:34)
at Object.InjectedScript.evaluateOnCallFrame (<anonymous>:964:21)
Even this.dataset.getBinding("d/results") is coming as undefined.
Best regards,
Rohit
Hi Sai,
My data is like
Hi Rohit,
Flattened Dataset -
var dataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions : [
{ axis : 1, name : 'SourceLocation', value : "{SourceLocation}" },
{ axis : 2, name : 'DestinationLocation', value : "{DestinationLocation}" }
],
measures : [
{ name : 'PerAcceptance', value : '{PerAcceptance}' }
]
}).bindData("/d/results", null, null, []);
Filter -
var ofilter = new sap.ui.model.Filter("PerAcceptance", sap.ui.model.FilterOperator.LT, 75);
On click of button press logic -
var oButton = new sap.m.Button({text:"Less than 100", press:function(oEvent){
dataset.getBinding("data").filter(ofilter, "Application");
}});
Have you done like the above Rohit?
Regards,
Sai Vellanki.
Rohit,
dataset.getBinding("data") - Here 'data' is an aggregation of dataset, it is not your model name. So, as I already mentioned use this.dataset.getBinding("data").filter(ofilter, "Application");
For more information, check the code that I provided in my previous reply.
Regards,
Sai Vellanki.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.