cancel
Showing results for 
Search instead for 
Did you mean: 

error :com.sap.tc.webdynpro.progmodel.context.ContextException

Former Member
0 Kudos

Hi,

can anybody explain me why this error is coming??

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

at com.sap.tc.webdynpro.progmodel.context.MappedAttributeInfo.getModifiableSimpleType(MappedAttributeInfo.java:113)

at com.sap.darpan.component.Tdc_UICust.attachProjectF4(Tdc_UICust.java:610)

at com.sap.darpan.component.wdp.InternalTdc_UICust.attachProjectF4(InternalTdc_UICust.java:313)

at com.sap.darpan.component.Tdc_UserProjectView.populateProjects(Tdc_UserProjectView.java:176)

at com.sap.darpan.component.Tdc_UserProjectView.wdDoInit(Tdc_UserProjectView.java:100)

Edited by: mamai banerjee on Nov 24, 2008 9:57 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

what is the piece of code in this line Tdc_UserProjectView.java:176 ?

Regards,

ramesh

Former Member
0 Kudos

hii,

The code is written to populate a F4 .The following code is called in View:

public void populateProjects( )

{

//@@begin populateProjects()

wdThis.wdGetTdc_UICustController().fetchProject();

IPublicTdc_UICust.ICtx_vn_ProjectNode l_projNode = wdThis

.wdGetTdc_UICustController()

.wdGetContext()

.nodeCtx_vn_Project();

wdThis.wdGetTdc_UICustController().attachProjectF4(wdContext

.nodeCtx_vn_Project()

.getNodeInfo()

.getAttribute(IPrivateTdc_UserProjectView

.ICtx_vn_ProjectElement

.CTX__VA__PROJECT_ID));

//wdContext.currentCtx_vn_ProjectElement().setCtx_va_ProjectID("A1025");

//@@end

}

yogesh_galphade
Contributor
0 Kudos

Hi

If you are showing the values in SVS or EVS and passing same to Component controller it show this errror. Take temp node or attribute copy data in that same copy in controller node or attribute bind it.

Former Member
0 Kudos

Hi,

the context attribute is mapped from the component controller to view .

if you want to populate the f4 functionality then write the same code in component controller and call the same method in the view.

Regards,

ramesh

Answers (0)