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

Which kind of navigation to use?

Hi,

my project / portal structure is as follows:

- Role 1

- Workset 1

- Page 1

- iView 1 (Web Dynpro)

- Role 2

- Workset 2

- Page 2

- iView 2 (Web Dynpro)

Is it possible to navigate via absolute / relative navigation from "web dynpro iView 1" to "web dynpro iView 2" although they are part of different portal roles?

Or do I object based navigation for such a navigation?

Kind regards,

Marc

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 03:39 PM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I tried with absolute navigation but without success so far! Nothing happens, when I trigger the navigation, i.e. the target window is not displayed. Unfortunately there is also no error displayed so I can only guess what is going wrong! I'm using the following code for navigation within an action handler method:

      String targetUrl = "ROLES://portal_content/administrator/super_admin/super_admin_role/com.sap.portal.system_administration/com.sap.portal.support/com.sap.portal.web_dynpro_test_tools/com.sap.portal.portal_navigation";
      
              WDPortalNavigation.navigateAbsolute(
                  targetUrl,
                  WDPortalNavigationMode.SHOW_INPLACE,
                  (String) null,
                  (String) null,
                  WDPortalNavigationHistoryMode.NO_HISTORY,
                  (String) null,
                  (String) null,
                  (String) null,
                  true);

      The code should be executed when user clicks on the "Navigate to..." button.

      I have already checked the following prerequisites:

      - used user has both, the source and target portal role assigned

      - the navigation target url is equal to the iView id displayed in "portal content administration quick info"

      I expected to get an error when executing my application as standalone application (outside of the portal) and triggering the portal navigation but curiously no error is displayed.

      Could you please explain me why and what I'm doing wrong?

      Kind regards,

      Marc

  • Posted on Jun 17, 2008 at 07:43 AM

    Hi,

    Just try giving QuickLinks to the pages in portal and use a LinkToURL UI

    Regards,

    Srinivas.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      since I have to display the target iView or page in a new window with portal navigation I do need to specify the WDPortalNavigationMode and have therefore to use the WDPortalNavigation.navigateAbsolute method, don't I?

      So my desired code should look like:

      String targetUrl =
                  "ROLES://portal_content/administrator/super_admin/super_admin_role/com.sap.portal.system_administration/com.sap.portal.support/com.sap.portal.web_dynpro_test_tools/com.sap.portal.portal_navigation";
      
              WDPortalNavigation.navigateAbsolute(
                  targetUrl,
                  WDPortalNavigationMode.SHOW_EXTERNAL_PORTAL,
                  (String) null,
                  (String) null,
                  WDPortalNavigationHistoryMode.NO_HISTORY,
                  (String) null,
                  (String) null,
                  (String) null,
                  true);

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:38 AM

    Hi,

    I could solve the above mentioned problem by correcting application host property of my portal system which my web dynpro application is running on. The property was set to "localhost" and I tested with an explicit dns name like vm04s. Changing the host to localhost in the url showed the correct solution. I can't really understand why I does work when explicit host is replaced localhost. So if there is someone understanding this, please let me know.

    Regards,

    Marc

    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.