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

Portal navigation problem!

Hello,

I have two iViews each one linked with ABAP Web Dynpro Applications (say ZWD_APP1 and ZWD_APP2). Now, what i need is that if i click on a button in ZWD_APP1 then ZWD_APP2 should open in a new window without portal and browser toolbars. To achieve this i wrote following code in the onClick method of ZWD_APP1:

data lr_componentcontroller type ref to ig_componentcontroller.
  data l_api_componentcontroller type ref to if_wd_component.
  data lr_port_manager type ref to if_wd_portal_integration.

  lr_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).
  lr_port_manager = l_api_componentcontroller->get_portal_manager( ).

  data: navigation_target type string,
        navigation_mode   type string,
        window_name       type string,
        lt_param          type wdy_key_value_table,
        ls_param          type wdy_key_value.

  navigation_target = 'ROLES:portal_content/ta_content/iv/crm/ZWD_APP2'.
  navigation_mode   = 'EXTERNAL'.

 call method lr_port_manager->navigate_absolute
    exporting
      navigation_target   = navigation_target
      navigation_mode     = navigation_mode
*      window_features     = navigation_data-window_features
*      window_name         = window_name
*      history_mode        = navigation_data-history_mode
*      target_title        = navigation_data-target_title
*      context_url         = navigation_data-context_url
*      post_parameters     = abap_false
*      use_sap_launcher    = abap_true
*      business_parameters = lt_param
*      launcher_parameters = launcher_parameter_list.
  .

But when i execute and click on the button, a new window does get open but i get the following error message:

No portal desktop is defined for this user.If this problem persists, contact your system administrator.

And also the browser toolbars aren't disabled. What exactly am i doing wrong here? After this i changed the Object properties for ZWD_APP2 according to the following (main ones):

Add Padding Inside Tray: Yes
Allow Client-Side Caching: Yes
Application Name: ZWD_APP2
Application Parameters:
Authentication Scheme: default
Can be Merged: Yes
Default Entry for Folder: No
Entry Point: Yes
Height Type: FIXED
Initial State - Open or Close: Open
Initial State of Navigation Panel - Automatic
Invisible in Navigation Areas: No
Launch in New Window: Display in Separate Window
Name: ZWD_APP2
Namespace: sap
Object is a Template: No
Platform: Web Dynpro for ABAP
Tray Type: PLAIN
Web Dynpro Client: Plain HTML
Window Features: fullscreen=yes

And after this i disabled the navigation_mode line in the ZWD_APP2 onClick method according to following code and then if i execute and click on the button in ZWD_APP1 then the ZWD_APP2 opens in the same content area and not i a new window.

 data lr_componentcontroller type ref to ig_componentcontroller .
  data l_api_componentcontroller type ref to if_wd_component.
  data lr_port_manager type ref to if_wd_portal_integration.

  lr_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_api_componentcontroller = lr_componentcontroller->wd_get_api( ).
  lr_port_manager = l_api_componentcontroller->get_portal_manager( ).

  data: navigation_target type string,
        navigation_mode   type string,
        window_name       type string,
        lt_param          type wdy_key_value_table,
        ls_param          type wdy_key_value.

  navigation_target = 'ROLES:portal_content/ta_content/iv/crm/ZWD_APP2'.
  navigation_mode   = 'EXTERNAL'.

 call method lr_port_manager->navigate_absolute
    exporting
      navigation_target   = navigation_target
*      navigation_mode     = navigation_mode
*      window_features     = navigation_data-window_features
*      window_name         = window_name
*      history_mode        = navigation_data-history_mode
*      target_title        = navigation_data-target_title
*      context_url         = navigation_data-context_url
*      post_parameters     = abap_false
*      use_sap_launcher    = abap_true
*      business_parameters = lt_param
*      launcher_parameters = launcher_parameter_list.
  .

Can somebody please guide me here? I am unable to figure out the right configuration to get ZWD_APP2 open in a new window without any toolbars.

Also FYI, i have created a workset to which i assigned ZWD_APP1 and this workset is assigned to a role which is assigned to my user id. Also all of the Portal objects have the Everyone group with End User option checked.

Thanks and Regards,

Vasu

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 11:30 AM

    Vasu,

    I don't think u should do all this.

    Just write both the applications in one project and there u can achieve this by using the concept of "Inter-Application Communication".

    The doc. for the Inter-Application Communication can be found in the webdynpro tutorials http://help.sap.com/saphelp_nw70/helpdata/en/67/c0a967bbd8ad4bb536bbd95344197a/frameset.htmhttp://help.sap.com/saphelp_nw70/helpdata/en/67/c0a967bbd8ad4bb536bbd95344197a/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/67/c0a967bbd8ad4bb536bbd95344197a/frameset.htm>

    Hope this may solve ur problem.

    Feel free to ask if u have more queries.

    Mr.Chowdary

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2007 at 11:42 AM

    hi

    Message was edited by:

    Krishna Kishore Reddy Kondu

    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.