cancel
Showing results for 
Search instead for 
Did you mean: 

Component Usage Issue

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did you create an instance?

IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

l_ref_cmp_usage->create_component( ).

ENDIF

Former Member
0 Kudos

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

Former Member
0 Kudos

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