on 02-08-2005 2:09 AM
Hi All,
I am working on an example that requires data to be populated to the controller context node(cardinality 0..n) with information. This controller context is used in multiple views. I collect some data in one view and some data in another view. This context node is has the following structure
|-Context
|-ToModel
|-BusinessPartner (cardinality 0..n - structure ZBUPA)
- BusinessPartnerRole
- BusinessPartnerNo
I am expecting the following result in the node:
BusinessPartnerRole BusinessPartnerNo
1 -
115
2 -
115
3 -
115
I tried using the following piece of code. It didn't work
ZBUPA partner = new ZBUPA();
partner.BusinessPartnerRole("1");
partner.setBusinessPartner("115");
IPrivatePartnerInformation.IBusinessPartnerElement newPartnerNodeElement;
newPartnerNodeElement = wdContext.createIBusinessPartnerElement(partner);
wdContext.nodeToModel().nodeIBusinessPartner().addElement(newPartnerNodeElement);
Any guidance will be greatly appreciated.
Thanks and regards,
Hemanth
It seems (according your code) that
1. BusinessPartner is child node of ToModel node
2. BusinessPartner is singleton node
Probably you have to make BusinessPartner node non-singleton?
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hemanth
Try this
IPrivatePartnerInformation.IBusinessPartnerElement newPartnerNodeElement;
newPartnerNodeElement = wdContext.createIBusinessPartnerElement();
newPartnerNodeElement.setBusinessPartnerRole("1");
newPartnerNodeElement.setBusinessPartner("115");
wdContext.nodeToModel().nodeIBusinessPartner().addElement(newPartnerNodeElement);
Regards
Pran
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 | |
23 | |
11 | |
9 | |
8 | |
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.