Results 1 to 8 of 8

Thread: Removing Add and Delete buttons from the actionbar

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    369

    Removing Add and Delete buttons from the actionbar

    Hi guys

    Some records shouldn't be edited. Some child records shouldn't be added/deleted

    There is already the option to turn on/off the actionbar.

    How about the option to remove just the add & delete buttons?

    That would be great.

    Thanks

    SpringBox
    Last edited by SpringBox; 2021-08-09 at 15:02.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Simon,

    In Lianja 6.3 I have added the following to the page object.

    Lianja.get("Sales").hideActionBarButtons("add")
    Lianja.get("Sales").showActionBarButtons("add")

    The button name is a comma separated list of any of the following:

    "add,delete,refresh,first,previous,next,last,e dit"

    e.g.

    Lianja.get("Sales").hideActionBarButtons("add,dele te,edit")

    Name:  Screen Shot 2021-08-11 at 12.34.50 PM.jpg
Views: 348
Size:  79.3 KB
    Last edited by barrymavin; 2021-08-11 at 06:40.
    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
    Mar 2014
    Posts
    124
    Hi Barry
    With regards to some of my commentary would items like the above be editable properties in the property list for the object?
    Better still a drop list to check each item required On/Off.

    My thoughts, regards Paul.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Paul,

    This is more of progammable (low-code) functionality to hide non-required actionBar buttons dependent on the active data content.

    I may look at hiding them in page attributes later if there is a need.
    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
    Jan 2014
    Posts
    369
    Brilliant !! - thank you

  6. #6
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Hi guys

    Finally got to try out this important new feature but cannot make it work in 7.1

    On a page called pcust, we tried :

    Lianja.get("pcust").hideActionBarButtons("Add")

    from console in Lianja and JS and in code, just in case it only works in runtime but no luck. Tried every version of capitalisation we could think of too.

    Are there any other steps required?

    Cheers

    SpringBox

  7. #7
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    See
    https://www.lianja.com/community/sho...tionBarButtons

    Lianja.get("page1").hideActionBarButtons() is a noop in desktop Apps but works in Web/Mobile.
    Last edited by barrymavin; 2022-03-10 at 18:54.
    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

  8. #8
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

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