on 03-17-2011 12:42 PM
Hell All,
i am working on dynamic ALV in which i have created 3 methods 1. which creates the columns 2. Which sets the data into teh created columns. 3. which does teh alv customizations.
So now my requirement is based on some condition i want to change the UI element
eg
i have
column1 column2 column3
1 link_to_action name
2 link_to_url name2
so based on the condition i would like to display the ui elements as above.
I was able to do till this end so far..
1.in create_columns method i created a column call cell_varaint
2 when i was passing data into the columns
'when column1'
IF colum1 = 1.
<field> = 'link_to_url'
else.
<f_field> = ' '.
endif.
when 'column2'
CREATE OBJECT lr_link_to_actn.
<ls_column>-r_column->set_cell_editor( lr_link_to_actn ).
*
CREATE OBJECT l_cv.
l_cv->set_key( value = 'LINK_TO_URL').
l_cv->set_editor( value = lr_lnk_to_url ).
<ls_column>-r_column->add_cell_variant( r_cell_variant = l_cv ).
<ls_column>-r_column->set_sel_cell_variant_fieldname( 'cell_varaint).
so now i am able to get only empty column with no data into it ... and my cell varaint column shows me the values like LINK_to_URL or space.
I am sure tht some where i am missing something...
Please tell me the correct procedure to use it...
Regards,
Sana.
I hope it is Hello not Hell
if i understand your question correctly, You want the first row of column to LinkToAction UI element and second row LinktoURL.
follow the link where it is nicely explained however he is making one row as text view and other as checkbox.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved the issue i was following all the steps but was not setting the text for the link to action / link to url .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i do not know how you have realized this. I think after you call the alv method set_data, you could get the configuration of the alv and loop through the columns and delete the column cell editors and rebind it with new editors based on your logic.
This is how i would base my logic. Of course it is not a simple everyday programming work. I would also suggest to have a look at FPM GUIBB list -alv .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.