Results 1 to 2 of 2

Thread: [Answers] ShowDocument

Threaded View

  1. #1
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135

    [Answers] ShowDocument

    Code:
    // Event delegate for 'ready' event
    function page1_ready()
    {
            Lianja.showDocument("page:page1?action=add");
    }
    or

    Code:
    ////////////////////////////////////////////////////////////////
    // Event delegate for 'ready' event
    function page1_section1_ready()
    {
            Lianja.showDocument("page:page1?action=add");
    }
    Create new record whenever the section is loaded



    Sounds like you want to use the Stacked behavior Accordion I mentioned earlier or maybe you should have individual Pages. Remember you can change pages using Lianja.showdocument("page:ageid") and Lianja.showdocument("page:ageid?action=do_this").
    You can also
    set the Page Attribute to 'Hide page from menu' at runtime so users can't switch to it until you want them to.



    From Lianja v1.3, the "Full page edit" also applies to Add - clicking the Page's Add button or from an Add action:
    Code:
    Lianja.showDocument("page: page1?action=add")



    ​All topics in [Answers] alphabetically:http://www.lianja.com/community/show...ll=1#post12352
    Last edited by josipradnik; 2017-01-20 at 04:10.

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