on 12-12-2006 3:55 PM
Hi all!!
I call a WS on a WDA, with the output of this WS I have to display a table. On this table, I must select a row and display its detail using another WS.
I got display the table, but I don´t know how select the table row.
Do you know how I can do this?
Thanks,
Manuel.
Hi,
in this <a href="/people/koen.labie2/blog/2006/11/17/custom-f4-functionality-in-webdynpro-for-abap you can find a code example.
grtz
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!!
On the view where the table is displayed I have created a CONTINUE button, to generate an action which get the fields of the row selected, to do this I use the method GET_SELECTION_FIELDS, but when this statement is executed the exception 'Zugriff über 'NULL' Objektreferenz nicht möglich' (Access over ' ZERO ' object reference not possible) is displayed.
This is the code to retrieve the data of the fields of selected row, is on the method resulting of press CONTINUE button..
DATA:
lt_fields TYPE if_wd_select_options=>tt_selection_screen_item.
wd_this->select_row->get_selection_fields( IMPORTING et_fields = lt_fields ).
Is this correct?
Thank and regards,
Manuel
Hi Manuel,
try reading the NODE that holds the table, then get the selected element.
From the selected element, get the static attributes.
lr_node =wd_context->get_child_node(....) " get node under root,
lr_element = lr_node->get_element( ) " get lead element
ls_my_stru = lr_element->get_static_attributes
Check other posts in the forum.
Reading the context is a must know how, to survive in WDA programming,
regards
Phil
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.