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
Hi Markus,
did you instantiate and bind an element to the node described? Something like:
YourContextNodeElement el = new YourContextNodeElement(); wdContext.nodeYourContextNode().bind(el);
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.
Regards
Stefan
Add a comment