2012 May 02 6:22 AM
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.
2012 May 02 6:32 AM
These are object references , i think by using clear directly on them should change their value to initial.
ex.
Clear : EDITOR_CONTAINER , TEXT_EDITOR1 .
2012 May 02 6:51 AM
Hi,
Please Try with code CALL METHOD 'Container name' -> delete_text.
Use it in PBO Block.
regards
Ajit
2012 May 02 7:23 AM