on 03-09-2007 6:57 AM
hi ,
I have the following scenario:
we have a model node in the component interface.This is supposed ot be an input to a RFC in a used component.
Data for this node comes from a view. The view also has a model node.
I try to create a new controller model node in view and assign values to my view node.
when it try to set the value in the view, i get the following error:
" com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(<>CompInterface.<>): cannot create nodes, no mapping defined yet
"
I use the following code:
wdThis.wdGet<>CompInterfaceController().wdGetContext().create<>Element(new Is_Context());
IPrivate<>View.I<>Element ifcd = wdContext.create<>Element(new IS_Context());
ifcd.setAction_Type("1");
BigDecimal bd = new BigDecimal(wdContext.currentContextElement().getReq_amt());
ifcd.setRequired_Amt(bd);
ifcd.setAction_Type("1");
ifcd.setCalculation_Base("1");
ifcd.setPeriod_Type(wdContext.currentHeaderDataElement().getPeriodtype());
Please advise and help.
Asif
try changing the cardinality of the node. change it to 1..n and then see.
Regards,
Gita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.