hello navies
i have been trying to run the following code
dataport.RUN(5000);
report.RUN(5000);
but somehow the report(processingonly=yes and Requestform=no) comes up before the dataport..
if i do dataport.RUNMODAL(5000,false) it runs properly however it does not show the request form of the dataport to browse to the input file
thanks
Regards,
GD
0
Comments
My Blog - nav.education
when u run the code dataport.runmodal(5000,yes) you get an error lsomething ike "this error is for CAL programmers .......report.runmodal.....form.runmodal.....dataport.runmodal....use commit...."
when i excute the code
dataport.RUN(5000) ;
report.run(5000);
the report runs before the Dataport this is strange!
:shock:
GD
Otherwise the user could walk away from the machine with the request form showing and have locks on different tables.
After the user comes back from lunch they get lynched by all the other users for locking them out the system.
So Nav gives you that huge message and stops you from doing it instead!
t
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
works in the order ->DATAPORT->REPORT
But it doesnt bring the request form thats my problem because i want the user to be able to browse to the file he wants as input to the dataport.
the dataport imports the txt file data into a buffer temporary table and the report insert the data from the buffer to the Navision transaction table
thanks mate
GD
If the report is ALWAYS going to be run from the dataport, then why not put it in the OnAfterDataport trigger of the dataport ? Then at least you know it will be run afterward.
So you think it will force the report to run after the dataport.
But dont you think in the code
comes after the Onafterdataport trigger and should have worked in the first place
Anyways i was thinking of something similar to your solution i will try and let you know.thanks Anyways Mberger
GD