on 03-09-2010 7:59 PM
I have a table with a column that is editable. I have a save button. I want to be able to fill in all the rows and then click the save button.
After clicking the save button, I should be able to find out values entered in all the cells of the table.
So far I have the following code, but as you can see it will only handle a single line.
data lo_nd_qamr type ref to if_wd_context_node.
data lo_el_qamr type ref to if_wd_context_element.
data ls_qamr type wd_this->element_inspresult_r.
lo_nd_qamr = wd_context->get_child_node( name = wd_this->wdctx_inspresult_r ).
lo_el_qamr = lo_nd_qamr->get_element( ).
call method lo_el_qamr->get_static_attributes
importing
static_attributes = ls_qamr.
You should read static attributes of the table . Change your code like below.
data lo_nd_qamr type ref to if_wd_context_node.
data lo_el_qamr type ref to if_wd_context_element.
data ls_qamr type wd_this->element_inspresult_r.
data lt_qamr type wd_this->elements_inspresult_r.
lo_nd_qamr = wd_context->get_child_node( name = wd_this->wdctx_inspresult_r ).
lo_el_qamr = lo_nd_qamr->get_element( ).
lo_nd_qamr->get_static_attributes_table( IMPORTING table = lt_qamr )
Now the field lt_qamr will have all the values of the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.