on 07-08-2011 8:49 AM
Hello,
I use an ALV table in my ABAP WebDynpro application. I need to wrap the content of the cells so I use the column editor CL_SALV_WD_ UIE_TEXT_VIEW.
The problem is: as soon as I set the column editor CL_SALV_WD_ UIE_TEXT_VIEW my texts in the alv colums are not displayed anymore.
My Coding:
DATA:
...
lo_column TYPE REF TO cl_salv_wd_column,
lo_text_view TYPE REF TO CL_SALV_WD_UIE_TEXT_VIEW.
...
LOOP AT lt_columns INTO ls_columns.
lo_column = ls_columns-r_column.
CASE ls_columns-id .
WHEN 'MEDIUM'.
create OBJECT lo_text_view.
lo_column->set_cell_editor( lo_text_view ).
ENDCASE.
ENDLOOP.
Can anybody help me?
Small changes in your code.
LOOP AT lt_columns INTO ls_columns.
lo_column = ls_columns-r_column.
CASE ls_columns-id .
WHEN 'MEDIUM'.
create OBJECT lo_text_view.
lo_text_view->set_text_fieldname( 'your desired text ').
lo_column->set_cell_editor( lo_text_view ).
ENDCASE.
ENDLOOP.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi..
FYI
Whenever you create the object , you should also pass its properties. In below statement text is the property for textview.
lo_text_view->set_text_fieldname( 'your desired text ').
//ly for progress indicator elements -
set_percent_value_fieldname( 'attibute name")
//ly for buttons----
set_text_fieldname('buttonname')
Here bolded texts are properties name of their corresponding elements.
Okay...
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.