Skip to Content
avatar image
Former Member

Link to display Iview (or page) from webdynpro

Hi,

I'm trying to get a link displayed on a developed abap webdynpro, which opens a portal iview.

The WD is already deployed on the portal, i defined a LinkToAction UIElement, and in its associated eventhandler i wrote the code i thought would work:

DATA lo_api_component  TYPE REF TO if_wd_component.
DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.
DATA v_navigation_target TYPE string.

lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).

  v_navigation_target = 'ROLES://portal_content/folder1/folder2/role_id/workset_id/iview_id'.
  CALL METHOD lo_portal_manager->navigate_absolute
    EXPORTING
      navigation_target   = v_navigation_target
*    navigation_mode     = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE
*    window_features     =
*    window_name         =
*    history_mode        = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
*    target_title        =
*    context_url         =
*    post_parameters     = ABAP_FALSE
*    use_sap_launcher    = ABAP_TRUE
*    business_parameters =
*    launcher_parameters =
      .

Where the path 'ROLES://portal_content/folder1/folder2/role_id/workset_id/iview_id' is obviously not the real one. If I manually write the URL

http://host:port/irj/portal?NavigationTarget=ROLES://portal_content/folder1/folder2/role_id/workset_id/iview_id

the iview is displayed right, that is in the content area of the portal. I just can't get it displayed with the link on the webdynpro.

Debugger shows me that the event handler method is called, and no evident error occurs.

Any idea on what i'm doing wrong?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 11, 2011 at 08:21 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2011 at 08:27 AM

    Try to create the url for that target and pass that value to the portal method navigate_abosulte.

    In CL_WDR_UTILITIES, there are methods to construct the URL, "CONSTRUCT_APPLICATION_URL", try to generate URL and pass to the method. Hope it works .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2011 at 08:54 AM

    I tried, then i realized I don't have an application to call, i need to display an iview or a page containing an iview.

    If it matters, the iview is a "KM navigation" one.

    I might add, i already added the role to my portal user, and i also tried changing the EPCFlevel of the page containing my webdynpro to '1' (Javascript allowed).

    Thank you.

    Add comment
    10|10000 characters needed characters exceeded