I have a cfc that I wrote, with two methods. The first method creates a CFGRID, and the second method is called by the BIND attirbute in the CFGRID to retrieve its data.
What I'm trying to do, basically, is pass a tablename and have a generic CGRID appear that displays all of the columns in the table. If the method I call from within the cfgrid's bind attribute is specific to the table, it works fine. But when I try to pass a tablename and call a more generic method, it isn't working. Here's the code: <cfgrid .... bind="cfc:grid.getData({tablename},{cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"> When I call the table-specific method, I don't pass {tablename} and things work fine. But then I added {tablename}, and in the getData method, the value is coming through as NULL. I tried changing it to {#tablename#} and it still comes through as NULL, but the variable becomes the name of the table instead of just "tablename" So... what am I doing wrong? How do I take a regular variable, "tablename" in this case, and pass it through the BIND expression into the cfc? Is it possible? Thanks! Rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301707 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4