Skip to Content
0
Former Member
Feb 21, 2007 at 06:49 AM

Calling URL from ICWC View - Error Message Occurs

50 Views

Hi,

Objective: I would like to call URL from ICWC view.

During runtime, I could see the view with link button "Link to Google".

Case I: If I press right click button by putting cursor on "Link to Google",

I can see new window opened for google.com.

Case II: If I press left click button by putting cursor on "Link to Google",

I come across following error message:

"The requested URL /?sap-syscmd=nocookie was not found on this server"

Segment of code for ready information:

View Laout:

...

<htmlb:link id = "link1"

text = "Link to Google"

reference = "http://www.google.com/"

onClick = "MyLinkClick" />

...

Controller class method "DO_HANDLE_EVENT"

...

IF htmlb_event IS NOT INITIAL.

CASE htmlb_event->server_event.

...

WHEN 'MyLinkClick'.

IF htmlb_event->name = 'link'.

DATA: link_event TYPE REF TO CL_HTMLB_EVENT_LINK.

link_event ?= htmlb_event.

navigation->goto_page( link_event->reference ).

return.

ENDIF.

ENDIF.

Valuable suggestions please!

With Regards,

Priya