on 05-24-2012 3:26 PM
How to provide a component as f4 help in advanced search ......
My requirement is when i press f4 for a field in advance search i want to display a component ....how can i get this functionality......
Please share related blogs....I have searched in SDN but i haven't got
Thanks In Advance
Hi,
Goto ur search context node class redefine the GET_DQUERY_VALUEHELPS method in that you have write the code.follow the below link it will be helpful ok
http://wiki.sdn.sap.com/wiki/display/CRM/Creating+Dynamic+Value+Help+in+the+Web+UI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vishwanatha...
Yes i had seen the code in GET_DQUERY_VALUEHELPS it has the code for normal f4 & ddlb for fields...
But my question is when we press f4 for a field i want show another search component for that field...
look standard: Business role-SALESPRO->Account managment->Account
In the search view look field: Employee Resp. - Last Name,When we press f4 on this field we get another search component ........
I want to implement that how to implement,Where he had written code for that. I have seen GET_DQUERY_VALUEHELPS there is no code for this field
Thanks In Advance
Hi Shivu,
Try this one Hope this will helpful .
Follow Bellow steps Here i using Product component in search help
1) Create V_getter method
Get_v_product
create object rv_valuehelp_descriptor type cl_bsp_wd_valuehelp_navdescr
exporting iv_outbound_plug = 'OP_SEARCHPRODUCT' . "Give your outbound plug
Befor going implement u should use component usage whichever component required mycase i used product component
2) Implement outbound plug
IF lv_popup IS NOT BOUND.
lv_popup = me->comp_controller->window_manager->create_popup(
iv_interface_view_name = 'SearchHelpWindow' " enter ur interface view used in component usage
iv_usage_name = 'PRODUCTF4' "usage name
iv_title = 'Select Product' ).
ENDIF.
cl_chtmlb_config_utility=>outbound_plug_event_info( importing ev_index = lv_index ).
lv_popup->set_on_close_event( iv_view = me iv_event_name = 'SELECT_PRODUCT'). "use event handler name
lv_popup->open( iv_inbound_plug = 'searchproducts' ).
3)Implement event handler method
data: lr_node type ref to cl_bsp_wd_context_node.
lr_product type ref to if_bol_property_access.
lr_used_product type ref to if_bol_property_access.
lv_plug type seocmpname.
lv_plug = lv_popup->get_fired_outbound_plug( ).
Check lv_plug = 'RETURNRESULT'.
lr_node = lv_popup->GET_CONTEXT_NODE( IV_CNODE_NAME = 'PRD').
lr_product = lr_node->collection_wrapper->getcurrent( ).
check lr_product->get_property_as_value( exporting iv_attr_name ='PRODUCT_GUID'
importing ev_result = lr-product_guid ).
lr_used_product = typed_context->products->get_bo_by_index( iv_index = lv_index ).
check lr_used_product is bound.
lr_used_product->set_property( iv_attr_name = 'PRODUCT_ID'
iv_value = lr_product_guid )
User | Count |
---|---|
7 | |
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.