Hey Guys,
I have another question concerning a browse button.
this code works in the click event of my browse button, but even I type a file name, it always shows either desktop or another random folder which I dont want.
How can I specify correctly a folder or file name?
And if I open a file it doesnt work on double click, I have either to select or to open it on the right mouse click. is it possible to open it on double click?
var sFile;
event.target.importDataObject(sFile);
var oFile;
oFile = event.target.getDataObject(sFile);
this.rawValue = oFile.path;
var f = this.getField("SubmitFiles");
f.browseForFileToSubmit();
Thank you for your help in advance!!!
Diana
this method can only be executed through a priviledge context.
The JS API manuals says.
If the cDIPath parameter is specified, this method can only be executed during a batch or console event, or through an external call (for example, OLE).
Take a look into the JS API manual for more information about.
[url]www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf[/url]
And check out this tutorials.
[url]http://acrobatusers.com/tutorials/2008/10/using_trusted_functions[/url]
[url]http://acrobatusers.com/tutorials/2006/folder_level_scripts[/url]
[url]http://acrobatusers.com/tutorials/file-paths-acrobat-javascript[/url]
[url]http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript[/url]
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs