Morning,
I'm using Navision Attain 3.60, and I need to run a dataport from NAS.
In the function with ID=99 of Codeunit 1, I have this code:
DATAPORT.RUN(6718,TRUE,rec);
where, 6717 is the ID of my dataport, and rec is a record variable.
When I run NAS, I got this message: "The user-defined C/AL function that takes 5 parameters, was called with 1 parameters."
I don't understand.... :roll:
The format of the run function is still DATAPORT.RUN(Number [, ReqWindow] [, Record])...?
0
Comments
Another think, try to run this dataport from application. I'm sure, that you will get the same error.
Could some body tell me why we can't run a dataport from NAS?
Indeed, I think that NAS is like a function (ID=99) in codunit 1, whish is running all the time.... :roll:
Thank's
Or just try to compile all objects and you will find
From Object Designer select all objects and click F11.
It's more clear now.
For Fb, I only listen people who justify their comments
When you look at the Changes document from MBS-Navision 3.60, you can read:
So Reports ARE supported in NAS, Dataports and Forms NOT.
Kind regards,
Herman
Herman Veerkamp
software engineer
Would be nice to know this before I go about changing all the existing functionality to work with FILE instead of using a dataport. Has anyone got experience with this? Tnx, Max
But you can use a XMLPort. Do you need DataImport or export?
tnx for your reply. I tested my suggestion this afternoon and the warnings in the event viewer told me that Dataports aren't going to work when called from a NAS, even if called indirectly ;-) What I need is a data import. A 3rd party solution provides me with CSV files which contain lines that have to be turned into Contacts/Customers and ToDo's in NAV. This is functionality we already build for our customer some years ago. Now a Report running in the Job Scheduler which calls a Dataport does the trick. Everything works fine, but the customer wants a more stable solution so that when the server has been shut down, they don't have to manually start the Job Scheduler again. Actually, security settings prevent them from doing it themselves. They always have to call us to do it for them :-) So I guess I have to develop something that uses FILE.SEEK to read the files and replace the functionality that is now provided by the Dataport. Concerning the XML port you suggested: do these work together with NAS? And if so, why do they work and Dataports don't?
So I guess I have the same question as herman.veerkamp did some time ago. By the way: how are you Herman? Long time no see. Regards, Max