Execute code when I click OK & New in a page

poppinspoppins Member Posts: 647
edited 2015-01-05 in NAV Three Tier
Hi everyone,
I want to execute some code when I click at the button OK & New in the item card when creating new items (NAV 2013 R2).
Where shall I put my code?
Thanks in advance :mrgreen:

Comments

  • denpardenpar Member Posts: 80
    I don't know what code you want to add....

    Page 30 Item Card -> OnNewRecord

    or

    Table 27 Item -> OnInsert
    If your work becomes a passion...
    www.pardaan.com
  • MMVMMV Member Posts: 99
    Hi,

    While clicking the New button, OnNewRecord Trigger on the Page is executed, so you may write the code in OnNewRecord trigger.

    While clicking the OK, eventually the OnQueryClosePage trigger on the Page is executed, so you write the code in OnQueryClosePage trigger.

    Best Regards,
    MMV
Sign In or Register to comment.