2011 Feb 14 1:02 PM
Hello All,
I am using OO ALV to display the results.
column1, column2, column3 column4 (sorting is on column1, colum2)
After clikcing on a button, the order or colums should change
column4, column2, column3, column1 (sorting is on column4, colum2)
To achieve above requirement ,
after clicking on button, i am freeing the object of custom container and grid. creating them again.
calling set_table_for_first_display, after rebuilding the fields catelog table and sorting table.
But this is not giving the desired output. i checked in debugging, that, the objects are freed and new field catelogs are build. Still the display is not changing to coulmn4, column2, column3, column1
Plz help with some ideas
Thank you.
Best Regards,
Amar
Hello All,
I am using OO ALV to display the results.
column1, column2, column3 column4 (sorting is on column1, colum2)
After clikcing on a button, the order or colums should change
column4, column2, column3, column1 (sorting is on column4, colum2)
To achieve above requirement ,
after clicking on button, i am freeing the object of custom container and grid. creating them again.
calling set_table_for_first_display, after rebuilding the fields catelog table and sorting table.
But this is not giving the desired output. i checked in debugging, that, the objects are freed and new field catelogs are build. Still the display is not changing to coulmn4, column2, column3, column1
Plz help with some ideas
Thank you.
Best Regards,
Amar
2011 Feb 14 1:17 PM
i was not calling Free method. once i call it, its working as expected
2011 Feb 14 1:24 PM
- Look like a buffer problem, try to use a CL_GUI_ALV_GRID=>M_BUFFER_INACTIVE='X'. to deactivate the buffer. But before, look for default variant or such parameter that may restraint the ALV to change its layout.
- Do you try to change the layout ALV->SET_FRONTEND_FIELDCATALOG before() an ALV->REFRESH_TABLE_DISPLAY().
Regards,
Raymond
2011 Feb 14 1:28 PM
Hi,
I think that's maybe a problem of the ALV display variant. The Program got your personel settings and doesn't change them!
Regards,
Klaus
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |