cancel
Showing results for 
Search instead for 
Did you mean: 

to open a custom component as popup in a standard component.

Former Member
0 Kudos

Hi,

I have created a custom component with 2 views.

1st view is added to the standardActivity component BT126H_CALL as assigment block.

1st view is a table view with 6 columns ... out of the 6 1 column is a 'Demand letter no' which is also a hyperlink.

2nd view is a form view.

Now in the activity page, when clicked on the 1st views 'Demand letter no' row I want the 2nd view to popup.

I know how to call 2nd view from 1st view in the custom component itself. .according to this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16463.....I [original link is broken] [original link is broken] [original link is broken] followed the same but it through error saying ' CX_BSP_WD_INCORRECT_IMPLEMENT... define navigation click. where do i have to create the navigation link on the custom component or the standrad activity BT126H_CALL.

Also I went through this link: http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2....... but still not happeing....I think i have to do some more changes....Please guide me on this.

Thanks,

Jaya.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192716
Contributor
0 Kudos

Hi Jaya,

These are the steps to call view 2 as a popup,

1. In the custom component add a new window and assign view2 to that window in runtime repository.

2. In view 1 use this code ,


 CALL METHOD comp_controller->window_manager->create_popup
      EXPORTING
        iv_interface_view_name = '<second window name'
        iv_usage_name          = if_bsp_wd_window_manager=>co_own_window
        iv_title               = ' Title '
      RECEIVING
        rv_result              = lr_popup_display.

Regards,

Arun

Former Member
0 Kudos

Hi Arun,

This is the error.

Exception Class CX_BSP_WD_INCORRECT_IMPLEMENT - Window 'ZDEMANDLETTER_V/SecondWindow' is not defined in the component 'BT126H_CALL'

Method: CL_BSP_WD_COMPONENT_USAGE=>GET_INTERFACE_VIEW_CONTR

Do I have to do anything in the standard component.

My code:

lv_popup = me->comp_controller->window_manager->create_popup(

iv_interface_view_name = 'ZDEMANDLETTER_V/SecondWindow'

iv_usage_name = if_bsp_wd_window_manager=>co_own_window

iv_title = 'Popup' ).

lv_popup->set_window_width( iv_width = 600 ).

lv_popup->set_on_close_event( iv_view = me iv_event_name = 'EH_ONRETURN').

lv_popup->open( 'zinteraction' ). " what will I pass here ... zinteraction is my second view name .

ZDEMANLETTER_V is the component name.

SecondWindow is the second window name.

Zinteraction is the second view name.

Thanks,

Jaya.

former_member192716
Contributor
0 Kudos

Hi,

This code should be written in controller class method of view1.

lv_popup->open( 'zinteraction' ). ---> here you can pass the collection and the inbound plug. both are optional parameters.

Regards,

Arun

Former Member
0 Kudos

Hi,

I have the event handler created in the controller class. So when clicked on the hyperlink the event handler is called EH_ONINTERACTIONDIALOG. In this I have coded.

Do I have to create the inbound plug for the window or the view .

But why is it giving the error for not finding the view in standard component. In standard component is there any changes to be doen do I have to add the second view to the standard component.

What are collections.

Thanks,

Jaya.

former_member192716
Contributor
0 Kudos

Hi Jaya,

I think the problem is with missing interface view. In your custom component add view1 and view2 to your component interface in runtime repository.

Regards,

Arun

Former Member
0 Kudos

Hi,

I have added the views to respective windows.

I have added both the windows to componentInterface.

I have added the interface view to componentusages.

Do I have to create inbound plug for the window.....and also are you sure that nothing needs to be added in the standard component.

really stuck .... need to finish this by tomorrow.

CX_BSP_WD_INCORRECT_IMPLEMENT - Window 'ZDEMANDLETTER_V/SecondWindow' is not defined in the component 'BT126H_CALL'

Thanks,

Jaya.

Edited by: Jaya Nair on Jul 23, 2010 3:54 PM

Former Member
0 Kudos

Hi Arun,

Thanks for guiding me all through..... I did't wanted to create a 2nd window But when you said create a 2nd window and proceed So then I followed this link ....http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2..........So Now it works fine...the 2nd view shows up as a popup window......But Now I wanted to read/pass the value 'Demand letter no' on which I clicked into the 2nd view ...... So trying that ....I know to pass it with in the custom component and standard to custom with modal node , But since this is a 2nd window in th custom component I am a bit confused with the steps. If you have the code please help me with this also.

Thanks,

Jaya.

Former Member
0 Kudos

Hi Arun,

Thanks for guiding me all through..... I did't wanted to create a 2nd window But when you said create a 2nd window and proceed So then I followed this link ....http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2..........So Now it works fine...the 2nd view shows up as a popup window......But Now I wanted to read/pass the value 'Demand letter no' on which I clicked into the 2nd view ...... So trying that ....I know to pass it with in the custom component and standard to custom with modal node , But since this is a 2nd window in th custom component I am a bit confused with the steps. If you have the code please help me with this also.

Thanks,

Jaya.

Answers (0)