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: 

Clear statement for editor container

Former Member
0 Kudos
101

Hi experts,

I am working on custom container and my data declaration as follows.

data:

  EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
      TEXT_EDITOR1      TYPE REF TO CL_GUI_TEXTEDIT.

Now,

At time of save,I m using syntax:

   if text_editor1 is not initial.
    call method text_editor1->free.
    "call method text_editor1->clear.
endif.
if editor_container is not initial.
    call method editor_container->free.
endif.
call method cl_gui_cfw=>flush.
endif.

here my data present in container is free but my  declarartion EDITOR_CONTAINER  and TEXT_EDITOR1 is not free(i.e It is not initial)     

Kindly provide me syntax so that it should be free and equal to (Initial) at time of save.

Regards,

Viraj.

3 REPLIES 3

rajeevgoswami1
Participant
0 Kudos
60

These are object references , i think by using clear  directly on them  should change their value to initial.

ex.

Clear : EDITOR_CONTAINER , TEXT_EDITOR1 .

Former Member
0 Kudos
60

Hi,

Please Try with code CALL METHOD 'Container name'  -> delete_text.

Use it in PBO Block.

regards

Ajit

0 Kudos
60

Thnks its working