on 05-16-2007 6:53 AM
Hi All,
In ALV output we see first coulmn with buttons with which you select the entire row. Now I would like to select entire column. Is it possible to have buttons for column headers so that I can select that particular column?
In normal ALV grid output this is possible I think. Can we have that in WD as well.
If yes, how can we achieve that?
Pls suggest.
Thank You,
Gajendra.
you can do this indirectly..
m_alv_model->IF_WD_TABLE_SETTINGS~SET_DATA_CHECK( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT )
Create as many atrributes as number of columns, of type STRING in the same Node that is bound to ALV Table.
Attr_Col1, Attr_Col2.....etc
Bind the CellDesign property of each column to the corresponding attribute in the Node.
ref_col1 = m_alv_model->IF_SALV_WD_COLUMN_SETTINGS~get_column( 'col1' ).
ref_col1->SET_CELL_DESIGN_FIELDNAME( 'Attr_Col1' ).
and so on.....
In the Data_Check Event handler, you will retrive the ID of column Clicked.
Create a value for CellDesign (goodvalue_light, badvalue_light etc) in the corresponding attribute of the Node.
This would cause the color of the entrire column clicked, to change.
And u have the ID of the Column clicked in the Action Handler of onAction to find out which column is clicked.
Thanks
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gajendra,
I have a similar requirement as yours where I want to select an entire column. Is this possible? Did you find out any solution? If so, pls tell me as how to do the same.
Thanks & Regards,
Reena
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Reena,
That is not possible yet in Webdynpros. I have some work around to meet my requirement. I have to copy entire selected column. So when I press on copy button I am coming up with a dropdowm where Iam listing all the existing column names in that ALV table and I select one column from drop down and I copy all contents of that colummn.
I dont know how far its help you.
Thank You,
Gajendra.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.