Events on TableTrigger and Suspend Messages

NAVFuchsNAVFuchs Posts: 51Member

when you use events on table trigger e.g. OnBeforeModifyItem and the function in the codeunit uses messages on some circumstances.

Is it possible to Suspend these messages like former developing by using a function SuspendMessage or by using a parameter?

(Dynamics NAV 2017 is used)


  • Slawek_GuzekSlawek_Guzek Posts: 1,683Member
    edited 2019-01-07
    Try calling ERROR('') in a TRY function

    Otherwise there is no way to 'cancel' messages.
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • BlackTigerBlackTiger Posts: 1,218Member
    (not tested)

    Use "SetHideValidationDialog()" logic and implement "GetHideValidationDialog()" to get it's state in events. It should work. In theory.
    "You can’t just ask customers what they want and then try to give that to them.
    By the time you get it built, they’ll want something new.” Steve Jobs
  • NAVFuchsNAVFuchs Posts: 51Member
    This works for me! Thanks
Sign In or Register to comment.