I got a bundle with some data I need:
"mpConfig": {
"appId": "test",
"isMock": "test",
"mockServerPath": "test",
"isDebug": "test",
"isUnitTest": "test"
}
Now I need to put this in a JSON Model in order to be able to use this data. To retrieve the data I have my Controller class and the usage must be in a View class. How can I handle this problem?
I have read that something like this puts them in a JSON Model.
this.getView().setData(path().getConfig().mpConfig;
How can I use the data I got from the JavaScript class with the config mentioned above? Thanks for all help.
this.getView().setModel(path().getConfig().mpConfig);Make surepath().getConfig().mpConfigreturns validobject- Rayon