cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with mapped context node

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

achim_hauck2
Active Contributor
0 Kudos

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

0 Kudos

Hi Achim!

many thanks that solved my problem ...

Bye Markus

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Markus,

if your problem has been successfully solved please mark the topic as solved.

Thanks for understanding,

Shubhadip