I am trying to populate a drop down box with a query, this part works. I then need to send the information to the next page, I use a JS. I cannot get my variables to populate and go to the correct page. Can anybody help?
Here is the code in question....
function #strFuncID#_FilterShp(strShrAcNr, strDate) {
#strFuncID#_frmKeyEntry.strShrAcNr.value = strShrAcNr;
#strFuncID#_frmKeyEntry.#strFuncAction#.value = 'FilterShp';
#strFuncID#_frmKeyEntry.dtmSelectedDate.value = strDate;
#strFuncID#_frmKeyEntry.intXlsExport.value = 0;
#strFuncID#_frmKeyEntry.submit();
}
----\
<cfform name="#strFuncID#_frmKeyEntry" action="#IPS_objPortalSessionData.strCurrentPath#" method="post">
<input type="hidden" name="#strFuncName#" value="ReportPostcard">
<input type="hidden" name="#strFuncAction#" value="">
<input type="hidden" name="strSelectedOps" value="#FORM.strSelectedOps#">
<input type="hidden" name="dtmSelectedDate" value="#FORM.dtmSelectedDate#">
<input type="hidden" name="dtmEndDate" value="#FORM.dtmEndDate#">
<input type="hidden" name="strShrAcNr" value="">
<input type="hidden" name="strUsrNr" value="">
<select name="strShrAcNr">
<cfloop query="qryShp1">
<option value="#trim(Shr_Ac_Nr)#">#trim(Shr_Ac_Nr)#</option>
</cfloop>
</select>
<input type="Submit" value="Filter" onClick="#strFuncID#_FilterShp('strShpAcNr','dtmSelectedDate');">
</cfform>
Thank you,
Moe-King of the Village Idiots.
"When in trouble,
when in doubt;
Run in circles-
SCREAM & SHOUT!!"
Burma Shave
Here is the code in question....
function #strFuncID#_FilterShp(strShrAcNr, strDate) {
#strFuncID#_frmKeyEntry.strShrAcNr.value = strShrAcNr;
#strFuncID#_frmKeyEntry.#strFuncAction#.value = 'FilterShp';
#strFuncID#_frmKeyEntry.dtmSelectedDate.value = strDate;
#strFuncID#_frmKeyEntry.intXlsExport.value = 0;
#strFuncID#_frmKeyEntry.submit();
}
----\
<cfform name="#strFuncID#_frmKeyEntry" action="#IPS_objPortalSessionData.strCurrentPath#" method="post">
<input type="hidden" name="#strFuncName#" value="ReportPostcard">
<input type="hidden" name="#strFuncAction#" value="">
<input type="hidden" name="strSelectedOps" value="#FORM.strSelectedOps#">
<input type="hidden" name="dtmSelectedDate" value="#FORM.dtmSelectedDate#">
<input type="hidden" name="dtmEndDate" value="#FORM.dtmEndDate#">
<input type="hidden" name="strShrAcNr" value="">
<input type="hidden" name="strUsrNr" value="">
<select name="strShrAcNr">
<cfloop query="qryShp1">
<option value="#trim(Shr_Ac_Nr)#">#trim(Shr_Ac_Nr)#</option>
</cfloop>
</select>
<input type="Submit" value="Filter" onClick="#strFuncID#_FilterShp('strShpAcNr','dtmSelectedDate');">
</cfform>
Thank you,
![[king] [king] [king]](/data/assets/smilies/king.gif)
"When in trouble,
when in doubt;
Run in circles-
SCREAM & SHOUT!!"
Burma Shave