Extract the uri filename of an attached file

Avatar

16-05-2007

Hi,



I am attaching a file by the click of a button. It is required to retrieve the filename of the attachment as a Text/ label.



can anybody help me out on these lines.



Prash

Replies

Avatar

Avatar

gkaiseril

Avatar

gkaiseril

gkaiseril

16-05-2007

As documented in Converting Acrobat® JavaScript for Use in LiveCycle Designer Forms:



"All Acrobat Annot properties and methods can be used in LiveCycle Designer forms.



"Note: Only Static forms support the annotation layer; Dynamic forms do not."



You will need to know the number of the annotation on the page and then you can use the "contents" property to obtain the name of the file.

Avatar

16-05-2007

Kaiser,



Thanks for your reply. I have found the answer and resolved it successfully.



It is done this way,



1. Write the following script statement in the click event of the button.( Note : in Java Script )



2. app.execMenuItem(SaveAs):



This works fine.



Thanks for your reply.



Prashanth