stuck

tguptatgupta Member Posts: 86
Hi All,
I am stuck on a problem and any help on it will be highly appreciated
The problem is as follows
I have added a field for eg 'production Order printed ' which is of integer datatype. Now i want whenever a firmplanned production order is printed
it shud increase the counter by 1 . Now i understand that its a simple IF condition but i am stuck where to write this code as it shud take care of the fact that when we do the preview it shud not increase the counter .
Only when its get printed it shud increase the counter .
Any help will be highly appreciated

Thanks a lot
Tarun

Comments

  • kinekine Member Posts: 12,562
    For example you can be inspired by Report 206. If you need increase this field for each order you print, you must include the code into apropriate trigger - for example OnAfterGetRecord of the Order header
      IF NOT CurrReport.PREVIEW THEN BEGIN
         code for increment the counter
      END;
    
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • tguptatgupta Member Posts: 86
    Hi Kine,
    Thanx for the answer but i figured it out yesterday only but thanx a lot ur 100 percent right on it .I did it excatly the same way .

    Many Thanks

    Tarun
Sign In or Register to comment.