on 11-07-2014 3:21 PM
Dear all.
I'm a rookie and of course I stuck in the mud...
When I wanna manipulate the value coming from a binded Model, I'm doing it that way:
new sap.ui.commons.TextView({ textAlign : sap.ui.core.TextAlign.Center }).bindProperty("text", "MATNR", oController.toNumber)
In Controller-Method toNumber I can manipulate the value, eg:
toNumber: function(value) {
var number = Number(value);
var result = number.toString().replace(".",",");
if (result == '0') result ="";
return result; },
That's easy
Now I'm using a dataset for a graph:
var dataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions : [ { axis : 1, name : 'Dimension', value : "{DESCR}" },
{ axis : 2, name : 'Wert', value : oController.setStatus( "{STATUS}" )} ],
measures : [ { name : 'Capacity', value : '{PART2}' } ],
data : { path : "/RESULT/GRAPHICS" }});
but
value : oController.setStatus( "{STATUS}" )
is not working. The method always receives the string "{STATUS}" instead of the binded value.
Any idea?
Hi Carsten,
Use the below line
value:{path:'status',formatter:'oController.status'}
Thanks and Regards,Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.