gsr
11/29/2022, 1:13 AMbdw429s
11/29/2022, 2:57 AMgsr
11/29/2022, 3:42 AMgsr
11/29/2022, 3:42 AMbdw429s
11/29/2022, 3:43 AMbdw429s
11/29/2022, 4:20 AM<cfdump var="#qrsresults#">
bdw429s
11/29/2022, 4:21 AMgsr
11/29/2022, 12:45 PMMarc Funaro
11/29/2022, 2:47 PMgsr
11/29/2022, 2:52 PM<cfdump var="#Isquery(qrsresults)#"> - it says NO
<cfquery name='qrsresults'>exec do.getusers</cfquery>
Marc Funaro
11/29/2022, 2:52 PMMarc Funaro
11/29/2022, 2:54 PM<cfquery name='qrsresults'>
exec do.getusers
</cfquery>
<cfdump var="#qrsresults#">
<cfdump var="#IsQuery(qrsresults)#">
Marc Funaro
11/29/2022, 2:54 PMbdw429s
11/29/2022, 3:04 PMgsr
11/29/2022, 6:06 PMgsr
11/29/2022, 7:37 PM<cfloop collection="#variables#" item="boxes.i">
<cftry>
<cfif not listfindnocase(boxes.ignoreVariables,boxes.i)>
<cfif IsQuery(variables[boxes.i])>
<cfif val(boxes.QueryRecNum)>
<cfquery name="boxesBox.query.variables.#boxes.i#" dbtype="query" maxrows="#boxes.QueryRecNum#">
select * from #boxes.i#
</cfquery>
<cfelse>
<cfset SetVariable("boxesBox.query.variables.#boxes.i#",variables[boxes.i])>
</cfif>
<cfset SetVariable("boxesBox.vari.#boxes.i#",'[Query]')>
<cfelse>
<cfset SetVariable("boxesBox.vari.#boxes.i#",variables[boxes.i])>
</cfif>
</cfif>
<cfcatch><cflog file="Error_Logs" application="no" text="#cfcatch.detail# - #cfcatch.message#"></cfcatch>
</cftry>
</cfloop>
bdw429s
11/29/2022, 7:38 PMgsr
11/29/2022, 8:17 PMbdw429s
11/29/2022, 8:21 PMbdw429s
11/29/2022, 8:21 PMgsr
11/29/2022, 8:28 PMsalted
12/01/2022, 6:36 PMsalted
12/01/2022, 6:37 PMsalted
12/01/2022, 6:37 PMsalted
12/01/2022, 6:37 PMbdw429s
12/01/2022, 7:04 PMbdw429s
12/01/2022, 7:06 PMname
from cfquery will ALWAYS return a query (unless the query was an update or delete or something with no result sets). The result
attribute is probably what you're thinking of that has other metadata mixed in with it.salted
12/01/2022, 7:07 PMsalted
12/01/2022, 7:07 PMbdw429s
12/01/2022, 7:07 PMsalted
12/01/2022, 7:07 PMbdw429s
12/01/2022, 7:07 PMsalted
12/01/2022, 7:08 PMbdw429s
12/01/2022, 7:08 PMbdw429s
12/01/2022, 7:08 PMbdw429s
12/01/2022, 7:08 PMsalted
12/01/2022, 7:08 PMbdw429s
12/01/2022, 7:08 PMbdw429s
12/01/2022, 7:09 PMbdw429s
12/01/2022, 7:10 PMsalted
12/01/2022, 7:10 PMsalted
12/01/2022, 7:11 PMsalted
12/01/2022, 7:11 PMsalted
12/01/2022, 7:12 PMbdw429s
12/01/2022, 7:12 PMbdw429s
12/01/2022, 7:12 PMbdw429s
12/01/2022, 7:12 PMsalted
12/01/2022, 7:13 PMbdw429s
12/01/2022, 7:13 PMsalted
12/01/2022, 7:13 PMsalted
12/01/2022, 7:14 PMsalted
12/01/2022, 7:15 PMsalted
12/01/2022, 7:17 PMgsr
12/01/2022, 8:29 PM<cfloop collection="#variables#" item="boxes.i">
<cftry>
<cfif not listfindnocase(boxes.ignoreVariables,boxes.i)>
<cfif IsQuery(variables[boxes.i])>
<cfif val(boxes.QueryRecNum)>
<cfquery name="boxesBox.query.variables.#boxes.i#" dbtype="query" maxrows="#boxes.QueryRecNum#">
select * from #boxes.i#
</cfquery>
<cfelse>
<cfset SetVariable("boxesBox.query.variables.#boxes.i#",variables[boxes.i])>
</cfif>
<cfset SetVariable("boxesBox.vari.#boxes.i#",'[Query]')>
<cfelse>
<cfset SetVariable("boxesBox.vari.#boxes.i#",variables[boxes.i])>
</cfif>
</cfif>
<cfcatch><cflog file="Error_Logs" application="no" text="#cfcatch.detail# - #cfcatch.message#"></cfcatch>
</cftry>
</cfloop>
now i double checked this value is <cfif val(boxes.QueryRecNum)> is falseo, so no QoQ, but the below code does not give me the sql of the needed query
bdw429s
12/01/2022, 9:08 PMvariables[boxes.i]
came from or how it was created