cancel
Showing results for 
Search instead for 
Did you mean: 

WAD: how to create a window?

Former Member
0 Kudos

Hi,

I'd like to make some popup-window when the user pushes a button on the webpage. Anyone knows how to do this in the WAD?

thanks,

Tom

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If you know what you want to do when you click on button it will be easy to send you a sample code...

Here is the sample javascript code which will open an bookmark in new window

<script>

function myBookmark()

{

var url = SAP_BW_URL_Get();

url = url + "&CMD=BOOKMARK";

window.open(url, "Bookmark", "width=800, height=600, menubar=yes, toolbar=no, scrollbars=yes, resizable=yes, location=yes");

}

</script>

<a href="javascript:myBookmark();"> BookMark </a>

Former Member
0 Kudos

Hi,

what I want to do is to show an information message when the user selects too many items from a checkbox group. It seems that there doesn't exist some standard messaging system so I'd like to create a popup myself. It should contain something like:

You've selected too much info...

ok-button

In Java it would have been easy, there you can even code your group that way that the user cannot select more than a certain amount of items from that checkbox...

already thanks for the replies!

Tom

Former Member
0 Kudos

Hi,

I've found out the way to tackle the amount of checked items in the checkboxgroup, just need to know how to create such an information-message-popup. If you could send me the sample code for such a thing, that just would be excellent.

thanks,

Tom

former_member184494
Active Contributor
0 Kudos

Tom,

Opening a new window is easy ... if you want to display just a message , then an alert box should be sufficient ...

have something like this

<script language="javascript">

function alert()

{

alert("Too Many Values Selected");

}

</script>

or if you want to open a new window

<script language="javascript">

<!--

function openit() {

newWindow = window.open('http://', 'myWindow', 'width=628,height=333');

}

// -->

&lt;/script>

You can call these functions through javascript / HTML etc...

Arun

Hope it helps...

Former Member
0 Kudos

What do you want to do with that popup? Depending on what you're trying you might need to use some javascript.