is it possible to call another App (openApp? spawnApp?) from one Lianja App and then return to the original App by continued its running? Is parameterized call possible? In this case, in which delegate can the parameters be received?
is it possible to call another App (openApp? spawnApp?) from one Lianja App and then return to the original App by continued its running? Is parameterized call possible? In this case, in which delegate can the parameters be received?
Hi Strato,
Yes, see the Lianja system object methods here: https://www.lianja.com/doc/index.php/Lianja#Methods
Regards,
Yvonne
See sessionstorage also.
https://www.lianja.com/doc/index.php...rage_in_Lianja
An interesting use of sessionStorage is the ability to switch between Apps and maintain state or pass data between them.
So, when building a large application which is built out of smaller Apps and each App is built out of pages, you can load Apps using Lianja.openApp("someappname") and in the "Ready" delegate read some data from sessionStorage that was set using Lianja.sessionStorage.setItem("mediate", "some JSON encoded object") in the parent App that loaded "someappname".
This technique also works in the Web/Mobile client which also has Lianja.sessionStorage in the framework.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Hi Barry,
That is awesome Barry and will be very useful.
David
Hi all and happy new year,
SpawnApp work only with a deployed app right?
When I'm on dev mode, with App Builder, can I swith between App not deployed?
Thanks
Fabio
Hi Fabio,
Happy new year.
Lianja.openApp(“appname”)
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
thanks Barry
Whats the difference
between spawn and open?
Lianja.openApp("app name") opens the specified app replacing the existing one. (desktop, web and mobile).
In desktop apps only, Lianja.spawnApp("app name") runs the specified app in the background in runtime mode. In other words in runtime mode you can have multiple windows open each with an app. You can use shared memory between each of the apps and change state in each of them as required by your application logic. This is NOT for development mode use.
See
https://www.lianja.com/doc/index.php/Lianja
https://www.lianja.com/doc/index.php/LocalStorage
https://www.lianja.com/doc/index.php/SessionStorage
Last edited by barrymavin; 2021-01-03 at 20:45.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks