on 08-14-2007 11:10 AM
Hi,
I have a simple problem but can't seem to find the sollution.
I have a PO node with a subnode Approver. Both have attributes an PO node has initializeLeadSelection set to false, the Approver node is set to true.
I start by creating a PO node and adding it to the context:
IPrivateMainComponentView.IPOElement poEle = wdContext.nodePO().createPOElement();
wdContext.nodePO().addElement(poEle);
Then i loop through the approvers and add the approverElements to the just created poEle:
IPrivateMainComponentView.IApproverElement approversElement = wdContext.nodeApprover().createApproverElement();
approversElement.setApprover(approverName.toLowerCase());
((IPrivateMainComponentView.IPONode)aPOEle.node()).nodeApprover().addElement(approversElement);
The problem is I get the following error when adding the approverElement:
Exception(com.sap.tc.webdynpro.progmodel.context.ContextException: Node(MainComponentView.PO.Approver): cannot bind or add elements because the node has no valid parent) during processing a Web Dynpro Application.
Can anyone help me out here?
Much thanks & regards,
Hugo
Hi
Use supplyFunction property of the Context node Approve to fill values.
for more information http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.