I really never figured out when I click on the radio button if it can pass a variable to the program that creates the drop down list. So instead I was able to change the datesource when I click on the radio button which works just as well but I had to create the additional .fex's.
Below is the code i added to my html page:
<script type=text/javascript>
function setdatasource(ImpExp)
{
if (ImpExp=="mrka_6_year_trend_export" || ImpExp=="mrka_vol_dol_field_exp")
{
document.getElementById("combobox2").setAttribute("datasource","mrka_exp_volume.fex");
document.getElementById("combobox3container").style.display="none";
document.getElementById("combobox4").setAttribute("datasource","mrka_exp_category.fex");
document.getElementById("combobox5").setAttribute("datasource","mrka_exp_subcategory.fex");
document.getElementById("combobox6").setAttribute("datasource","mrka_exp_type.fex");
document.getElementById("combobox7").setAttribute("datasource","mrka_exp_bulkbottle.fex");
document.getElementById("combobox8").setAttribute("datasource","mrka_exp_size.fex");
document.getElementById("combobox9").setAttribute("datasource","mrka_exp_alcohol.fex");
document.getElementById("combobox10").setAttribute("datasource","mrka_exp_value.fex");
document.getElementById("combobox11").setAttribute("datasource","mrka_exp_other.fex");
document.getElementById("combobox12").setAttribute("datasource","mrka_exp_commodity.fex");
document.getElementById("combobox13").setAttribute("datasource","mrka_exp_yrenddate.fex");
}
else
{
document.getElementById("combobox2").setAttribute("datasource","mrka_imp_volume.fex");
document.getElementById("combobox3").setAttribute("datasource","mrka_imp_dollar.fex");
document.getElementById("combobox3container").style.display="block";
document.getElementById("combobox4").setAttribute("datasource","mrka_imp_category.fex");
document.getElementById("combobox5").setAttribute("datasource","mrka_imp_subcategory.fex");
document.getElementById("combobox6").setAttribute("datasource","mrka_imp_type.fex");
document.getElementById("combobox7").setAttribute("datasource","mrka_imp_bulkbottle.fex");
document.getElementById("combobox8").setAttribute("datasource","mrka_imp_size.fex");
document.getElementById("combobox9").setAttribute("datasource","mrka_imp_alcohol.fex");
document.getElementById("combobox10").setAttribute("datasource","mrka_imp_value.fex");
document.getElementById("combobox11").setAttribute("datasource","mrka_imp_other.fex");
document.getElementById("combobox12").setAttribute("datasource","mrka_imp_commodity.fex");
document.getElementById("combobox13").setAttribute("datasource","mrka_imp_yrenddate.fex");
}
}
Then in my drop down list i left the datasource blank.
Volume:
SELECT id=combobox2 style="LEFT: 120px; WIDTH: 300px; POSITION: absolute"
name=Volume
newchainnumber="0"
datasource=" "
datatype="1"
sourcetype="typeFex"
ibic_server="EDASERVE"
ibiapp_app="mrkanalysis"
cacheruntimedata="0"
chainnumber="0"
inchainindex="2"
addalloption="1"
dynalldisplayvalue="All Volumes"
/SELECT
Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats