Skip to Content
avatar image
Former Member

Navigation between the two components

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.....

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 22, 2008 at 03:40 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Sep 20, 2008 at 06:44 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2008 at 07:46 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded