cancel
Showing results for 
Search instead for 
Did you mean: 

offline Interactive Webdynpro

Former Member
0 Kudos

Hello SDN,

Im trying to implement offline Interactive webdynpro scenario which is given in SDN. In download View I have filedownload UI element. And I have my interactive form is saved in my local machine.

(Bascially user sould be able to download the interactive form)

While writing coding in the implementation part for download view, which path I should give for my "pdf" file. I have tried all possible ways but once I execute Im getting following error:

"A file or directory in the path name does not exist."

the following is the code in init ()

IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;

binaryType.setFileName("Test.pdf");

binaryType.setMimeType(WDWebResourceType.PDF);

String fileName = "
OfflineTest
src
mimes
Components
com.xxx.OfflineTest
Test.pdf";

File file = new File(fileName);

FileInputStream in = new FileInputStream(file);

ByteArrayOutputStream out = new ByteArrayOutputStream();

int length;

byte[] part = new byte [10 * 1024];

while ((length = in.read(part)) != -1)

{

out.write(part, 0, length);

}

can some one tell me where i went wrong.

J.Smitha

Accepted Solutions (0)

Answers (2)

Answers (2)

amolgupta
Active Contributor
0 Kudos

Hi,

i hope you are using the "interactive form" UI element in your view, which will have the corresponding context for it.

and you dont have to use any other download UI element.

there shall be a save button on the Interactive form only.

regards,

-amol

Former Member
0 Kudos

hi

Can some one reply? Im still facing the problem. I dodnt know y it is not able to find the pdf file even after placing it in src/mimes/components/adobe.test.com/test.pdf.

Is there any other way?

full points assured

J.Smitha.

Former Member
0 Kudos

Hi,

place the pdf in this and try ?

src/configuration/components/adobe.test.com/test.pdf.

Regards,

ramesh.