cancel
Showing results for 
Search instead for 
Did you mean: 

BSP screen in small window

Former Member
0 Kudos

Hi,

I have a BSP application in which I need to show up certain information in a small popup screen on user click on a button.

How to create a BSP page with certain dimensions (like in ABAP - window starting at x..) and open it up as a popup from a BSP screen user click??

Kindly suggest.

Thanks,

Krish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

here is a sample code to open a window:

sample1:

<HTML>

<TITLE>TESTTTTT</TITLE>

<BODY bgcolor=="#ffffff" onUnload="window.open('documents_todo.htm',window.name + 'x','width=600,height=700')">

</BODY>

</HTML>

sample2:

OnClick="window.open(this.href,'_blank',

'width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');

return false;"

Message was edited by: manasa

Former Member
0 Kudos

check the below code. here a button called prin is used and that button is attached to a page called document_print.htm

l_string = 'NewWindowPrint();htmlbevent.cancelSubmit = true;'.

<htmlb:button id = "<%= lw_buttons-id %>"

text = "<%= lw_buttons-text %>"

tooltip = "<%= lw_buttons-text %>"

disabled = "<%= l_disabled %>"

design = "<%= l_design %>"

onClick = "<%= lw_buttons-id %>"

onClientClick = "<%= l_string%>"

width = "90" />

<!--

function NewWindowPrint() {

WindowPrint =

window.open("document_print.htm", "Print", "dependent=yes resizable=yes toolbar=yes");

WindowPrint.focus();

}

orelse you can use the

OnClick="window.open(this.href,'_blank',

'width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');

return false;" in the button attribute

PS: Please assign points accordingly if the suggestions are of any help to you.

Message was edited by: manasa

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Manasa. I got an idea of using script to open my bsp page in a small window.

Thanks,

Krish