Hi everybody!
I have following structure in a Controller:
Z_Create_Address
¦__ Output
¦_____ Address
My problem is now that when I try to add a new item it just adds one but all already entered notes gets the same value? Here is the code ...
IPrivateAddAddressView.IAddressElement newElem = wdContext.nodeAddress().createAddressElement(wdContext.currentAddress.modelObject());
Than I fill up the values ending with
wdContext.nodeAddressOrg().addElement(newElem);
When I do this with a value node with the same settings it works with no problems ... only difference is that for creating the the model node the method ask for a model object.
What I am doing wrong?
Thanks for help ...
Bye Markus
Hi Markus,
the Z_Create_Address is a model node? i suggest it's the name of the RFC, too.
To add a new Element in the model node try this:
Z_Create_Address_Input inputModelObject = wdContext.
currentZ_Create_AddressElement().modelObject();
<Type of Address> myAddress = new <Type of Address>();
inputModelObject.addAdress(myAddress);
wdContext.nodeAddress().invalidate();
But you don't want to add an Element in the <b>Output</b>Address node, don't you?
kr, achim
Add a comment