Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Refreshing data in value node

$
0
0

Hi Experts,

 

I have a value node in my custom view (Assignment block) getting filled with data.

I have written the following code in DO_INIT_CONTEXT method of my custom context node (value node) to populate the view with data.

 

  lr_coco ?= me->comp_controller.

   CHECK lr_coco IS BOUND.

   lr_entity ?= lr_coco->typed_context->erpitems->collection_wrapper->get_current( ).

   CHECK lr_entity IS BOUND.

   lr_col = lr_entity->get_related_entities( iv_relation_name = 'ERPItemAdminI' ).

 

   CALL METHOD lr_col->get_first

      RECEIVING rv_result = lr_access.

 

WHILE lr_access IS BOUND.

.

.

.

.

.

ENDWHILE.

 

After this, i have the following code to set the data collection to the context node (Value node).

 

LOOP AT lt_excptn INTO ls_excptn.

   CREATE DATA lo_struct_ref.

   CREATE OBJECT lo_value_node

       EXPORTING

         iv_data_ref = lo_struct_ref.

lo_value_node->set_properties( ls_excptn ).

me->typed_context->EXCEPTIONS->collection_wrapper->add( lo_value_node ).

ENDLOOP.

 

Whenever there is a change ( addition or deletion of item ) in Items assignment block, i hope my variable lr_col gets refreshed with change.

 

How can that change be reflected in my view.

The methods DO_INIT_CONTEXT or DO_PREPARE_OUTPUT of my view do not trigger when changes were made in the Items assignment block.

How can I achieve the data refresh in my view based on change in Items assignment block.

 

 

Thanks....


Viewing all articles
Browse latest Browse all 4552

Trending Articles



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