I'd have to try to make sure, I would typically write a codeunit to do anything in NAS. The only benefit of using a report over a codeunit is that you don't have to program the looping mechanism, and that's not really difficult.
I think it works, but the NAS starts codeunit 1 that starts the report. Once the report is finished, it returns to codeunit 1 that exits. And the NAS remains active, but no Navision code can be run anymore.
So you would have to make an endless loop (with a sleep in it to avoid that it takes up all the processor) in the report (or also in codeunit 1). In this loop, you should read a NAS-setup-record (new table to make) in which you put a boolean to tell the NAS to continue or to stop. If you keep the endless loop, you are not able to stop the service.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
RIS Plus, LLC
My Problem is client do not have Codeunit on their license.
I am not using any dataitem on report. I am just calling the function on that report.
rgds
RIS Plus, LLC
So you would have to make an endless loop (with a sleep in it to avoid that it takes up all the processor) in the report (or also in codeunit 1). In this loop, you should read a NAS-setup-record (new table to make) in which you put a boolean to tell the NAS to continue or to stop. If you keep the endless loop, you are not able to stop the service.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!