Hi,
I'm playing with this for the first time. I have a cfc with the following
function:
<cffunction access="remote" name="getAllAuthors" output="no"
returntype="query" displayname="Get All Authors" hint="Select all Authors
from database">
<!--- lets get all the Authors --->
<cfquery name="qry_getAuthors" datasource="#Request.dsn_name#">
SELECT authorID, authorFirstName, authorLastName
FROM tbl_authors
ORDER BY authorLastName ASC;
</cfquery>
<cfreturn qry_getAuthors>
</cffunction>
Which I am trying to bind to a cfgrid as below:
<cfform>
<cfgrid name="authorsGrid" format="html" stripeRows="true"
bind="cfc:pathfromwebroot.cfcs.authors.getAllAuthors({cfgridpage},{cfgridpag
esize},{cfgridsortcolumn},{cfgridsortdirection})">
<cfgridcolumn name="authorFirstName" header="authorFirstName"
width="300">
<cfgridcolumn name="authorLastName" header="authorLastName"
width="300">
<cfgridcolumn name="authorID" header="authorID" width="100">
</cfgrid>
</cfform>
But I get the following error:
Detail Error parsing bind cfc
pathfromwebroot.cfcs.authors.getAllAuthors({cfgridpage},{cfgridpagesize},{cf
gridsortcolumn},{cfgridsortdirection})
Message You cannot specify more arguments to a CFC function than it
declares.
Any suggestions? I'm sure it's something basic that I'm missing.
Cheers
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285796
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4