cancel
Showing results for 
Search instead for 
Did you mean: 

Navigation between the two components

Former Member
0 Kudos

Hi,

I am for the first time trying to work with multiple components. My task is to navigate from first component's view to the second component's view. I had did the following..

1) created 2 comps say first comp and second comp with first view and second view respectively..

2) in the first comp, i added second comp in the used Dc

in the second comp, i added first comp in the used Dc

3) in the first window i embedded the second view by embed interface view of a component instance and created the navigation link between first view and the embedded second view.

in the second window i embedded the first view by embed interface view of a component instance and created the navigation link between second view and embedded first view.

4) created one button to fire from first view to second view and another button to fire from second view to first view, in the first and second views respectively..

5) i am getting two errors...

Component FirstComp: Cycle in component usage definitions: SecondComp

Component SecondComp: Cycle in component usage definitions: FirstComp

Please help me to recover from this error.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

go through this doc:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a137c339-0b01-0010-a688-a87b88706845]

Regards

Khushboo

Former Member
0 Kudos

Thank u very much for ur reply i will check out.. if thr was any prob means i will intimate u...

Former Member
0 Kudos

Thank u very much for giving a good solution...

Answers (2)

Answers (2)

vmadhuvarshi_
Contributor
0 Kudos

Kandha,

Your approach will not work as it creates a cyclic dependency situation. You can use applications in different components to navigate across them. See [this article|/docs/DOC-8061#12] and [this blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10931] [original link is broken] [original link is broken] [original link is broken];.

Hope this helps.

Vishwas.

Former Member
0 Kudos

Thank u very much for ur reply i will check out.. if thr was any prob means i will intimate u...

former_member205363
Contributor
0 Kudos

Hi,

we have implemented same like this but in different fashion. That was working.

we took master component to embed these two views. In the masterComp, add the individual components and in the view u have to take ViewContainerUIElement. so here we can embed those two views through interfaceviewcontroller.

For calling other view you can use following code.

wdThis.wdGetDisplayScreen1WinInterfaceViewController().wdFirePlugScreen1OUT();

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

Thank u very much for ur reply i will check out.. if thr was any prob means i will intimate u...