on 05-13-2008 1:03 AM
Hi,
I'm have a table UI element and it contains 5 rows.
If i'm clicking any field in row 3, the lead selection should be pointed to row 3 and the row should be selected.
How can i do???
Thx
Hi,
This is possible by using the following:
lo_element = wdevent->get_context_element(
name = 'CONTEXT_ELEMENT').
get all declared attributes
lo_element->get_static_attributes(
importing
static_attributes = ls_stru ).
call method lo_node->set_lead_selection
exporting
element = lo_element .
Shruthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrick,
You cannot capture an event for simply clicking on a table cell. There is no such event in the normal table. However, if you have a button, link to action etc in the table column, then you can capture the clicked element and also set that as the selected element. In this case, you need to first define an action for your ui element (button/link). In the event handler method, wdevent will be an importing parameter. There you can use that piece of code.
Regards,
Nithya
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.