No - I agree - I am Very Happy Using Evaluate(), as it is getting the job done.
However - I also know that my knowledge in this area is limited. So, if there is a better way - I like to explore it - especially since people are recommending another approach. In the end, it is working with Evaluate() - and the APP I am developing is something that few people will be using - and seldomly at the same time. So, speed, may not be the biggest issue here... (?) Anyway - Thanks everybody!!!! Very Much Appreciated!! I'm sure I will have more questions later as this project is becoming an octopus. Thanks again, -nick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 9:53 AM To: CF-Newbie Subject: RE: Dynamic Query Trouble CurrentRow only works if you're outputting a query as it is a variable returned by the query (check <cfquery> tag in the docs to find it). I'm still fuzzy on why you can't use the Evaluate() ? That seems to solve your issue. That's what it's designed for, this very need. Dave -----Original Message----- From: Nick Sweeney [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 10:49 AM To: CF-Newbie Subject: RE: Dynamic Query Trouble Ok - I am really in a section of the woods I don't know very much about. But know thatI am goig to have to set up camp here in the future.... Paul, my script is not in a loop or output. A search/form is submitted to the page (itself) the page checks if it was submitted - if so, it runs some queries based on the submitted data. This cfset is assigning one of the variables I need to do another query. (if that helps) This last cfset returns the error: Variable CURRENTROW is undefined. How do I assign Currentrow? -Nick -----Original Message----- From: Paul Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 9:27 AM To: CF-Newbie Subject: Re: Dynamic Query Trouble is your cfset inside of an cfoutput or loop? if so you can try <cfset S1 = qryGetSearchType1[ColID1][CURRENTROW]> hope this helps Paul >Well - I tried this and I still get the error: > >[Table (rows 1 columns NATIONALITYID): [NATIONALITYID: >[EMAIL PROTECTED] ] is not indexable by NationalityID > >Why should I not use Evaluate? Too much Processor time or something? > >-Nick > >-----Original Message----- >From: James Holmes [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 28, 2005 7:36 PM >To: CF-Newbie >Subject: RE: Dynamic Query Trouble > > >Don't use Evaluate(). > >You need <cfset S1 = qryGetSearchType1[ColID1][1]> > >(notice the row index as well). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1367 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
