Here is a tutorial on installing and using NAS
Then see the documentation on the Communication Component or invent some other way to trigger the NAS to call your codeunit, e.g. you can check for a flag file in the file system or use ADO to access a database and chek a table or invent whatever messaging system you please.
In Report 50000 add the following code to the OnPreReport trigger:
IF CODEUNIT.RUN(50000) THEN
COMMIT
ELSE
BEGIN
// log error here
END;
// implement some way to automatically close the client here (I don't know how. Try google)
I recommend the NAS over the URL thing. It's much more robust
Comments
Or set up a NAS and communicate to that NAS instance.
It will be really helpful if you can provide some ideas on this in detail.
Then see the documentation on the Communication Component or invent some other way to trigger the NAS to call your codeunit, e.g. you can check for a flag file in the file system or use ADO to access a database and chek a table or invent whatever messaging system you please.
_______________________
[url=navision://client/run?servername=localhost&company=]navision://client/run?servername=localhost&company=[/url]"CRONUS AG"&target=Report50000&requestform=0
In Report 50000 add the following code to the OnPreReport trigger:
I recommend the NAS over the URL thing. It's much more robust