Results 1 to 6 of 6

Thread: Basic Grid Button Delegate

  1. #1
    Member
    Join Date
    Apr 2019
    Location
    UK
    Posts
    44

    Basic Grid Button Delegate

    Hi
    Is there a way to call a different procedure if I have two button columns in the Grid
    Many Thanks
    Charlie

    Name:  Lianja023.png
Views: 150
Size:  57.9 KB
    Last edited by CharlieDenver; 2021-05-24 at 12:18.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,295
    You can bind a controlsource specific to each button and that will be passed as the first argument to the delegate.
    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
    Member
    Join Date
    Apr 2019
    Location
    UK
    Posts
    44
    Hi
    Does the controlsource need to be a field in the data? I hadn't planned on binding the column to any data
    Can I bind it to a variable and reference that as the controlsource?
    Had a good look for examples but no luck yet
    Charlie

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,295
    You can just try it, only takes a minute to find out.

    You can bind to any expression.
    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
    Member
    Join Date
    Apr 2019
    Location
    UK
    Posts
    44
    Yes, that's all good thanks
    PS - Is there an aternative to MESSAGEBOX() with TIMEOUT
    Many Thanks
    Charlie

  6. #6
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,295
    See
    https://www.lianja.com/doc/index.php...ions_in_Lianja

    and
    https://www.lianja.com/doc/index.php/Lianja

    Lianja.showSuccessMessage()
    Lianja.showErrorMessage()

    etc
    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

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