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

How to call Event from Viewset to View with in the component

$
0
0

Hi,

I have a method in Viewset which will raise the popup.   now i want to call this method in view for field input.

i have tried this below code but not working.. this below code i have written in the current event method: SCONSULT

*DATA:

*    lr_window TYPE REF TO cl_bsp_wd_window,

*    lr_viewset      TYPE REF TO cl_bsp_wd_view_controller.

**

*  lr_window ?= me->get_subcontroller_by_viewname( 'BP_HEAD.AccountViewSet' ).

*  if  lr_window IS BOUND.

**

*    TRY.

*        lr_viewset ?= lr_window->get_subcontroller_by_viewname( 'BP_HEAD/AccountViewSet' ).

*      CATCH cx_sy_move_cast_error.

*    ENDTRY.

*    CHECK lr_viewset is bound.

*    CALL METHOD lr_viewset->('EH_ONCUST').

*  endif.





i created a get_v method for field in my view and added the below code

CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_navdescr

     EXPORTING

       iv_outbound_plug = 'OP_SCUST'.

now i have created a get_p method and written below code..

CASE iv_property.

     WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

       rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.

    WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

       rv_value = 'SCONSULT'.

if i am clicking the f4help for field ...outbound plug or event is not triggering to get the popup.

 

 

 

pls provide some inputs where i am doing wrong.

 

Regards,

Venkat


Viewing all articles
Browse latest Browse all 4552

Trending Articles



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