cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Form name.

Former Member
0 Kudos

Hi all.

When i save the Form, in the "save" dialog box,i get a default file name which is too long. I know i can change it in the dialog box, but how can i change this default name?

thank you

Larisa.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Larissa,

You can use the below code to resolve the naming issue:

Download_File is node mapped to the download link for PDF.

//Get the Attribute Info of Attribute for PDF

IWDAttributeInfo attrinfo = wdContext.nodeDownload_File().getNodeInfo().getAttribute(IPrivateViewName.IDownload_FileElement.DATA);

ISimpleTypeModifiable simpletype = attrinfo.getModifiableSimpleType();

//Get modifiable Binary Type

IWDModifiableBinaryType binarytype = (IWDModifiableBinaryType)simpletype;

//Set the File Name

binarytype.setFileName("FileName");

//Set the Mime Type to PDF

binarytype.setMimeType(WDWebResourceType.PDF);

Hope this resolves the issue...

Regards,

Arafat

Former Member
0 Kudos

Hi Arafat,

Tell me please,

where do I implement this code?

Regards,

Larissa.

Former Member
0 Kudos

Hi Larissa,

You must place this code after you have filled the Context attribute with binary data.

Regards,

Arafat