cancel
Showing results for 
Search instead for 
Did you mean: 

Link to display Iview (or page) from webdynpro

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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 .

Former Member
0 Kudos

Hi,

Please check this..

Chers,

Kris.