Skip to Content

Need help with proper data binding in specific case

May 31, 2017 at 02:04 PM


avatar image

I have the following model initialized in the controller of a view:

var oModel0 = this.getJsonModel();
oModel0.setData (
{"text" : "TripId", "path" : "id"},
{"text" : "Datum", "path" : "date"}
{"columnKeyModel" : "id", "operationModel" : "Descending"}
{"columnKeyModel" : "id", "operationModel" : "Contains", "value1Model" : "a"}
this.getView().setModel(oModel0, "FilterData");

Now i want to use this model in this view:

But it doesnt work! And i simply cannot find an equivalent example of this kind of data binding structure to learn from it. I really need help to solve this.

My guess is, that the problem line is:

<P13nSortItem columnKey="{columnKeyModel}" operation="{operationModel}" />

There the data binding is wrong, but how should it be so it works?

img6-copy.jpg (109.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mahesh kumar palavalli May 31, 2017 at 04:13 PM

in the aggregation binding, the items binding should also have the model name like {FilterData>path}

Show 1 Share
10 |10000 characters needed characters left characters exceeded

thank you, that helped!