Skip to Content
0
Former Member
Oct 31, 2006 at 03:31 AM

new page on click of absolute url

47 Views

I need IE to open new page of the absolute url when user click the url on initial page, but as result the new page always replace the inital page but not open a new session, I also refer to the threads in the forum like adding "sap-sessioncmd=open" or "syscmd=nocookie" but still does not work, can anyone give me any suggestion?following is my coding:

Layout of the page1.htm:

<htmlb:link id = "link1"
            text = "google with new session"
            reference = "http://www.google.com"
            target    = "_BLANK"
            onClick   = "LinkClick">
<htmlb:link>

OnInputProcessing:

  if event_id = cl_htmlb_manager=>event_id. " HTMLB event?
    data: lr_htmlb_event type ref to cl_htmlb_event.
    lr_htmlb_event = cl_htmlb_manager=>get_event( request ).
    if lr_htmlb_event is not initial.
      if lr_htmlb_event->server_event = 'LinkClick'.
        call method navigation->use_absolute_url.
        call method navigation->goto_page
          exporting
            url = 'http://www.google.com/ncr?sap-sessioncmd=open'
*          url = 'http://www.google.com/ncr?sap-syscmd=nocookie'
            session = 'NEW'.
      endif.
    endif.
  endif.

Message was edited by: Patrick Yan