cancel
Showing results for 
Search instead for 
Did you mean: 

Parse method is not possible for this type

Former Member
0 Kudos

I have a file upload component and one button in a view.

I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.

help me out.

Thanks In advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

can you paste here the code for submit button.

Regadrs,

Naga

Former Member
0 Kudos

Hi,

Write these statements in wdDoInit() method..

IWDAttributeInfo attributeinfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>.IContextElement.<attribute bound to data property>);

attributeinfo.getModifiableSimpleType();

This will solve your issue

Regards

LN

Former Member
0 Kudos

Hi,

Thanks for your response. I have written the following code in wddoinit():

IWDAttributeInfo attributeinfo = wdContext.getNodeInfo().getAttribute(IPrivateSubstanceDocView.IFileUpload02Element.DATA);

attributeinfo.getModifiableSimpleType();

fileUpload02 is my context.

but I am getting a null pointer exception over here.

can ypu please help it.

Actually the case is this is a window, which is opening on click of a hyperlink on another View.

With the action method I am calling this View.

Thus on click of a hyperlink just I am opening a new View then here I am a browse button etc...

PLease help if you can

Former Member
0 Kudos

Hi,

Take the context attribute 'DATA' as child of context not as child of ValueNode.

I think fileUpload02 is your ValueNode. follow as said above.. Hope my code will resolve your problem.

Regards

LN