cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5: TwoWayBinding supported for (Tree)Table?

kai_goronzy
Explorer
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

vijay_kumar49
Active Contributor

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 ..

kai_goronzy
Explorer
0 Kudos

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

kai_goronzy
Explorer
0 Kudos

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

Sharathmg
Active Contributor
0 Kudos

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