on 04-06-2009 3:41 PM
Hi all,
I am trying to set the default value of a dropdown by key.
My context node structure is
My_Node
- My_NodeAttribute
My dropdown by key is binded to My_NodeAttribute and is displaying all the values.But the initial value is blank.So I am using the following code to set the default value in the dropdown,
data: data: LO_My_NodeELE type ref to if_wd_context_element.
CALL METHOD LO_My_NodeELE->SET_ATTRIBUTE
EXPORTING
NAME = 'My_NodeAttribute'
VALUE = 'XYZ'
.
Its not giving me any syntax errors but at runtime I m getting the following error:
Access via 'NULL' object reference not possible.
The node Cardinality is 1-1,selection - 0-1.
Please advise.
Thanks
Kukku
Hi,
Does the domain has the fixed values or you are populating the values.
The cardinality of the node should be 1:N or 0:N to hold the mutliple values for the dropdown.
Is this the part of the selection fields.
Check ST22 for the detailed error analysis. I think the context element reference is not there.
Regards,
Lekha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.