Results 1 to 4 of 4

Thread: OnBeforeDelete: deletes anyway in grid?

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184

    OnBeforeDelete: deletes anyway in grid?

    Update: it makes it go away in the grid, but not in the table: refresh the app, and it's back. That's the good news: but for the user...

    And I'm guessing the dialog must have come from the onbeforedelete trigger also, but wasn't showing in the DD (probably because it was created before the UI of the DD had the triggers there).

    **********

    In LianjaDemo, I created (in the Data Workspace) and OnBeforeDelete delegate on the Orders table, simply changing the .T. to .F.

    I then click the - icon on the Orders grid, click Yes to whether I want to delete the currently selected record, and it goes ahead and does it.

    I've gotten the same result in a grid gadget on my own app, which is why I checked in LianjaDemo.

    Should the table trigger prevent the delete in the grid?

    thanks,

    Hank

    PS: how did you get the dialog to come up? I can't find a delegate anywhere.
    Last edited by HankFay; 2013-07-22 at 21:43. Reason: Updated results

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

    Please submit a ticket for this.

    What dialog are you referring to?
    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
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    The ticket is on my list.

    It's the one that says "Are you certain you want to delete the currently selected record?" with yes/no buttons. Maybe I haven't noticed it before because I haven't deleted from grids, only from the grid gadget.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,161
    Blog Entries
    22
    Thats an app attribute. "Confirm delete...".
    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