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

GET_AC method not working

$
0
0

Hi Guys,

 

I want to add an Action Menu in my one of the field (AET with table).

 

I basically want to open an popup on the click of that action menu. Hopefully i am thinking in right direction.

 

Here When I am clicking on the Action menu my event is not triggering.

 

Please find below the steps I did.

 

1) Generated the GET_AC_***** method of an attribute.

 

 

2) Create one custom class with superclass 'CL_BSP_WD_ACTION_PROVIDER' and redefined method 'IF_BSP_WD_ACTION_DESCR_EXT~BUILD_ACTIONS' with below code

 

 

 

DATA : ls_acts TYPE wcfs_thtmlb_action_menu_item.
     ls_acts-id       = 'act1'.
     ls_acts-text     = 'Lunch/Dine'.
     ls_acts-onselect = 'lunchpopup'.
     ls_acts-disabled =' '.
     ls_acts-type     = if_bsp_wd_action_descriptor=>gc_type_generic_action.
     ls_acts-icon_src = cl_thtmlb_util=>get_icon_url( 'cod_send.gif' ).
     APPEND ls_acts TO et_actions.
     CLEAR ls_acts.

    

3) Added Code in Get_AC_*** method

DATA : lr_action TYPE REF TO ycl_0cf_action_menu.
   CREATE OBJECT lr_action.
   rv_action_descriptor ?= lr_action.

 

4) I have also registered the event in same component (AET Component)

 

 

I kept a debugger on event handler. But its not triggering.

 

I request inputs on same if anyone have worked on same.

 

Best Regards,

Preeti


Viewing all articles
Browse latest Browse all 4552

Trending Articles



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