Invalid tag nesting configuration

Posted on 2009-05-21
Medium Priority
Last Modified: 2013-12-24
Am trying to perform two CFOUTPUTS using two differnet query attributes. Help please.
this one works
<cfoutput query="MasterCause"><cfif MasterCause.CauseID eq 4>#MasterPhrase.Part1# #MasterVariables.VariableDemoName# #MasterPhrase.Part2A# #MasterCause.CausePhrase#<br /></cfif></cfoutput>
but when I want to show only a specifc record ID for MasterVariables I get the error.
<cfoutput query="MasterCause"><cfoutput query="MasterVariables"><cfif MasterCause.CauseID eq 4><cfif MasterVariables.VariableID eq 2>#MasterPhrase.Part1# #MasterVariables.VariableDemoName# #MasterPhrase.Part2A# #MasterCause.CausePhrase#<br /></cfif></cfif></cfoutput></cfoutput>

Open in new window

Question by:Shawn
LVL 19

Accepted Solution

erikTsomik earned 2000 total points
ID: 24445863
you can not use 2 cfoutput tags inside each other
try this
<cfloop query="MasterCause">
  < cfloop  query="MasterVariables">
    <cfif MasterCause.CauseID eq 4>
      <cfif MasterVariables.VariableID eq 2>#MasterPhrase.Part1# #MasterVariables.VariableDemoName# #MasterPhrase.Part2A# #MasterCause.CausePhrase#<br />
</cfloop  >
</cfloop  >

Author Comment

ID: 24445923
works perfect. thank you.

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The Super Bowl is just days away. Millions of advertising dollars will be spent in just a few hours to drive people to websites around the globe. Optimizing your site in anticipation of a big event like this (and the traffic surges that follow) will…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question