I have been trying, in vain, to pass a variable to a CFC,
To start, I am using Flex 2, CF 7.02, Multi-server (all
local). I know the CFC call works - I use it to populate a
datagrid. When I click on a grid item, I "set" a custom component
(a form). The idea is that it wil get the details of the firm from
the DB and display it. I know that the actual query works, and it
populates the form, because I tested it using a hardcoded key in
Here is the code I am using:
1) In the component: (note, _standby is the key - I have
confirmed that it is getting passed to the component alright)
[Bindable] private var _standby:int;
public function set standbyID(value:int):void
_standby = value;
3) And the CFC:
<cffunction name="getStandbyRequestDetails" output="true"
<cfparam name="standbyid" type="numeric"/>
select * from standby_Request inner join standbytype on
standby_request.coverageType = standbytype.standbyTypeID
where standby_request.standbyRequestID = #standbyid#
I have tried various ways to do it, and had errors come back
(all tell me the param in the CFC was expected, but not received)
1) standbyDetails =
2) standbyDetails =
(I read this in another post, but it could have been old - v1.5).
3) I added (more out of desperation, than anything)
<mx:Text id="standbyid" text="1"/>
Any help with this matter would be appreciated - I'm sure
it's not nearly as difficult as I'm making it out to be.
Thanks for your help - That seeemd to work. Also, (I'm such
a clutz!) I started using <cfargument> in my CFC, instead of
<CFPARAM> to accept the parameter, like I should have been
doing! Thanks for your help with this.