Does SHELL Command works in NAS, because i have made one Codeunit and it gives me warning when i compile this codeunit. I want this codeunit to be executed with job queue.
but in CSIDE help it says:
The SHELL function can only be used with a text constant on Microsoft Dynamics NAV Application Server.
The SHELL function is not supported in the RoleTailored client.
I need HELP in solving this problem.
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Because i get the same warning like wen i was working with dataports.
http://www.mibuso.com/forum/viewtopic.php?f=23&t=44657
I have created a batch file to exctract files from one shared folder to location to temp folder, and than import this text files in NAV. And i want to execute this text file from Navision, and i have used Shell Command.
If you have better idea, even not using shell pleas tell me.
Thanks pduck,
Then this batch has inside code to extract data and put to another folder.
That is not a text constant... a Text Constant is what you define in View - C/AL Globals (or locals) - Text Constants tab
TEXT001 = C:\Extract.bat <- define this as a constant
Your Code:
SHELL(TEXT001);
Any idea? :roll:
And also, when i want something to change in codeunit, to add som additional part of code to be executed, it dosn't exectute that part of codeunit. Is stored as a file somewhere out this Job Queue.
For Example i have comentet some lines and save codeunit, and it stills executes those lines, so i need to create another job queue with last changes of codeunit to be executet without those lines.
Thanks Luc,
It means, that you need to restart the NAS executing the job queue... source of your problem is object cache...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks kine
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
:idea: