Question : coldfusion cfset tag in output query

Hello experts.
Can i use cfset tag in cfoutput query.If yes - how?Below my test code:
<cfquery name="getberuf" datasource="#request.dsn#">
SELECT *
FROM dbo.users_occup
WHERE user_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#session.user_id#">
</cfquery>

<cfoutput query="getberuf">
 <cfset 'form.Beruf_#currentrow#' = '#Beruf_ID#' >
 <cfset 'form.getsubfirst_#currentrow#'= '#BerufSubFirst_ID#' >
 <cfset 'form.getsubsecond_#currentrow#' = '#BerufSubSecond_ID#' >
</cfoutput>

Answer : coldfusion cfset tag in output query

Looks like there's a missing space in between <cfloop ...> and query. Correction

<cfloop  query="getberuf">
   <cfset form["Beruf_"& currentrow] = Beruf_ID >
     <cfset form["getsubfirst_"& currentrow = BerufSubFirst_ID >
     <cfset form["getsubsecond_"& currentrow] = BerufSubSecond_ID >
</cfloop>
Random Solutions  
 
programming4us programming4us