Skip to Content

Need help with proper data binding in specific case

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

var oModel0 = this.getJsonModel();
oModel0.setData (
{
"ColumnCollection":[
{"text" : "TripId", "path" : "id"},
{"text" : "Datum", "path" : "date"}
],
"SortItems":[
{"columnKeyModel" : "id", "operationModel" : "Descending"}
],
"FilterItems":[
{"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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 31, 2017 at 04:13 PM

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

    Add comment
    10|10000 characters needed characters exceeded