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

In the same BSP, open a htm from another

hello,

I search in the forum to open a htm page from another when I click a button.

I have only one bsp with 2 pages with flow logic.

I found something like that :

from my "first_page.htm", I use a flag in OnInputprocessing : w_open_page = 'X'.

In the layout, I test my flag

if w_open_flag = 'X'

windows.open(('secondpage.htm', 'width=100, height=200');

endif.

But it doesn't work.

If I put in Oninput processing of my firstpage.htm : navigation->goto_page('secondpage.htm')

it works but I can't manage the size, the toolbar...

Can someone help me please ?

Thanks

Regards

Véronique

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Nov 21, 2007 at 11:25 AM

    you can use the following code

    <htmlb:button id            = "DEFS"
                               text       = "Button Text"
                               onClientClick = "javascript:window.open ('secondpage.htm', '_blank', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=550,left = 200,top = 100');" />

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 10:19 AM

    Hi,

    Here in you your case, you will have to do a bit of mixing between ABAP and JavaScript...

    What you can do is write a openWindow function as follows :

    function openWindow()
    {
    <% IF w_open_flag = 'X' %>
    windows.open(('secondpage.htm', 'width=100, height=200');
    <%ENDIF.%>
    }

    Then in your button, you'll have to call openWindow using onClientClick...but this will only take the previous stored value of w_open_flag, before the server round-trip...

    Hope this helps.

    <b><i>Do reward each useful answer..!</i></b>

    Thanks,

    Tatvagna.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 01:01 PM

    Raja,

    Thanks a lot, it is exactly what I need, and it works. Great !!

    Have a nice day.

    Véronique

    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.