Hi Mike,
> Invalid tag nesting configuration
>
> A query driven CFOUTPUT tag is nested inside a CFOUTPUT tag that
> also has a
> QUERY= attribute. This is not allowed. Nesting these tags implies that you
> want to use grouped processing. However, only the top-level tag
> can specify
> the query that drives the processing.
>
I've had a look at the code for the update form and you've got a couple of
problems.....
Firstly, you're missing a bunch of quote marks from the name attribute on
your input tags.
Secondly, you're missing the >'s from the end of your submit and reset
buttons
Thirdly, you have a nested CFOUTPUT, just as the error says ;o)
Basically, you have the right idea, but CF doesn't allow nested CFOUTPUT
tags, unless you're using the GROUP attribute in the outer CFOUTPUT. What
you need to do is use a CFLOOP for your state select box, like so :
Distributor State:
<SELECT name="distrib_state">
<CFLOOP query="GetState">
<cfif GetState.State_ID IS distrib_state>
<cfset selected_var = "selected">
<cfelse>
<cfset select_var = "">
</cfif>
<OPTION VALUE="#GetState.state_id#"
#selected_var#>#GetState.state_name#</OPTION>
</CFLOOP>
</SELECT><BR>
The CFOUTPUT for the Distributor query will make sure that the CF variables
in the above bit of code get displayed correctly and the CFIF is to make
sure that the distributors state is initially correctly selected from the
complete list of states.
Well, hope that helps.
Regards
Stephen
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]