0 Replies Latest reply on Oct 28, 2008 11:33 AM by EvolvedDSM

    Pass in value to data service CFC ?

    EvolvedDSM Level 2
      I'm using a data service (FDS) and the CF generated CFCs to handle data in my app. I'm having trouble though figuring out how I can pass in a value to my DAO CFC since I'm not invoking it with a remoteObject call.

      I set my dataservice to the defined destination Assembler CFC (data-management-config), and then fill an arrayCollection with the results from read() of the DAO CFC. This works great. What I'm trying to accomplish now is to send a value to the DAO CFC as a cfargument and then use it in my query to filter (where).

      Something like this...

      <cffunction name="read" access="remote" ...>
      <cfargument name="currentid">
      <cfquery datasource="...">
      SELECT col1, col2, col3, userID, ...
      FROM sometable
      WHERE userID = <cfqueryparam cfsqltype="CF_SQL_BIGINT" value="#arguments.currentid#" />

      I have the value in my Flex app, but I don't have any way to pass it to the DAO when the data service is requested.