on 07-25-2008 6:13 AM
Hi all,
I want to know about LinkToUrl. When i click the
LinkToUrl some actions should be happened.
Kindly send the full codings.
Thanks,
Ranjith.
Hi
U can refer this coding
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_link TYPE REF TO cl_salv_wd_uie_link_to_action.
DATA : lr_linky TYPE REF TO CL_SALV_WD_UIE_LINK_TO_URL.
lr_column = l_value->if_salv_wd_column_settings~get_column( 'PARTNER' ).
CREATE OBJECT lr_link.
lr_link->set_text_fieldname( 'PARTNER' ).
lr_column->set_cell_editor( lr_link ).
CREATE OBJECT lr_linky.
lr_linky->set_text_fieldname( 'PARTNER' ).
CALL METHOD lr_linky->SET_REFERENCE
EXPORTING
VALUE = 'http://www.google.com'
.
lr_column->set_cell_editor( lr_linky ).
Hope this helps U
Regards
Tamil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi
>
> U can refer this coding
>
>
DATA: lr_column TYPE REF TO cl_salv_wd_column. > DATA: lr_link TYPE REF TO cl_salv_wd_uie_link_to_action. > DATA : lr_linky TYPE REF TO CL_SALV_WD_UIE_LINK_TO_URL. > > lr_column = l_value->if_salv_wd_column_settings~get_column( 'PARTNER' ). > > CREATE OBJECT lr_link. > lr_link->set_text_fieldname( 'PARTNER' ). > lr_column->set_cell_editor( lr_link ). > CREATE OBJECT lr_linky. > lr_linky->set_text_fieldname( 'PARTNER' ). > CALL METHOD lr_linky->SET_REFERENCE > EXPORTING > VALUE = 'http://www.google.com' > . > lr_column->set_cell_editor( lr_linky ).
>
>
> Hope this helps U
>
> Regards
> Tamil
Did this answer actually solve your problem? You never mentioned anything in your question about needing to create your link UI elements as part of an ALV. This code sample works for ALV. Were you actual looking for an ALV releated answer?
You have to use LinkToAction UI element, if you want an action to be assosiated with it.
LinkToUrl is to call other application
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
using LinkToAction
1. place the UI element in the View
2. create an Action and set the property onAction withe the created action
3. go to methods and choose the event handler and code
Using LinkToUrl
1. place the UI element in the View
2. set the reference property with the URL (ex: http://www.google.com )
when you click the LinkToUrl google page will be opened
Abhi
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.