Options

Event bug?

JuhlJuhl Member Posts: 724
Hi all

I have stumbled on a potential bug, or at least a annoying thing regarding Event Subscription.
If I create a OnAfterValidate subscription of a field in a table, and put my code in it. All is good, and code is executed.
If I then change the name of the field I am subscribing to, then the field name in the subscriber function is NOT updated, like normal table field names, used for example in the code of the function. This is updated as normal.

Fair enough, BUT the biggest problem is, that my codeunit compiles without error, even though the field name in the function properties doesn't exist.

Bug or just Bad ? Discovered it before going to production this time, but by accident!

NAV 2017 CU10
Follow me on my blog juhl.blog

Best Answers

Answers

  • Options
    JuhlJuhl Member Posts: 724
    I see your point Slawek.

    But still I miss some kind of validation process or a way to check for subscribers with no publisher. Just like when we compile all object to see if all adds up.
    One could write a check procedure, if I had the time :-)

    Thanks får your input.
    Follow me on my blog juhl.blog
  • Options
    JuhlJuhl Member Posts: 724
    Or do this raise and error in the Event Subscriptions page ???
    I will have to check tomorrow!
    Follow me on my blog juhl.blog
  • Options
    JuhlJuhl Member Posts: 724
    Thanks guys.
    Errors are as expected in Event Subsriptions page
    Follow me on my blog juhl.blog
Sign In or Register to comment.