on 07-18-2007 4:22 PM
Hi All,
I've a problem with component usage. Hope someone could help me.
I've 2 DCs.
DC1 has 2 components and 2 public parts (one for each component). A ViewB in CompB raises an event, EventB, in the interface controller. CompA should react to this event and should update its ViewA's content.
DC2 has one component. DC2 uses ViewA and ViewB from DC1 (component usages and interface views). DC2 has its own View2 which also subscribes to event from CompB. (This DC2 has a master view which has ViewContainerElements to embed ViewA ViewB and View2).
The issue is: In DC2, View2 successfully reacts to EventB, BUT CompA does not resopnd to EventB.
I'm wondering if its something to do with component usages.
Thanks in advance,
Rajit
Did you create an instance?
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->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.
Thanks to both of you.
Satish,
I dont use plugs. All three views are in ViewContainerUI Elements. All the views are active all the time.
Singh,
These components are "createOnDemand", so the code you mentioned is automatically done by the framework. By the way, this is Java WebDynpro.
Thanks,
Rajit
Message was edited by:
Rajit Srinivas
Hi Srinivas,
If ur componentA view is active then u can caught the event.
when u fire a plug then it will be caught only when view is ACTIVE.U can do this by using viewset
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.