on 01-02-2015 6:04 AM
Dear All, we have installed CRM in our organization. In CRM whenever i am going in Account -> account management -> search party name and then trying to send him mail by clicking on hyperlink but outlook window is not pop-up on that time. can any buddy tell me how to do that configuration.please help me...
Hello Parkshit,
to achieve your goal you'll need to redefine a get_p-method of the appropriate field. I can guess you're talking about STRUCT.E_MAILSMT field from STANDARDADDRESS context node of BP_ADDR/StandardAddress view. So go ahead and completely redefine the GET_P_E_MAILSMT method with the code below. It will switch to client-side click instead of server-side and also will provide correct onclick value (as "mailto:" concatenated with email address) which will make an outlook new mail popup when pressed.
CONSTANTS mc_protocol TYPE string VALUE 'mailto:'.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.
IF IV_DISPLAY_MODE = abap_true.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_link. "cl_bsp_dlc_view_descriptor=>field_type_event_link.
ELSE.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
ENDIF.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
" rv_value = 'email'. "#EC NOTEXT
rv_value = me->collection_wrapper->get_current( )->get_propery_as_string( iv_attr_name = 'E_MAILSMT' ).
IF NOT rv_value CP |{ mc_protocol }*| AND rv_value IS NOT INITIAL.
rv_value = mc_protocol && rv_value .
ENDIF.
ENDCASE.
Hope this will help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.