Skip to Content
0
Former Member
Feb 18, 2011 at 02:02 AM

Need Help with ONE-CLICK ACTIONS

400 Views

Hi,

I am using ONE-CLICK ACTIONS in a value node and it is not working for me.

I am doing something wrong, don't know what it is. Can you please help?

This is the following steps i had done.

Step 1:

I added the below line in GET_TABLE_LINE_SAMPLE.

thtmlb_oca type crm_thtmlb_one_click_action.

Step 2:This attribute is does is not available my context node, so i created this attribute in my context node - thtmlb_oca.

Step 3: In GET_P_THTMLB_OCA, i added the below code

Case iv_property.

*field type: one click actions

when if_bsp_wd_model_setter_getter=>fp_fieldtype.

Rv_value = cl_bsp_dlc_view_descriptor=>field_type_oca.

*onClick

when if_bsp_wd_model_setter_getter=>fp_onclick.

Rv_value = 'NAVIGATE'. "The Event which is called when hitting the icon

endcase.

I also creted the event handler 'NAVIGATE'

Step 4: In GET_OCA_T_TABLE, the below code is added

data: ls_one_click_action TYPE crmt_thtmlb_one_click_action.

"Put the Icon accordingly

ls_one_click_action-id = 'ERROR'.

ls_one_click_action-icon = 'ico12_error.gif'.

  • ls_one_click_action-text = ''.

ls_one_click_action-tooltip = 'More about the error ...'.

ls_one_click_action-active = 'X'.

append ls_one_click_action to rt_actions.

I had populate the node correctly and the value are displayed on the screen. This thtmlb_oca attribute appears on my screen. It does not have the hyperlink and the action 'NAVIGATE' is not called.

Kindly help.

Thanks in advance

Regards

Shanthi