on 11-27-2008 10:04 AM
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
Hi Luchticha,
Instantiate the component atleast once in any of the method of component using code wizard option:
'Instantiate Used Component'.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.