cancel
Showing results for 
Search instead for 
Did you mean: 

Problem In offline Interactive Form

Former Member
0 Kudos

Hi All,

I have created a offline Interactive form application based on download functionality, using Adobe form in NWDS WDJ . So In my application I have created one download view & In the implementation part, I have written the code in wdInit() method as,

public void wdDoInit()

{

//@@begin wdDoInit()

IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfsource");

ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();

IModifiableSimpleValueSet binaryType = type.getSVServices().getModifiableSimpleValueSet();

binaryType.put("FileName","TravelRequest.pdf");

binaryType.put("MimeType","WDWebResourceType.PDF");

String Filename = "C:
Shital
offlineInteractiveForm
src
mimes
Components
com.sap.offlineinteractiveform.shital.UploadDownloadformComp
TravelRequest.pdf";

//@@end

}

When I am trying to deploy & run my application ,It's giving me the Exception as,

java.io.FileNotFoundException: C:\Shital\offlineInteractiveForm\src\mimes\Components\com.sap.offlineinteractiveform.shital.UploadDownloadformComp\TravelRequest.pdf (The system cannot find the path specified)

Help me to solve this problem..?

Thanks & Regards,

Shital.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shital,

try to change the filename location mentioned below, replace the code below


String Filename = "temp\\webdynpro\\web\\local\\offlineInteractiveForm\\Components\\com.sap.offlineinteractiveform.shital.UploadDownloadformComp\\TravelRequest.pdf";

Former Member
0 Kudos

Hi naga

Please tell me that whether i should make this directory on local server?

Also tell me in which directory i should make this (temp) folder.

Shital

Former Member
0 Kudos

Hi ,

no need to copy into server

your application will be in temp folder of server after your deploymnet.

you just need to copy travelrequest.pdf to your project

src/mimes/components/urpackage. deploy and run.

Best Regards,

Naga