Skip to Content
avatar image
Former Member

Mapping error with ModelNode

Hi all,

I have this error when I execute my application:

com.sap.tc.webdynpro.progmodel.context.ContextException: NodeInfo(GetCostsView): cannot modify Userid because it is mapped and there is no active NodeElement to take the value

I have a Custom controller with this structure:

NodeGetCosts(ModelNode)

-NodeOutput (ModelNode)

-UserId (ModelAttribute)

I have mapped it to context of View01:

-NodeOutput(ModelNode)

-UserId(ModelAttribute)

In doInit method of custom controller I usu this code:

NodeGetCosts input = new NodeGetCosts();

wdContext.NodeGetCosts().bind(input);

try { wdContext.currentNodeGetCosts().modelObject().execute();

wdContext.nodeOutput().invalidate();

} catch (WDDynamicRFCExecuteException e) {

}

What can I do?

Thanks

Andrea

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 03, 2006 at 10:17 AM

    Hello Andrea,

    Try to map the whole context structure from the CC to your view.

    I think you missed out mapping of the parent node <b>NodeGetCosts(ModelNode)</b>.

    If the RFC requires some input like <i>UserId</i> specify the value for that attribute as well. Also, try

    to execute the same code from the CC's init.

    This should solve your problem.

    <i>Please reward appropriate points</i>

    Bala

    Add comment
    10|10000 characters needed characters exceeded