PDA

View Full Version : Multiple concurrent App windows now supported



barrymavin
2012-10-20, 22:12
Lianja Beta10 extends the Lianja system object with three new methods;


Lianja.spawnApp("appname", "username", "password")
Lianja.run("command" [,"commaseparatedarglist"])
Lianja.spawn("command" [,"commaseparatedarglist"])

All of these methods return true on success and false on failure. The new processes are children of the parent process and will be terminated when the parent process completes. "username" and "password" should be specified so that roles and permissions work correctly within your Apps.

These should only be used at runtime when apps are run from the Lianja App Center. If you run these in development mode then you will get errors as the tables need to be opened exclusively. In runtime mode tables are opened shared.

Also worth pointing out is that spawnApp() will run the specified App in runtime mode. The splashscreen will also not be displayed.

HankFay
2012-10-20, 22:33
Lianja Beta10 extends the Lianja system object with three new methods;


Lianja.spawnApp("appname", "username", "password")
Lianja.run("command" [,"commaseparatedarglist"])
Lianja.spawn("command" [,"commaseparatedarglist"])

All of these methods return true on success and false on failure. The new processes are children of the parent process and will be terminated when the parent process completes. "username" and "password" should be specified so that roles and permissions work correctly within your Apps.

These should only be used at runtime when apps are run from the Lianja App Center. If you run these in development mode then you will get errors as the tables need to be opened exclusively. In runtime mode tables are opened shared.

Also worth pointing out is that spawnApp() will run the specified App in runtime mode. The splashscreen will also not be displayed.

Fantastic: so we can create a one-page app consisting of dynamic tiles representing the segments of the app, perhaps dynamically updated ("10 PO's To Approve"), the user can run all the app windows they want, and when they want to close everything, they close the starting billboard. This takes care of, in a modern way, enabling power users. Thanks!

Hank