cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get Popup view within the customcomponent

Former Member
0 Kudos

Hi Experts,

                 In crm webui in IC agent channel  i created the custom component and i created the custom view, in that custom view i made one field (Payment ID) as HyperLink, By clicking on that Payment ID Field it has to  show the 'Payment Details' for the selected 'Payment ID'  value as a Popup Window with Close button event, but i dont know how to create it, Please help me how to achieve it.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Ravi

  One of the way to call popup as your requirement follow below mentioned steps

  • Create Component Usage CU_POPUP of Payment Details window in runtime repository.
  • Add below code in your event handler

   IF gr_popup IS NOT BOUND.
     lv_title = 'My Popup'.
     gr_popup = comp_controller->window_manager->create_popup(
                 iv_interface_view_name = '<component name>'
                 iv_usage_name          = 'CU_POPUP'
                 iv_title               = lv_title
                 ).

     gr_popup->set_window_height( iv_height = 400 ).
     gr_popup->set_window_width( iv_width = 400 ).

   ENDIF.
   gr_popup->open( ).


Please Reward points if useful.

Regards

Abhishek