cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect if JSON model changed?

12-12-2014 10:28 AM
Subscribe

Hi,

I basically need to know if the JSON model of my m.List changed.

How can i do this?

Alternately, if I get an event that tells me if the items were added or removed from my sap.List will also do.

I need to update some other controls based on the change in my JSON model.

Please help.

Thanks

Amjad

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

What you probably want to do is to subscribe to the change event of the binding. Try something like:

oList.getBinding("items").attachChange(myCallback);

- Max

Answers (1)

Answers (1)

SergioG_TX
SAP Champion
SAP Champion

you can have an object which has the original model and another object which contains the modified model and then compare them to see if they are still equal or not.