cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe Offline Form - Parse method is not possible for this type

Former Member
0 Kudos

Hi All,

I have developed an application for the offline scenario of interactive adobe form. I tried to load the adobe form from my desktop. After pressing the button "Display form" it throws an error "Parse method is not possible for this type".

If I include wdContext.getNodeInfo().getAttribute("pdfObject").getModifiableSimpleType() in the doInit() method of the view I receive this error -

com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(UploadView.pdfObject): must not modify the datatype of a mapped attribute

When I comment it out and upload I receive the error enclosed -

Parse method is not possible for this type

Can someone please help me with a step by step solution to this problem?

Any help is highly appreciated.

Many thanks,

Divya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Divya,

Please try to do it as stated below:

IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("pdfObject");

ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();

IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)type;

Try putting the code in wdInit() or wdDoModifyView().

Let me know if you still face the issue.

Regards,

Arafat

Former Member
0 Kudos

Hi Arafat,

When I added the code suggested by you to the wdDoInit or wdDoModify methods, I receive error as displayed below -

com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(UploadView.pdfObject): must not modify the datatype of a mapped attribute

Kindly advice.

Many thanks,

Divya

ashish_shah
Contributor
0 Kudos

HI Divya,

If your context attribute in view is mapped to an attribute in component controller or custom controller,

then you need to write this code in your component / custom controller.

check if that works.

Ashish

Answers (0)