Skip to Content
author's profile photo Former Member
Former Member

Problem with mapped context node

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 28, 2005 at 07:57 AM

    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
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2005 at 01:51 PM

    Hi Markus,

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

    Thanks for understanding,

    Shubhadip

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.