on 09-05-2009 7:47 AM
I have a table column as link to action.
On selecting the link it should navigate to its details(detailed info). Without lead select i might click on the value. in this case how do i get that selected value.
Implement the event onAction of linktoaction and place the following code in the method;
RadhikaData: context_element type ref to if_Wd_context_element.
context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
context->element->get_static_attributes( importing static_attributes = ls_stru ),
" ls_stru will have the contents of the entire row, ls_stru-fieldname will give you the value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radhika,
Thanks a lot. It is exactly what i required.
A small correction in the code.
Data: context_element type ref to if_Wd_context_element.
context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
context_element->get_static_attributes( importing static_attributes = ls_stru ).
thanks again
Hi,
As radhika says you can only get the selected rows in table only. If you have to display some other details which are not present in UI table, then you will have get the primary field in the method suggested by radhika. Then you have to use a query to get the necessary fields from DB table using this primary field.
Hope this helps you.
thanks,
Aslam
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 | |
6 | |
6 | |
6 | |
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.