cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically delete Elements

frknkzlrsln
Participant
0 Kudos

Hi everone ,

METHOD wddomodifyview .

DATA: lo_tc TYPE REF TO cl_wd_transparent_container.

IF wd_this->mv_new_guid eq abap_true .


* Ekrandaki default TC bulunur:
lo_tc ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).

" İlk Asıl Belge Ekrana Eklenir
DATA(lo_parent_tc) = wd_this->add_doc_to_ui( EXPORTING io_parent_tc = lo_tc
iv_doc_guid = wd_this->mv_doc_guid ).

ENDIF.
ENDMETHOD.

Dynamically adding RootEelemntContainer as seen above in ModifyView .

Then I call the add_doc_to_ui method. This method adds some elements within itself.

Apart from that, I also have one button in this view. How can I delete all the elements in the RootContainer when this button is pressed. ? The name of onaction is DELETE .

Thanks .

former_member27
Community Manager
Community Manager
0 Kudos

Hi,

The tag was changed as per this moderation alert:Better primary tag: UI Web Dynpro ABAP

Regards,

Dedi

Accepted Solutions (0)

Answers (0)