Results 1 to 6 of 6

Thread: Page lifecycle

  1. #1

    Page lifecycle

    Is there a document that describes the Page lifecycle? Specifically, I'm looking to understand whether all Pages are created when the app is started and destroyed upon app completion (close) or whether it's possible to create a Page and have it destroyed at the end of it's use. In our VFP apps, we often create modal forms and destroy them after collecting the necessary input or displaying the desired output.

    Thank,
    Scott

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    Hi Scott,

    Lianja Mobile Apps are Single Page Applications (SPA). A single DOM is sent that contains no data, only the pages. That is the nature of SPA apps, and is the nature of Cordova/PhoneGap apps. Google Docs, etc. work the same way.

    What is your concern? Remember that in the modern app age (of SPA apps), there is no monolithic huge app that hogs a ton of memory.

    Here's a link to build Lianja Web and Mobile apps: http://www.lianja.com/resources/blog...apps-in-lianja

    Hank

  3. #3
    Hi Scott,

    Just wanted to chime in.

    Lianja gives you the ability to define a form and release it when done;I do this in the customvfp sections.

    So within a single page, I can have many forms defined and show them when needed, then release them when done.

    Lianja gives you many options.

    Herb

  4. #4
    Hank,

    To be clear, while we may eventually develop web/mobile apps, we currently develop desktop applications, so that's my frame of reference. I fully admit to not yet completely understanding the "Lianja way" of developing applications.

    Suppose in the event delegate for the click event of a command button I would like to open a page to collect some parameters and when the data entry for that page is complete, perform some sort of processing on the database based on the input from the page. How would I go about doing this? Is it possible to use Showdocument() modally to open the new page, and have control returned to the delegate after the page is closed? (Desktop only - I understand this probably doesn't make sense in a web/mobile environment.)

    Thanks,
    Scott

  5. #5
    Hi Scott,

    There are multiple ways to handle this.

    Have a look at showdialog and showdialogpanel. You can use these command to either pop-up or slide in another page to handle multiple documents.

    You can also define a form as an object, and show it to handle inputs.

    I can post some examples of this a little later today.

    Herb

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,163
    Blog Entries
    22
    Scott,

    Look at Lianja.showDialog() and Lianja.showDialogPanel(). They provide the required functionality.
    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