Link to display Iview (or page) from webdynpro
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
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?