on 09-07-2009 1:14 PM
I've created an ALV with only one column which cells are LinkstoAction, and then, hidden the rest of table, so, only the values of the
cells with hyperlinks are shown.
The problem is the following: when i click one hyperlink, the target window remains the same, and i have
no way to know which hyperlink was clicked, cause the selection column was hidden just before.
Is there any way to solve this?
Your query states that you have created an ALV therefore i had suggested the steps related to ALV.
In case you have a Table Control uielement, you can use the following code in the onAction method.
I've created an ALV with only one column which cells are LinkstoAction, and then,
hidden the rest of table, so, only the values of the cells with hyperlinks are shown.
Radhika.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 ),
" 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,
I can´t find the 'onClick' envent in my Table.
My table has the events:
- onFilter
- onLeadSelect
- onScroll
- onSelect
- onSort
And the column has the envent:
- OnAction
I have tried to implement the code in the OnAction event of the colum but i haven´t the R_PARAM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must have implemented the onClick event. In this event r_param parameter is available which returns all the required details.
Check this article, it will help you. [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8&overridelayout=true]
Radhika.data: lr_node type ref to if_wd_context_node,
data: l_index type i.
data: l_value type string.
field-symbols: <l_value> type any.
l_index = r_param->index. " index of the row
assign r_param->value->* to <l_value>.
l_value = <value>. " value of the hyperlink that was clicked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.