on 01-27-2005 6:37 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
if your problem has been successfully solved please mark the topic as solved.
Thanks for understanding,
Shubhadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.