I have an oracle data source which works fine in a web app but wont work if I write a cfquery inside a cfclient. I would like to know what the problem is or is it a bug.
index.cfm:
<div id="actual_1"></div>
<cfclientsettings enableDeviceAPI = "false" detectDevice = "false" >
<cfclient>
<cftry>
<cfinvoke component="querydb" method="getDbdetails" returnvariable="variables.ServerForms"> </cfinvoke>
<cfset document.getElementById("actual_1").innerHTML+=variables.ServerForms>
<!---<form action="listcsar.cfm" method="post">
<input type="submit" value="View my CSAR">
</form>--->
<cfcatch>
<cfset document.getElementById("actual_1").innerHTML+= cfcatch.message & "<BR>">
</cfcatch>
</cftry>
<cfset document.getElementById("actual_1").innerHTML+="DONE" & "<BR>">
</cfclient>
QueryDB.cfc:
<cfcomponent >
<cffunction name="getDbdetails" access="remote" returntype="numeric" >
<cfquery name="tst" datasource="DEVTRY1" result="rr1">
SELECT count(*) as counts FROM SECURITY.REQS
</cfquery>
<cfreturn tst.recordcount>
</cffunction>
</cfcomponent>