I have a dynamically poulated dropdown in which the first option is "All"
I already figured out how to do that part, but here is my problem:
I would like to display different results if the user selects All as opposed to a single option.
(i.e. If they select a single policy, I display the policy Name at the top of the page but I would like to include the polciy name in the resulting table if "all" is selected)
Here is my dropdown list:
<cfselect name="Policy_List">
<cfoutput>
<option value="#valuelist(qGetPolicy.PolicyID)#">All</option>
</cfoutput>
<cfoutput query="qGetPolicy">
<option value="#qGetPolicy.PolicyID#">#qGetPolicy.Name#</option>
</cfoutput>
</cfselect>
Here is how I refer to it in my query:
WHERE Limit.PolicyID IN (#Policy_List#)
If I give the ALL option he value of "ALL" instead of "#valuelist(qGetPolicy.PolicyID)#"
and try to change the valuelist later, my query still tries to evaluate the word "ALL"...
Can anybody tell me how to get the value of the selection??
Many Thanks,
Kristine
I already figured out how to do that part, but here is my problem:
I would like to display different results if the user selects All as opposed to a single option.
(i.e. If they select a single policy, I display the policy Name at the top of the page but I would like to include the polciy name in the resulting table if "all" is selected)
Here is my dropdown list:
<cfselect name="Policy_List">
<cfoutput>
<option value="#valuelist(qGetPolicy.PolicyID)#">All</option>
</cfoutput>
<cfoutput query="qGetPolicy">
<option value="#qGetPolicy.PolicyID#">#qGetPolicy.Name#</option>
</cfoutput>
</cfselect>
Here is how I refer to it in my query:
WHERE Limit.PolicyID IN (#Policy_List#)
If I give the ALL option he value of "ALL" instead of "#valuelist(qGetPolicy.PolicyID)#"
and try to change the valuelist later, my query still tries to evaluate the word "ALL"...
Can anybody tell me how to get the value of the selection??
Many Thanks,
Kristine