Hello,<br />
<br />
I used this example to integrate the parameters into the report<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/modules/wfdownloads/singlefile.php?cid=2&lid=69'>Periodically Reload BIRT Report - Designs & Code - BIRT Exchange</a><br />
<br />
Currently I have several combo boxes that are used to filter data in the report (they are only visible for HTML output) and it works very well. Unfortunately these combo boxes are static, i.e. the options are hard coded.<br />
Here is an example<br />
<br />
<form name="ParamForm"> <br />
Scenario: <select name="Scenarios" onchange="reloadPage();"><br />
<option value="4" <VALUE-OF>if (params["scenario"].value=="4") {"selected";} else{"";}</VALUE-OF>>Scenario 1</option><br />
<OPTION VALUE="1"<VALUE-OF>if (params["scenario"].value=="1") {"selected";} else{"";}</VALUE-OF>>Scenario 2</OPTION><br />
</select><br />
<script type="text/javascript"><br />
function reloadPage() {<br />
<br />
var temp = new String(location.href);<br />
var targetURL = new String();<br />
<br />
if(temp.indexOf("__overwrite=") != -1 ){<br />
targetURL = temp.substring(0, temp.indexOf("&__overwrite") -1);<br />
}else{<br />
targetURL = temp;<br />
}<br />
<br />
targetURL += "&__overwrite=true";<br />
var select_scenario=document.ParamForm.Scenarios;<br />
<br />
targetURL += "&scenario=" + select_scenario.options[select_scenario.selectedIndex].value;<br />
location.replace(targetURL);<br />
<br />
return false;<br />
}<br />
<br />
</script><br />
</form><br />
<br />
<br />
However, what do you think is the best way to populate the combo box from one of the data sets in the report?<br />
<br />
Best regards,<br />
<br />
SK