This isn't my argument - it's yours.  I'm not going to get into another endless 
debate on best practices.  

Simply dropping my data into the query attribute doesn't solve my problem, as I 
need the same thing to happen in the onChange attribute.  I'm not aware of a 
replacement for that, and what I have running is pretty kick-ass from a user 
POV.  I just don't like how my code looks.  

So I'll ask again - Is there any way I can use a variable in the bind (or 
onChange) attribute instead of a path to a CFC?  That's all I want an answer 
to.  If the answer is yes, how do you do it?  If it is not, a simple 
explanation as to why not.  But a simple yes or no will do.  

> On Wed, Jan 7, 2009 at 6:07 PM, Doug Smidt <[email protected]> 
> wrote:
> > I do want to use a persisted CFC....but I want to use it on the spot, 
> in the CFGRID tag.  I don't want to:
> >
> > 1) Do exactly what you stated is generally recommended against.  I 
> don't want to be accessing a shared scope directly in a CFC.  I've 
> taught others not to do it, and I'm not going to do it either.
> 
> But the fact is - many "Dont do X" rules have exceptions. This is one
> of them. ColdSpring even provides for this out of the box (taking 
> your
> configured services and creating remote proxies for them). I don't
> think your argument here is valid.
> 
> 
> > I know what my options are, but you're not answering my question, 
> which is simply this.  Is there any way I can use a variable in the 
> bind attribute instead of a path to a CFC?
> 
> You can use a query in the HTML grid. If your CFC lets you get the
> query object, just get it, and do query="#...#" in your cfgrid tag.
> 
> 
> 
> 
> -- 
======> =====================================================================
> Raymond Camden, VP of Software Dev, Broadchoice
> 
> Email    : [email protected]
> Blog      : www.coldfusionjedi.com
> AOL IM : cfjedimaster
> 
> Keep up to date with the community: http://www.coldfusionbloggers.
org 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317616
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to