Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

Call function with long process

$
0
0

Hi All,

How can I define a function that call a Oracle sp but right away return something?

The sp is a long process, I can check if the process finish later with another function.

 

<cffunction name="callFunctionCC" access="remote" output="false" returnformat="any">

     <cfargument name="myID" type="numeric" required="true">

 

     <cfset var myResult = "The process start" />

     <cfset var qryData = "" />

     <cfstoredproc procedure="TT.CALCS.getLongProcess" datasource="#application.str_dsn#">

         <cfprocparam value="#arguments.myID#" cfsqltype="cf_SQL_NUMERIC">

         <cfprocresult name="qryData">

     </cfstoredproc>

 

     <cfreturn myResult/>

</cffunction>

 

Thanks,


Viewing all articles
Browse latest Browse all 14291

Trending Articles



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