Results 1 to 9 of 9

Thread: App2App

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    239

    App2App

    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?

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,841
    Hi Strato,

    Yes, see the Lianja system object methods here: https://www.lianja.com/doc/index.php/Lianja#Methods

    Regards,

    Yvonne

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    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

  4. #4
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    657
    Hi Barry,

    That is awesome Barry and will be very useful.

    David

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    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

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    thanks Barry

  8. #8
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Whats the difference
    between spawn and open?

  9. #9
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,162
    Blog Entries
    22
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us