My client requirement is - Based on user selection on a certain field of type 'checkbox', a popup window should come where user can key in free text.
We can complete it easily in regular R/3 development. But I am not sure whether it is doable or not in CRM UI.
Please provide your view/suggestions or It would be fine if you can refer some standard SAP component where similar requirement has been taken care.
Really appreciate your time and suggestions.
you have to include this component as a "component usage".
Have a look at component BT115H_SLSO for example.
In component controller CL_BT115H_S_BSPWDCOMPONEN_IMPL->WD_USAGE_INITIALIZE
call method lv_usage->bind_context_node
iv_controller_type = cl_bsp_wd_controller=>co_type_custom
iv_node_2_bind = 'TEXT'
iv_name = 'CUGSText'
iv_target_node_name = 'BTTEXT'.
you can see how it works.
You can call pop using the code below example.
lr_popup = me->comp_controller->window_manager->create_popup( iv_interface_view_name = 'GSURLPOPUP/MainWindow'
iv_usage_name = 'CUGSURLPopup'
iv_title = lv_title ).
lr_cn = lr_popup->get_context_node( 'PARAMS' ).
lr_obj = lr_cn->collection_wrapper->get_current( ).
lr_obj->set_property( iv_attr_name = 'URL'
iv_value = iv_url ).
lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_plain ).
lr_popup->set_window_width( 700 ).
lr_popup->set_window_height( 700 ).