Drop down box for returned rows? [message #162888] |
Fri, 19 May 2006 12:28 |
Eclipse User |
|
|
|
Originally posted by: cruzd.alum.rpi.edu
Is there a way in BIRT to have a the returned row in a dataset display in
a dropdown box in a BIRT report? Is there anything in BIRT that supports
this? Is it possible to do this via or in a txt box as HTML/dynamic text
or javascript? Thanks.
|
|
|
|
Re: Drop down box for returned rows? [message #163433 is a reply to message #163227] |
Mon, 22 May 2006 15:08 |
Eclipse User |
|
|
|
Originally posted by: cruzd.alum.rpi.edu
Hey Peter,
Basically i'm following this HTML dropdown box example i found on this
page.
http://www.htmlcodetutorial.com/linking/linking_famsupp_114. html.
I tried copying and pasteing the code into a BIRT text box with the
HTML/Dynamic Text selected. It doesn't seem to work.
Below is my HTML code that i'm trying.
<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM
ACTION="../cgi-bin/redirect.pl"
METHOD=POST onSubmit="return dropdown(this.gourl)">
<SELECT NAME="gourl">
<OPTION VALUE="">Choose a Destination...
<OPTION VALUE="http://www.google.com" >google
<OPTION VALUE="http://www.cnn.com" >cnn
<OPTION VALUE="http://www.ninthwonder.com" >Ninth Wonder
</SELECT>
<INPUT TYPE=SUBMIT VALUE="Go">
</FORM>
</BODY>
</HTML>
|
|
|
Powered by
FUDForum. Page generated in 0.03251 seconds