Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to refresh top_of_page event data in custom container

former_member185116
Active Participant
0 Kudos
135

hello all,

i have developed a Zreport with two custom containers on side by side..(container2 has top_of_page event)

when i click a record on container1  the corresponding data is displayed on container2 (with corresponding top of page) ,

when i click another record the data on container2 is getting updated with data,

however the top of page on container2 is not getting updated...

(i.e top_of_page is not getting refreshed)...

how do i refresh the top_of_page event data..

thanks in advance....

2 REPLIES 2

former_member241258
Active Participant
0 Kudos
77

for every time click on container1 free objects of container2 and reinitial the objects of container2.

that code should be written in DOUBLE_CLICK event method of container1

former_member197132
Participant
0 Kudos
77

Refer below code..

CALL METHOD o_grid->free

    EXCEPTIONS

      cntl_error        = 1

      cntl_system_error = 2

      OTHERS            = 3.

  IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

  CALL METHOD o_docking->free

    EXCEPTIONS

      cntl_error        = 1

      cntl_system_error = 2

      OTHERS            = 3.

  IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.