Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

How to Delete certain rows from table view collection

$
0
0

Hi Experts,

I need to display result on the basis of certain process type. So i have used code like below.

 

       lv_iterator =   me->typed_context->searchresult->collection_wrapper->get_iterator( ).

       lv_entity = lv_iterator->get_first( ).

       WHILE lv_entity IS BOUND.

         CLEAR:lv_object.

         lv_object = lv_entity->get_property_as_string( iv_attr_name = 'PROCESS_TYPE' ).

         IF lv_object <> 'XXX'.

           lr_entity ?= lv_entity.

          me->typed_context->searchresult->collection_wrapper->remove( lv_entity ).

          lr_entity->delete( ).

         ENDIF.

         lv_entity = lv_iterator->get_next( ).

       ENDWHILE.


But only some of the entities from the collection are getting removed. Still some wrong entities exists which i cant even able to delete it by using ,

          me->typed_context->searchresult->collection_wrapper->remove( lv_entity ).

          lr_entity->delete( ).


Am i missing anything here?


Regards,

Santhosh



Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>