Quickly create and load a full context from JSON file at startup #7229
Unanswered
nicolasvila
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wanted to set up an initialization context at startup of the app with my preferences.
The easiest way I found is the share button to get the current start context as "share date JSON". It is a really convenient feature
What I needed to do is to load the JSON from the web storage (in configuration files) at startup, without passing the full JSON in the URL like /#start={....}
It is possible to store in a separate JSON file ("init/start.json" for example) the content of one array element and load it directly from the config.json file:
Be careful as the JSON file from the share button is URL encoded AND the "spaces" are replaced by "+" signs.
If you want the JSON file to be loaded from the config.json, do not forget to replace the "+" !!!
Related discussion: 6398
Documentation: start-data-sharedata
Beta Was this translation helpful? Give feedback.
All reactions