on 07-27-2020 9:22 AM
hello experts
in my project i am binding my smart table to a json model
i need to reset the changes of the user .
is it possible to reset the changes of the json model ?
i tried to save the initial values and reuse them but its not working , they are also changing
how can i proceed
thank youu
you have to save a copy of your json data. just assigning to a variable won't give you a copy of json data.
var datacopy=JSON.parse(JSON.stringify(yourinitialjsondata))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi abdallah mayssam,
If you have an initial JSONModel you can reload the original set of Data.
This will reset the all changes.
regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.