Results 1 to 7 of 7

Thread: Hidden Section

  1. #1
    Senior Member
    Join Date
    Jan 2016
    Posts
    160

    Hidden Section

    Can Hidden sections cause the top of your page to run off the screen in runtime. I have two pages that this seems to be occurring on.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    What do you mean by hidden sections? How are you hiding the section?
    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

  3. #3
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    I am using showdocument such as: showdocument("section:form_edit_menu?action=hide") . I haveabout 6 sections that I show and hide.

    This is what I am getting below at runtime.
    Name:  Capture.jpg
Views: 89
Size:  69.0 KB

    This is what it should look like.
    Name:  Capture 2.jpg
Views: 133
Size:  65.1 KB

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    Hiding and showing sections like that is going to be problematic. All you need to be doing is expanding and collapsing them rather than actually hiding them which excludes them from the page layout.
    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

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    You can try with

    lianja.get("YourSection").collapse()

    lianja.get("YourSection").expand()

  6. #6
    Senior Member
    Join Date
    Jan 2016
    Posts
    160
    At what time should I use showdocument vs lianja.get when working with pages and sections? Is there a general rule of thumb?

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

    Q:
    Is there an advantage to using Lianja.showDocument() method other than the ability to chain commands in a single call (which is very nice)? IOW, can all the same actions/settings be accessed using Lianja.get()? I ask because I seem to remember at one point that some things could only be done using showDocument.
    A:
    There are certainly some that are showdocument only - the hide/show of the navigation panel and sidebars and the UI States spring to mind.
    Others are standard section or pagemethods and will be calling the same code behind the scenes.
    With showdocument() and Lianja.showDocument() one can:

    • Switch to another App
    • Switch to another Page
    • Navigate records: First, Previous, Next, Last, move relative, goto record number
    • Initiate data operations: Add, Edit, Delete
    • Search and filter data
    • Refresh 'Visible when' and 'Readonly when' Rules at Section or Page level
    • Change or reset UI States
    • Navigate to the previous or next Page
    • Hide or show the left and right Sidebars
    • Hide or show the Navigation Panel
    • Expand and collapse Sections
    • Select a particular Section in an accordion Page
    • Select a particular Tab in a TabView Section
    • Dynamically change Virtual Table queries


    https://www.lianja.com/community/sho...ll=1#post16784
    Last edited by josipradnik; 2018-01-11 at 00:25.

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