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
Bookmarks