Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

ColdFusion11 Mobile - Datasource wont work the same for WEB and cfclient

$
0
0

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>


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>