cancel
Showing results for 
Search instead for 
Did you mean: 

component usage in POPUP

Former Member
0 Kudos

Hy, I am using component usage in a Popup but the following error appears when I try to get the interfacecontroller.

DATA lo_interfacecontroller TYPE REF TO ziwci_net310_12_comp2 .

lo_interfacecontroller = wd_this->wd_cpifc_costumer_booking( ).

lo_interfacecontroller->showcustomers(

iv_customer_id = lv_customid " scustom-id

).

Component Usage COSTUMER_BOOKING Does Not Have an Active Component

everything has been activated and I used the same code before when I showed a component usage in a viewContainerUIElement instead of showing it in a popup.

what am I doing wrong?

thanks for help

luchticha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Luchticha,

Instantiate the component atleast once in any of the method of component using code wizard option:

'Instantiate Used Component'.

Regards,

Rohit

Former Member
0 Kudos

Hello ,

Use the following code . You missed out to instantiate the component .

DATA lo_interfacecontroller TYPE REF TO ziwci_net310_12_comp2 .

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_costumer_booking( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

lo_cmp_usage->create_component( ).

ENDIF.

lo_interfacecontroller = wd_this->wd_cpifc_costumer_booking( ).

lo_interfacecontroller->showcustomers(

iv_customer_id = lv_customid " scustom-id

).

Hope this will solve your problem

Regards

Vivek

Answers (0)