well, the cfc I'm working on has two cffunctions in it (so far. I intend to move all my queries into it eventually). I do a cfinvoke for each function, when I need it. works fine, except for the default values thingie.
Chris On Wed, 15 Dec 2004 08:53:30 -0800 (PST), Jordan Gouger <[EMAIL PROTECTED]> wrote: > This may or may be a stupid question, as I am trying out CFC's too, but when > you are instantiating the component, do you need to instaniate each method, > or like in Java or .net, you instantiate the class, and have all of the > methods / properties in the component work like class? Also how are > CFPROPERTY tags used properly? Also does anyone have any tips about > developing XML apps with Cold Fusion? > > Matt, and others I remember that a few days ago, that group was talking > about getting a CFC meeting together. I'd be very intrested in attending > that, even if it means traveling from SA. > > Thanks for help, > > Jordan > > > Chris Gomez <[EMAIL PROTECTED]> wrote: > I'm trying out cfc's for the first time. I can get it to invoke > correctly, but I'm having problems changing the default arguments. It > won't accept any URL vars (besides 1). I tried cfinvokeargument and it > didn't work either. Any ideas? > > Thanks, > Chris > > Here's the current cfc code: > > > > > > > SELECT TRO.Faction, TRO.Name, TRO.Class, TRO.VType AS XVType, > TRO.Weight, TRO.APrev as Prev, TRO.ANext as Next, TRO.UnitID, > Mass.TMass as uMass, TRO.TMass, TRO.Faction AS XFaction, TRO.Era AS > XEra, TRO.Votes AS AVotes > > FROM Era INNER JOIN (Faction INNER JOIN (Weight INNER JOIN (VTypeINNER JOIN > (Mass INNER JOIN (Class INNER JOIN TRO ON Class.ClassID = > > TRO.Class) ON Mass.MassID = TRO.TMass) ON VType.VTID = TRO.VType) ON > Weight.ID = TRO.Weight) ON Faction.FactionID = TRO.Faction) ON > Era.EraID = TRO.Era > > WHERE > (TRO.Era = #Arguments.XEra#) AND > > (((TRO.Faction)=#Arguments.XFaction#) AND > ((TRO.VType)=#Arguments.XVType#) AND ((TRO.Weight)=3)) > > ORDER BY TRO.TMass, TRO.Name; > > > > > test page code: > > returnvariable="MechQuery">value="#XFaction#"> > ---------------------------------------------------------- > To post, send email to [EMAIL PROTECTED] > To unsubscribe: > http://www.dfwcfug.org/form_MemberUnsubscribe.cfm > To subscribe: > http://www.dfwcfug.org/form_MemberRegistration.cfm > > > > > > ---------------------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
