cancel
Showing results for 
Search instead for 
Did you mean: 

Need a pop-up on "navigation->goto_page()

Former Member
0 Kudos

Hi All,

I would like to open a new window when the following code is executed:

navigation->goto_page( 'test.htm' ).

Right now, this just takes to 'test.htm' within the same Internet Explorer window. Is there a parameter I can use in this context to actually open a new (pop-up) window on navigation->goto_page command?

Thanks!

Roman D.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Roman,

i am not really sure, but i think that there is no parameter which you can use (in your case with ...->goto_page). I solved this by using a button

<htmlb:button id = "g_list"

onClientClick = "window.open('fg.htm')" />

Maybe this is a start for your solution.

Thorsten

PS

If you have to deliver parameters to the new side, than you can use it like this:

<htmlb:button id = "g_list"

onClientClick = "window.open('fg.htm?PARAM_NAME=<%= PARAM_VALUE %>')" />

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Using the navigation component you'll not be able to open the page in a new window, a new window is primarily a client side function.

Alternatively the target in the form tag has to be specified as = “_new” this will open a new window every time the form is submitted.

In case you are using a button to trigger the said event you could consider using the OnClientClick as well as the OnClick event available…

In the on client click event call the JavaScript as under.

window.open('../<Application>/test.htm,'_new' ,'width=380,height=155,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');

and in the OnInputProcessing event, if it is required, you could navigate to some other page in the main window, or in the window your event was triggered in.

*****************Example*************

function open()

{

window.open('../<App name>/<page name: test.htm>’,'_new' ,'width=380,height=155,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');

}

*********The HTMLB tag for the same

<htmlb:button id="btn_text" text="go" onClientClick = "open();" onClick="btn_go"/></htmlb:form>

*************OnInputProcessing********

DATA: id TYPE string.

IF event_id = cl_htmlb_manager=>event_id.

DATA: htmlb_event TYPE REF TO cl_htmlb_event.

htmlb_event = cl_htmlb_manager=>get_event( runtime->server->request ).

id = htmlb_event->if_htmlb_data~event_id .

CASE id.

WHEN 'btn_text'.

navigation->goto_page('SomeOtherPage.htm').

ENDCASE.

ENDIF.