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

call cfc from the another cfc

$
0
0

Hi,

 

  I want to be able to get the value of the CodeItem  from the getItem function to use for my second function getOpt.  But not sure how to do it, would you lend me a hand?- Thanks


<cffunction name="getItem" access="remote" returntype="struct">

    <cfargument name="wo" type="string" required="yes">

 

      <cfsetvarqResult="" />

       <cfsetvarresult = {} />

 

        <cfqueryname="qResult">

          SELECT * fromsaleorders

         whereprodOrder= <cfqueryparamvalue="#arguments.wo#" cfsqltype="cf_sql_varchar"/>

        </cfquery>

      

         <cfsetresult = {CodeItem="#qResult.Code#",Description=#qResult.Description#} />

    <cfreturnresult>

  </cffunction>

 

 

  <cffunctionname ="getOpt">

    <cfsetitemDesc=  getItem() />

  </cffunction>


Viewing all articles
Browse latest Browse all 14291

Trending Articles



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