cancel
Showing results for 
Search instead for 
Did you mean: 

problem in adobe offline forms

Former Member
0 Kudos

Hi All,

I am developing an application on Adobe Interactive Forms. I am working on the example given in SDN online, offline with file upload. Online Scenario is working fine and i could able to get the data even from back end executing BAPI.

But problem is with offline scenario, where i am uploading pdf filled with data in offline mode. I could render the pdf successfully on browser, But when i press Button the data in the PDF (entered in offline) is not passing to the controller instead it is throwing NULL.

So i could not get the result.....

I had gone through all the documents in SDN. Please suggest me some solutions..

Regards

Raghu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Raghu,

I think the WD Context will not work in offline scenario as in the 'usePdf' mode, the data source is ignored (as per SAP Library link).

I feel the offline scenario is meant to load the pre-filled pdf form (which has been saved earlier)

Kind Regards,

Nitin

Former Member
0 Kudos

Hi,

But however we need to access the offline data right? how could we achieve this

Go through the following Webinar. I had done simillarly but still the problem persists.

Any one help me out on this

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0d1d1ce-56ef-2910-ff88-f3d1afe0d175]

Regards

Raghu

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Raghu,

Yes, attribute is bound to binary & is different for datasource context structure.

It seems you have done all the things properly, only one small difference in code as I mentioned earlier.

Did you check with code in sample example at SAP Library like wdContext.currentABCelement().getAirline() ?

Kind Regards,

Nitin

Updated: Refer to link which has the code to move data to controller's context https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-tec...

Edited by: Nitin Jain on Mar 7, 2009 11:33 AM

Former Member
0 Kudos

Hello,

Refer note 1055738 and make sure you are on the right patch levels.

Regards,

Virag

Former Member
0 Kudos

Hi All,

Thanks for your help. I solved my problem.

What i can conclude here is usepdf property is only for rendering the already existing pdf, so by using uspdf the data in offline pdf is not available in context node. So we have to explicitily get the data in offline pdf to our context by using Adobe API method transferPDFdataintoContext.

Regards

Raghu

Former Member
0 Kudos

Hi Raghu,

You wrote - "Later when i run the offline application and render the pdf as UsePdf, I could see the data which i entered in the local pdf. But when i press the Button on pdf and i am trying to read the data with wdContext.nodeABC().currentABCelement().getAirline(). I could not get the data with above code. when i put that code in reportsuccess(messagemanager) i am getting null."

What I get is that pre-filled values are visible but you are not able to get them thru the context structure.

There is small diff in the code in the example at SAP library. It is like wdContext.currentABCelement().getAirline() in example.

Pls check the context structure (pdfSource bound to context attribute of type boolean & not part of datasource node structure) & context bindings.

Kind Regards,

Nitin

Former Member
0 Kudos

Hi

yes it is bound to binary and not boolean. If iam not wrong and this attribute is seperate from data source.

Raghu

Former Member
0 Kudos

???

Former Member
0 Kudos

Hi Raghu,

The concept of offline scenario is that you download an empty form, fill in the details in this form in the offline mode & then can upload this filled up form & then submit these details.

Refer http://www.adobe-solutions.de/downloads/SAP_Interactive_Forms_by_Adobe_Solution_in_Detail.pdf which might be helpful.

Kind Regards,

Nitin

Former Member
0 Kudos

Hi Nitin,

Thats what i am doing but i could not get the values filled in offline mode. Hope u understood the question.

Regards

Raghu

Former Member
0 Kudos

Hi,

Any one help me i am not getting the data filled in offine Adobe, when i upload the adobe and use usepdf mode.

Regards

Raghu

former_member185086
Active Contributor
0 Kudos

Hi

Check [this|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12565] [original link is broken] [original link is broken] [original link is broken]; might help u.

Satish

Former Member
0 Kudos

Hi Raghu,

I hope you have already refered to SAP NetWeaver Library links also.

http://help.sap.com/saphelp_nw70/helpdata/EN/1a/ff773f12f14a18e10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw70/helpdata/EN/dc/f1783fe3263042e10000000a114084/content.htm

The NullPointerException might be due to your application logic. Can you paste some error details to look into it.

Kind Regards,

Nitin

Former Member
0 Kudos

Hi Nitin,

I elaborate my question again. Take the example of Flight List BAPI.

In online scenario, the pdf is opened in browser and when enter Airline and Maxrows the data is fetched from BAPI and i could successfully see the result in table UI element in PDF.

But in Offline scenario where i downloaded the pdf generated from online scenario to my local desktop and in my offline PDF which is in my local desktop i filled Airline and maxrows and saved the PDF form.

Later when i run the offline application and render the pdf as UsePdf, I could see the data which i entered in the local pdf. But when i press the Button on pdf and i am trying to read the data with wdContext.nodeABC().currentABCelement().getAirline(). I could not get the data with above code. when i put that code in reportsuccess(messagemanager) i am getting null.

Help me out on this issue.

Regards

Raghu