Skip to main content
June 23, 2008
Question

CFINVOKE Output

  • June 23, 2008
  • 1 reply
  • 560 views
Edit: NEVERMIND, figured this out, I accidentally used the same instance name *LOL* Thanks anyway guys!!


Hey guys, having a bit of trouble...

I have 2 CFINVOKES being called (on the same page) from a CFC.....the queries in the CFC are working, because each of these have been called on other pages individually with no problems.

However, on the same page, the first cfoutput is outputting for both, so I have TWO textboxes with the data from the first output, instead of one of each.....is there a requirement to end a CFINVOKE or something to output the next one? Code follows, stripped out all the div/table structure...

<cfinvoke component="query" method="LoadCommunityContent" returnvariable="CommunityContentOutput"></cfinvoke>
<cfinvoke component="query" method="LoadBuySellContent" returnvariable="BuySellContentOutput"></cfinvoke>

<cfloop query="CommunityContentOutput">
<cfmodule template="fckeditor/fckeditor.cfm"
basePath="fckeditor/"
instanceName="ContentText"
value='#ContentText#'
width="350"
height="300">
</cfloop>

<cfloop query="BuySellContentOutput">
<cfmodule template="fckeditor/fckeditor.cfm"
basePath="fckeditor/"
instanceName="ContentText"
value='#ContentText#'
width="350"
height="300">
</cfloop>
    This topic has been closed for replies.

    1 reply

    Inspiring
    June 24, 2008
    have you tried dumping (cfdump) your queries CommunityContentOutput and BuySellContentOutput to check if it is actually returning the correct number of data?
    June 24, 2008
    Sorry, I already edited my own post yesterday, the problem was I used the same instance name twice *LOL* Totally my fault, a copy/paste error :P Thanks anyway!