cancel
Showing results for 
Search instead for 
Did you mean: 

Second view data rendering into first view

SateeshUppada
Explorer
0 Kudos

Hi Experts,

  1. I am facing an issue in WebUI, My requirement is I need to display the marketing attributes in to two assignment blocks, one block contains only particular Marketing attributes and other block contains rest of the attributes data.
  2. For this i coped the standard view 'BP_DATA/MarketingAttributesEOVP '  into Z view and did all the required steps to display the data into WebUI.
  3. I have written  the code in 'ON_NEW_FOCUS', i am able to display the data into UI but my issue is ( i.e the data in the second view is rendering in to the First view ), i am using 'me->collection_wrapper->add( iv_entity = entity )' to add the data, here 'collection_wrapper' instance is same for both the   Methods.

You can identify the issue in the below screen 

if i delete the binding code in the 'CREATE_ZATTRIBUTES' method in Context class its working fine,but i need to add new records in the second view also,with out binding the out put is like this,i need the output as like the below only.

Thanks,

Sateesh Uppada .

Accepted Solutions (1)

Accepted Solutions (1)

jotsaroop_singh
Active Participant
0 Kudos

You can create two different collections after filtering the records from the   Original collection ( which involves all marketing attribute records ) and then set it at view context node as needed.

Below statement will help you to set the collection

me->typed_context->Context_node_name->collection_wrapper->set_collection (lr_col)

SateeshUppada
Explorer
0 Kudos

Hi Jotsaroop,

Thanks for your quick response, i will try and let you know..

Sorry for the late reply,have been busy with some other works.

Resolved by my self, in the context class,CREATE_ATTRIBUTES method we need to change the binding

Before

owner->do_context_node_binding(

            iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_CUSTOM

            iv_name =

            'BP_DATA/CuCoMarketingAttributes'

            iv_target_node_name = 'ATTRIBUTES'

            iv_node_2_bind = Attributes ).


Need to add GLOBAL. for the custom controller.


After


owner->do_context_node_binding(

            iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_CUSTOM

            iv_name =

            'GLOBAL.BP_DATA/CuCoMarketingAttributes'

            iv_target_node_name = 'ATTRIBUTES'

            iv_node_2_bind = Attributes ).

Answers (0)