on 12-05-2009 4:26 AM
Hi all,
I am getting the following error while accessing a method from one component to another..
ERROR : Component Usage DEMO Does Not Have an Active Component
In the component1 of a method i am having a success message .. i am calling that method from another component Component2..
While executing the component2 I am getting this error.
Can anyone help me out of this error.
Ragards,
Susil.
Hi,
Create instance for the component using pattern. Instance for the used component is NA.
Regards,
Satish S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you are getting this problem because,you might not have the active component that is reused...This means the second component from which you are calling the method....it should be in the running mode.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,guy
you must create a IF_WD_COMPONENT_USAGE.
LO_INTERFACCONTROLLER TYPE REF TO IF_WD_COMPONENT_USAGE,
LO_INTERFACECONTROLLER TYPE REF TO ZIWCI_DYLAN_SUBCOMPONENT(called component interface name)
LO_INTERFACCONTROLLER = WD_THIS->WD_CPUSE_ZDYLAN_SUBCOMPONENT( ).
IF LO_INTERFACCONTROLLER->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_INTERFACCONTROLLER->CREATE_COMPONENT( ).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Lekha,
I have done every thing perfectly..
When i call the method in WDDOINIT i am getting this error and when i call the method in an action button and when the action got triggered its working perfectly..
What is the problem?
Regards,
Susil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have you isntantiated the used compoenent...
Wehn added as a usage under properties tab of component then you must also have it under the properties fo both the component controller and in the view whtere you are trying to access the methods...
I guess you might have not done this...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.