Hi Barry,
In my recent ticket you said:
Localstorage persists across apps HOWEVER to share objects you must json_encode() and json_decode() them as they go out of scope and are released when you close an app and open another.
That is true about sessionStorage() also.
You can store objects as i suggested but only for the app. after that you need to reinitialize.."
If I have Lianja.localstorage.aim.opref and need to call a prg from my app, say for some data validation code to say set user interface settings, rather than actual data validation before a save, is the Lianja.localstorage.aim.opref in scope in the prg?
For a desktop app if I used _screen.aim.oPref is that in scope everywhere, if I create it in my setup.prg ?
When you say "you must json_encode() and json_decode()" is that when creating them or do you mean to pass them to the other app I need to do that?
David
David
Bookmarks