cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding the URL

Former Member
0 Kudos

Is there any option to hide the Web dynpro ABAP Application URL in the browser ...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Portal team did

aaron_morden2
Contributor
0 Kudos

When launching the URL through code, you can hide it.


  DATA: lv_url TYPE string.
  DATA: host TYPE string,
        port TYPE string,
        out_protocol TYPE string.

  CALL METHOD cl_http_server=>if_http_server~get_location
    IMPORTING
      host         = host
      port         = port
      out_protocol = out_protocol.

  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'Z_WEB_DYNPO_APP'
      in_host          = host
      in_port          = port
      in_protocol      = out_protocol
      namespace        = 'sap'
    IMPORTING
      out_absolute_url = lv_url.

  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.

  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).

  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url          = lv_url
      has_menubar  = abap_false
      has_toolbar  = abap_false
      has_location = abap_false
    RECEIVING
      window       = lo_window.

Former Member
0 Kudos

But as far as I understand, the above-mentioned code will not really hide the URL. It just hides the "location bar" (that you cannot change the URL), but you can still see it, or?

At least you can hide the URL by creating an iView for your WD application in portal.

Regards,

Karri

Former Member
0 Kudos

Morden,

I tried the above code. Using that the URL is not getting hidden.

Former Member
0 Kudos

Hope it helps!