Skip to Content
author's profile photo Former Member
Former Member

Navigation from one Main View to two other Views

Hi All,

I am developing a Java WebDyn application which comprises of one MainView which has options to connect to two other views through a linktoaction element- View1 and View2

I have created two outbound plugs for the MainView and one inbound plug for each of View1 and View2 respectively.

I have also created two Navigational Links, one from MainViewOutbound to View1Inbound. The other from MainViewOutbound to View2Inbound.

However, once I deploy the application, only View1 is displayed. But, linktoaction for View2 says no navigational link even though I have created.

I have seen few posts on this forum related this question. But, I am unable to figure out the exact cause. Please help me on this.

Thank You.

Regards,

Suyukti B N

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 11:04 AM

    Hi Suyukti,

    I hope you have methods for both linkToAction items i.e you have two separate links for 2 views. If yes, and you have written firePlug method two views seperately then there should be some issue with navigation links or plugs.

    If that is not the case, please post method code which trigeers fire plug.

    Regards,

    Ganga.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 11:10 AM

    Hi,

    Thanks for the reply.

    Yes I have written Fire Plug methods as below :

    ********************

    1)

    public void onActiontoInsertEmployeePage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

    {

    //@@begin onActiontoInsertEmployeePage(ServerEvent)

    wdThis.wdFirePlugToInsertEmployee();

    //@@end

    }

    2)

    //@@begin javadoc:onActiontoDisplayOnSearchPage(ServerEvent)

    /** Declared validating event handler. */

    //@@end

    public void onActiontoDisplayOnSearchPage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

    {

    //@@begin onActiontoDisplayOnSearchPage(ServerEvent)

    wdThis.wdFirePlugToDisplayonSearch();

    //@@end

    }

    ********************

    Regards,

    Suyukti

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Suyukti,

      Since code is correct only, please check navigation links & plugs carefully once more.

      Use reload and rebuild and try to run.

      If taht alos doe not work,try closing and opening NWDS and checking navigation links and plugs.

      regards,

      ganga.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 11:15 AM

    Hi,

    If I could understand your scenario correctly , you are trying to achive

    Mainview->Link To URL -> View 1

    ->Link To URL -> View 2

    "However, once I deploy the application, only View1 is displayed. But, linktoaction for View2 says no navigational link even though I have created."

    To make MainView as the default view rendered when the application is deployed set he default property of the Mainview from the window.

    And all the code which fire the plugs should be in mainView.

    Regards

    Ayyapparaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 11:22 AM

    Hi,

    View1 to View2

    - Create inBound to view1 and outBound to view2

    -Link ibBound to outBound

    -Create an action ToView2

    -assign this action to the LinkToAction

    -in the implementation of the action ToView2 write the following code

    wdThis.wdFirePlug<<ToView2>>();

    and same for view2 to view1

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2008 at 12:05 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 08:50 AM

    Dear All,

    Thank you for all your replies so far. However I am still facing the same issue.

    Below are the steps I have verified as you have mentioned :

    1) Yes, the scenario I am trying to achieve is :

    MainView---- LinktoAction1 -----View1

    MainView---- LinktoAction2 -----View2

    MainView is the default view and all the code which fire the plugs are written in this.

    2) I have verified the navigation links and are all correct. Reload + rebuild + restart of IDE dint work 😔

    3) The inbound and outbound that I have created are as below :

    for MainView, I have two outbounds. For View1 I have one inbound and for View2 I have one inbound.

    4) I have drawn the navigational links between the plugs.

    Please could you help me if I need to verify any other step?

    Do I have to include any conditions for this? Or is there any bug associated with the IDE for this?

    Please suggest.

    Regards,

    Suyukti

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 10:14 AM

    Hi suyukti,

    try these things

    1.first create the view set.

    2.embed your second and third view in the view set.

    3.create the outbound plug to the main view and inbound pulg to second and third view.

    4.create the navigation links by using these outbound plug to both the inbound plug.

    5.use these u have both the views displayed in single action.

    Regards,

    satheshkumar.R

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 10:34 AM

    Dear All,

    Thanks for your inputs. The plugs are working for me.

    There was some problem with my IDE. Rebooting my system worked.

    Regards,

    Suyukti

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.