The way that CF works is you define the “fill” method with as many arguments (or no arguments for that matter) and just pass them in the dataseravice call, for example - ds.fill(myarg1, myarg2, etc...)

 

The <param> element isn’t necessary for destinations defined to be used with CF as the backend destination.  You can pass your “active” argument as “param” to the fill method and filter the query for active = true

 

<cfelseif structKeyExists(arguments, "param")>

where  active = <cfqueryparam cfsqltype="CF_SQL_BIT" value="#arguments.param#"/>

 

HTH, Bill

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nikmd23
Sent: Wednesday, May 03, 2006 9:49 AM
To: [email protected]
Subject: [flexcoders] DataService.fill params

 

Hey guys,

I was wondering if anyone had any information on the second argument
of the DataService.fill method? (Specifically for CF) 

I think it's meant to be the params to CF to filter your "query". 

While playing around with it, I noticed that in the flex-data-
service.xml file's destination.properties.server.fill-method have an
option for <param>, and the examples I have found use Java typing.

Do I need to edit those settings, and if so what are the data
types?  Are they the java representations only? Does that hold true
for CF?  (java.lang.String, or is it something else for CF.)

Also, I noticed that some of the lines of the read method in the DAO
(which is used by the fill method of the assembler) are commented
out by default.  Perhaps someone has some insight on that?

Just in case I'm not being very clear – I'm basically trying to use
the DataService to return a partial list from the table.  (Where
active = true).

Thank You for you help,
Nik







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to