Skip to Content

How to update the json model in sapui5?

May 23, 2017 at 10:22 PM


avatar image


I have an issue to edit the json model. I created a Worklist app using self created metadata. Then I edit the mockdata, which creates a json file. Now I am trying to edit the data in the application. I am able to change the data in the application, but it is not updating that data in the model. So when I refresh the application, it shows the old data again.

Do someone know, how to update the data in json file?

Thanks in advance :)

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

1 Answer

Jun Wu May 23, 2017 at 11:55 PM

no way....

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

Thanks for your reply. is it possible to add or delete data from json file?


See in JSON File We cant add.But We can add Json Data and this can be available to that particular Session.

If you reload the Application the data which you added or Data which you deleted has no effect.


Okay, I was able to edit it but as you said, when I was refreshing the page, it was not making any effect on json model.
So is there any way to test the functionality of edit while I don't have any back-end service yet?


Still now i did not worked how you are asking.But there is a concept of mock server.I hope this might help you to the testing.Please check that once