Skip to Content
0

SAPUI5: TwoWayBinding supported for (Tree)Table?

Jul 06, 2017 at 06:15 AM

39

avatar image
Former Member

We have a TreeTable (in which the user can enter data) and an oData-Model (V2). TwoWayBinding is activated for the model.

Our problem: Once the user enters data in the TreeTable, this input is not taken over to the model automatically. The input gets lost immediately.

Does anybody know, if TwoWayBinding is supported for (Tree)Table or not?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jul 06, 2017 at 06:56 AM
1

Hello Kai,

It seems some properties is not supported to ODataModel v2 in sap.ui.TreeTable.

Can u try to push the data into JSON model then sent it ODATA Model.Insted of direct ..

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

Hello Vijay

thanks for your answer.

Yes, we could try that binding via JSON and probably it would work. But from our point of view, TwoWayBinding should work in our case. Of course only, if supported by the framework. So this is what we want to know, now. Dependent on the answer to our question, we have to search further for a bug OR we have to find another way (for example via JSON).

Best regards

Kai

0
avatar image
Former Member Jul 19, 2017 at 10:06 AM
0

Hello

the Problem is solved. To be honest we still don`t know the reason for that problem. Suddenly, after we had generated the oData-service newly, the problem disappeared and the two-way-binding worked.

Best regards

Kai

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

Possible cause could be the binding to the view control. If there is mismatch in metadata, it could not recognized the mapped/bound attribute.

0