Expand my Community achievements bar.

Extract the uri filename of an attached file

Avatar

Former Community Member
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
2 Replies

Avatar

Level 7
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

Former Community Member
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