Hi, i'm new to navision and I have to make button who can open file from file path
C/AL code for the path is
OnAssistEdit()
CLEAR ( cmndlg ) ;
"File Path":=cmndlg.OpenFile('Open File','',1,'',0);
where cmndlg is codeunit 412
I've made the button from toolbox but after that i'm stuck
Please help
0
Comments
do you will read the data from the file and store the data into a table or what?
Regards
i choose some text file in file path
then i have to push the button and the default text reader must open the text file (notepad in my case)
here an examples:
http://www.mibuso.com/forum/viewtopic.p ... =open+file
regards
where i have to type it ?
in the button c/al code?
i'm really new to navision
But i would use WSH (Windows Scripting Host)
Regards
Tip: Read the C/AL manuals on CD / DVD
Try this:
OnAssistEdit()
CLEAR ( cmndlg ) ;
shell('C:\WINDOWS\notepad.exe' ,cmndlg.OpenFile('Open File','',1,'',0));
Thanks
I have four types of informations regarding the imported file.
Field Name Datatype
File Name Text
File Size decimal
File Data Blob
Content Type Text
Now I want to open the imported file without exporting it to HDD by clicking 'Open File'
command button.
How to export that I know. but I want to open it directly.
Please help me.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com