cancel
Showing results for 
Search instead for 
Did you mean: 

filedownload file name

Former Member
0 Kudos

When I download the file using filedownload ui element, the name of the file is not correct. it is different everytime like CA4WLWV.xls , CACX6BGL.xls etc.

I have put the code to determine the file name as below

String filename = wdContext.currentExcelName_downloadElement().getExcelName();

IWDResource resource = WDResourceFactory.createResource(b, filename, WDWebResourceType.XLS);

wdContext.currentContextElement().setResource_filedownload(resource);

this issue is not seen in one of the systems of client landscapes and in one it is seen

thanks

B

edit: This problem is not srver specific. it is in local system, ie. local PC. in some PCs it is seen. I have cleared browser cache but not luck

thanks

Edited by: B on Apr 21, 2010 4:21 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can try creating a cached resource

IWDResource webResource = WDResourceFactory.createCachedResource(b, filename, WDWebResourceType.XLS);

You should once print the value for filename and check if it is the desired one.

Regards,

Sruti