I am having problems creating a drop down list box. I am not sure what
I am doing wrong. I need it to bring back all the selections with the correct type_description based on the os_type_id select. And when it does not have the computer_id just give me all the selections for os.
I just get #type_description# in the box
Thanks,
Olmos
<cfif IsDefined("Url.jplcomputer_id"
>
<CFQUERY NAME="get_jplcomputer" ....>
select .....and computer_id = #url.computer_id#
</cfquery>
</cfif>
<cfquery name="get_os"
SELECT type_description
......
</cfquery>
Do I need to create 2 queries or combine, Is this the best way of doing this?
This is part of the code I am using that is not working for the dropdown box.
<cfoutput>
<select name="os_type_id">
<cfloop query = "get_computer">
<cfif get_computer.os_type_id is #os_type_id#>
<OPTION Value = "#get_computer.os_type_id#" SELECTED>#type_description#
<cfelse>
<OPTION Value = "#os_type_id#" SELECTED>#type_description#
</cfif>
</cfloop>
</select>
</cfoutput>
I am doing wrong. I need it to bring back all the selections with the correct type_description based on the os_type_id select. And when it does not have the computer_id just give me all the selections for os.
I just get #type_description# in the box
Thanks,
Olmos
<cfif IsDefined("Url.jplcomputer_id"

<CFQUERY NAME="get_jplcomputer" ....>
select .....and computer_id = #url.computer_id#
</cfquery>
</cfif>
<cfquery name="get_os"
SELECT type_description
......
</cfquery>
Do I need to create 2 queries or combine, Is this the best way of doing this?
This is part of the code I am using that is not working for the dropdown box.
<cfoutput>
<select name="os_type_id">
<cfloop query = "get_computer">
<cfif get_computer.os_type_id is #os_type_id#>
<OPTION Value = "#get_computer.os_type_id#" SELECTED>#type_description#
<cfelse>
<OPTION Value = "#os_type_id#" SELECTED>#type_description#
</cfif>
</cfloop>
</select>
</cfoutput>