cancel
Showing results for 
Search instead for 
Did you mean: 

Sap teched 2007 documents excise examples not working

Former Member
0 Kudos

Hi,

I am trying to develop offline interactive form scenario from sap teched 07 documents. As per documents i am coping whole thing but even i got error like:

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

I check whole coding it is same as in document.

public void wdDoInit()

{

//@@begin wdDoInit()

wdContext.getNodeInfo().getAttribute("pdfobject").getModifiableSimpleType();

//@@end

}

public void onActionDisplay(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionDisplay(ServerEvent)

//$$begin ActionButton(323032210)

wdThis.wdGetDynpro5Controller().wdGetContext().currentContextElement().setPdfobject(wdContext.currentContextElement().getPdfobject());

wdThis.wdFirePlugOutPlug();

//$$end

//@@end

}

This is my code if anybudy have idea pls correct it.

Regards,

gurprit bhatia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to move the following code from the view to the controller init

public void wdDoInit()

{

//@@begin wdDoInit()

wdContext.getNodeInfo().getAttribute("pdfobject").getModifiableSimpleType();

//@@end

}

Regards

Ayyapparaj

Answers (0)