Oct 2, 2000 #1 manj Programmer Sep 22, 2000 28 GB How do I go about solving this type of problem: <cfoutput query1> returns many roles </cfoutput> <cfoutput> return a single value <cfoutput> <cfoutput query1> continue displaying initial query1 results </cfoutput> [sig][/sig]
How do I go about solving this type of problem: <cfoutput query1> returns many roles </cfoutput> <cfoutput> return a single value <cfoutput> <cfoutput query1> continue displaying initial query1 results </cfoutput> [sig][/sig]
Oct 2, 2000 #2 Guest_imported New member Jan 1, 1970 0 You have noticed that you cannot nest cfoutputs. I am not 100% sure what you are trying to do, but have you tried the <cfloop query="query1"> approach? cfloops can be nested, and then the simple <cfoutput> tag can be used for the output. Inside a <cfoutput query="">, you can reference any other cf variables by simply placing them in your code wrapped in # signs. Upvote 0 Downvote
You have noticed that you cannot nest cfoutputs. I am not 100% sure what you are trying to do, but have you tried the <cfloop query="query1"> approach? cfloops can be nested, and then the simple <cfoutput> tag can be used for the output. Inside a <cfoutput query="">, you can reference any other cf variables by simply placing them in your code wrapped in # signs.