on 11-21-2006 6:17 AM
Hi,
I have created a Parent node with a cardinality 0..n & i have added two more child nodes to this Parent node with same cardinality 0..n & one element. Also child nodes have multiple elments also.
I have written the code in DoInit Method...of my only iview...
public void wdDoInit()
{
wdContext.currentOrderDataElement().setFirstName("Smita");
wdContext.currentDataSourceElement().setSalutationText(salutationText);
wdContext.currentOrderDataElement().setCustomerID(2121);
wdContext.currentOrderDataElement().setOrderID(5245);
IPrivateDynamicFormView.IOrderItemsElement orderItemsElement = wdContext.createOrderItemsElement();
orderItemsElement.setProductID(90);
wdContext.nodeOrderData().addElement(orderItemsElement);
}
when i try to Run it i am getting following exception..........
<b>java.lang.NullPointerException</b>
at com.sap.tut.wd.dynamicform.DynamicFormView.wdDoInit(DynamicFormView.java:98)
at com.sap.tut.wd.dynamicform.wdp.InternalDynamicFormView.wdDoInit(InternalDynamicFormView.java:152)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:412)
... 31 more
can anyone suggest me what should be the proposed cardinality for parent node & Child nodes............??
Thanks in advance !!
Smita.
Hey Thanks a lot Kris!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Smita,
The proposed cardinality for parent node should be 1:n & for Child nodes it should be 0:1.
Thanks,
kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.