on 06-30-2011 10:51 PM
Hi experts!
I am coding the following lines on my method:
data: lo_node type ref to if_wd_context_node.
data: lo_elem type ref to if_wd_context_element.
lo_node = wd_context->get_child_node( name = wd_this->my_context_name ).
lo_elem = lo_node->get_element( ).
I'm using Wed Dynpro code Wizard to do this in three diferent methods, in two of them it works fine, but, in the third method it is not working. The DATA lo_elem is returned as INITIAL.
What can be wrong?
Thanks in advance.
Danny
Danny,
Get_element( ) will return the selected row values( lead selection ) ,and check the initialize lead seleection property of node.
Now if node have some values," get _element method is initial" will not execute.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Thanks for the answers.
My context refers to a TABLE Element, so, to do this, I needed to fill table first as follow:
data: lo_node type ref to if_wd_context_node.
data: lo_elem type ref to if_wd_context_element.
data: lt_table typewd_this->elements_my_table.
lo_node = wd_context->get_child_node( name = wd_this->my_context_name.
lo_node->bind_table( lt_table ). "Considering that LT_TABLE is filled"
lo_elem = lo_node->get_element( ).
Issue is solved.
Thanks again and regards.
Danny
Edited by: Danilo Cardoso on Jul 1, 2011 3:19 PM
Hello Danny,
Since you are not passing the index, the method will try to return the lead selected element. If there is no lead selection in the node, then you will get initial element.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.