2008 Apr 23 12:53 PM
Hi,
I have one container with a splitter to split the container in :
container1
container2.
In both containers I show an ALV (CL_SALV_TABLE).
I want to refresh the table of container2 (ALV2) when I click on a button in container1 (ALV1).
The first time the ALV2 is shown but then it is not getting new data (no refresh).
Hope i make myself clear.
Any input will be appreciated.
regards,
bert
2008 Apr 23 12:58 PM
Hi,
Try this
data: gr_selections type ref to cl_salv_selections,
gt_rows type salv_t_row.
refresh : gt_rows. " clear out selections
clear : gt_rows.
gr_selections = gr_table->get_selections( ).
gr_selections->set_selected_rows( gt_rows ).
Regards,
Raj.
Hi,
I have one container with a splitter to split the container in :
container1
container2.
In both containers I show an ALV (CL_SALV_TABLE).
I want to refresh the table of container2 (ALV2) when I click on a button in container1 (ALV1).
The first time the ALV2 is shown but then it is not getting new data (no refresh).
Hope i make myself clear.
Any input will be appreciated.
regards,
bert
2008 Apr 23 12:58 PM
Hi,
Try this
data: gr_selections type ref to cl_salv_selections,
gt_rows type salv_t_row.
refresh : gt_rows. " clear out selections
clear : gt_rows.
gr_selections = gr_table->get_selections( ).
gr_selections->set_selected_rows( gt_rows ).
Regards,
Raj.
2008 Apr 23 1:00 PM
i_callback_user_command = 'USER_COMMAND'
...
FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
case UCOMM.
when '&IC1'. "this is for double click.
READ TABLE it_idoc INDEX selfield-tabindex.
SET PARAMETER ID 'DCN' FIELD it_idoc-docnum.
SUBMIT RSEIDOC2 WITH DOCNUM = it_idoc-docnum
WITH CREDAT = It_idoc-credat AND RETURN.
selfield-refresh = 'X'.
ENDCASE.
2008 Apr 23 1:03 PM
You have one method in cl-gui-alv-grid...which is REFRESH_TABLE_DISPLAY.
Regards.
Dara.
2008 Apr 23 2:14 PM
Hi,
Thanks for answering but i am using cl_salv_table and not cl_gui_alv_grid.
In cl_salv_table i already use o_table->refresh( ).
I think the problem is in the container. It seems persistent in keeping the old ALV and data.
Regards,
Bert
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |