Results 1 to 5 of 5

Thread: Removing Add and Delete buttons from the actionbar

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

    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 16:02.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,458
    Blog Entries
    12
    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: 115
Size:  79.3 KB
    Last edited by barrymavin; 2021-08-11 at 07: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
    116
    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
    6,458
    Blog Entries
    12
    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
    284
    Brilliant !! - thank you

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