'F2 Enter' Trigger

Sapphire123Sapphire123 Member Posts: 112
Hi All,

I'm trying to find code written behind a trigger - but, i have no idea where it is... Whenever I refresh, or press 'F2 + Enter' on a form, the changes seem to take place - but, how do I know under which trigger the code is written? I've looked in all the triggers of the form, but i cant find it there.. :?

Thanks in advance..

Answers

  • fverkelfverkel Member Posts: 66
    Navision runs the OnValidate trigger of the tablefield and the OnValidate trigger of the control in the form. And eventually the OnModify/OnInsert trigger of the table and the OnModifyRecord/OnInsertRecord trigger of the form.

    --> Check OnValidate of the field in the table.

    If you would use the debugger, you would also find the trigger.
    Keep It Simple and Stupid (KISS), but never oversimplify.
  • tinoruijstinoruijs Member Posts: 1,226
    You could also use Code Coverage to see which objects and code are being used.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Sapphire123Sapphire123 Member Posts: 112
    Found it :) It was the OnValidate Trigger of the table field..

    Thank you!
  • ReinhardReinhard Member Posts: 249
    tinoruijs, fverkel that's some good solid advice that will be useful for a novice like me. thanks!
  • David_SingletonDavid_Singleton Member Posts: 5,479
    Found it :) It was the OnValidate Trigger of the table field..

    Thank you!

    Actually that really is the ONLY place to have trigger code that modifies table data, so looks like the developer before you did the job properly. :D
    David Singleton
Sign In or Register to comment.