on 08-13-2009 5:59 AM
Hai all,
I want to display a icon or link in AVL grid . In that icon click i want to navigate to another view.
Could any body tell me how to do this
Regards,
Arun
Hai All,
I have two links in ALV grid one for edit page and one for show page.The links are coming in alv. if i click show it should go to show page.if i click edit it should go to edit page.
I want to know which row i clicked and edit column or show.
Please help me.
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Implement the Onclick event and using r_param you can get the index of the selected row and other required details. Check this article [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8] Note: I see you have created 2 similar threads, do not create multiple thread please. Regards, Radhika.
Hi,
You will have to create a linktoaction cell editor in your column and assign an icon to it.
* Instantiate the used component
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_usg_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
* Get Model
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_interfacecontroller = wd_this->wd_cpifc_usg_alv( ).
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model(
).
*---------- ALV table settings.
DATA: l_table_settings TYPE REF TO if_salv_wd_table_settings .
l_table_settings ?= lo_value.
wd_this->l_table = l_table_settings .
* Set the Editable property to true
l_table_settings->set_read_only( abap_false ).
* Set table header
DATA: l_header TYPE REF TO cl_salv_wd_header.
l_header = l_table_settings->get_header( ).
l_header->set_text( 'Sales Orders' ).
*---------- Column settings
DATA: l_column_settings TYPE REF TO if_salv_wd_column_settings.
l_column_settings ?= lo_value.
* Get columns
DATA: lt_columns TYPE salv_wd_t_column_ref ,
ls_columns TYPE salv_wd_s_column_ref .
DATA: l_column_header TYPE REF TO cl_salv_wd_column_header .
lt_columns = l_column_settings->get_columns( ) .
LOOP AT lt_columns INTO ls_columns .
CASE ls_columns-id .
WHEN 'VBELN' .
l_column_header = ls_columns-r_column->get_header( ) .
l_column_header->set_ddic_binding_field(
if_salv_wd_c_column_settings=>ddic_bind_none ) .
l_column_header->set_text( 'Sales Order' ) . " column heading
" Link to Action
data: lr_link TYPE REF TO cl_salv_wd_uie_link_to_action.
CREATE OBJECT lr_link.
lr_link->set_text_fieldname( ls_columns-id ).
" assign icon
lr_link->set_image_source( '~Icon/CheckedOk' ).
ls_columns-r_column->set_cell_editor( lr_link ).
WHEN' ATTR2'.
........
WHEN OTHERS.
........
ENDLOOP.
Regards,
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun,
Please go through the following wiki.Here david explained how to insert link to action,check box and image.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.