Options

Block users from deleting system notes that wrote other user

proquihubproquihub Member Posts: 4
edited 2023-11-30 in NAV Three Tier
Hello,

I used OnBeforeDeleteEvent for this, but the problem is that it also triggers when users are converting a Sales Quote to Sales Order. It also happens when deleting Records containing notes.
Is there a way where I can block the user only when it's pressing the delete button of a systempart Note?

Thank you :)

Best Answer

  • Options
    proquihubproquihub Member Posts: 4
    Answer ✓
    Okay so, aparently, event's RunTrigger is true when it's executing from the notes, and false when it's executed from external context. So I just have to check if it's true.
    I haven't found another case where it's true (yet)

Answers

  • Options
    proquihubproquihub Member Posts: 4
    Answer ✓
    Okay so, aparently, event's RunTrigger is true when it's executing from the notes, and false when it's executed from external context. So I just have to check if it's true.
    I haven't found another case where it's true (yet)
  • Options
    krikikriki Member, Moderator Posts: 9,089
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.