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

Structure in Model

Hi everybody!

I have some problems filling a structure which is an import parameter in a model.

First of all I tried to fill it directly in the view. Recognizing that this will not work. So I made a new context node (with structure binding). After pressing a button I wanted to fill now the model structure. Unfortunately I am getting a null pointer exception. What I am doing wrong?

Thanks for any ideas in advance ...

Bye Markus

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2005 at 09:01 AM

    Hi Markus,

    did you instantiate and bind an element to the node described? Something like:

    YourContextNodeElement el = new YourContextNodeElement();

    If the corresponding node is a value node you could also set the cardinality of the node to 1..1 or 1..n, then the Web Dynpro runtime will create and bind one element for you, if there doesn't exist one.

    Hope that helps.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi markus

      You should try something like

      Structre struct = new Structure ();
      ArrayList arrList = new ArrayList ();
      wdContext.nodeZBAPI ....INPUT.bind(arrList);



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.