RE: Caller access to query
Well, even though there's some issue of the best way to pull this off, I am having another problem. I am trying to create a custom tag that will out put user data into x number of columns with the attributes being QueryName and NumberOfColumns. My problem now is that I want to be able to mix plain text or html with variables. I've gotten it to do one or the other, if I use #evaluate(localcontent)# in the code below, I can output variables from the query that were passed, if I don't use evaluate, I can get text, but the variables show up as #variable#. Anyone know a way around this? #LocalContent# -Original Message- From: Andre Mohamed [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 12:41 PM To: CF-Talk Subject: RE: Caller access to query Some people (not necessarily me) believe doing this is better: i.e. passing the query by value and hence avoiding breaking any kind of encapsulation. Inside the tag you refer to the query in the normal way e.g. or just: ... However, if you follow the syntax of native ColdFusion tags then the analogous approach is to do what you have opted to do. E.g. Inside the tag: André -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 19:13 To: CF-Talk Subject: RE: Caller access to query Thanks everyone, I was passing the queryname in as an attribute and was just what I needed. I had to change the + to & for concatenation though. Thanks John Venable -Original Message- From: webguy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:58 PM To: CF-Talk Subject: RE: Caller access to query If myquery is the query on your page then in your custom tag Better is to pass the query in the tag and in the tag WG -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 17:45 To: CF-Talk Subject: Caller access to query Is there a way to access an existing query recordset from a custom tag called on the page? So if I have a query in a page, and I call a custom tag, can i use the query data through come sort of caller scope object? I can't seem to make it work. Thanks John Venable ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
RE: Caller access to query
Thanks everyone, I was passing the queryname in as an attribute and was just what I needed. I had to change the + to & for concatenation though. Thanks John Venable -Original Message- From: webguy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:58 PM To: CF-Talk Subject: RE: Caller access to query If myquery is the query on your page then in your custom tag Better is to pass the query in the tag and in the tag WG -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 17:45 To: CF-Talk Subject: Caller access to query Is there a way to access an existing query recordset from a custom tag called on the page? So if I have a query in a page, and I call a custom tag, can i use the query data through come sort of caller scope object? I can't seem to make it work. Thanks John Venable ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Caller access to query
John: You should be able to access the data via CALLER.QueryName as in: or #CALLER.QueryName.ColumnName# -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ > -Original Message- > From: Venable, John [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 13, 2003 12:45 PM > To: CF-Talk > Subject: Caller access to query > > > Is there a way to access an existing query recordset from a custom tag > called on the page? So if I have a query in a page, and I call a > custom tag, > can i use the query data through come sort of caller scope object? I can't > seem to make it work. > > Thanks > > John Venable > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Caller access to query
Some people (not necessarily me) believe doing this is better: i.e. passing the query by value and hence avoiding breaking any kind of encapsulation. Inside the tag you refer to the query in the normal way e.g. or just: ... However, if you follow the syntax of native ColdFusion tags then the analogous approach is to do what you have opted to do. E.g. Inside the tag: André -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 19:13 To: CF-Talk Subject: RE: Caller access to query Thanks everyone, I was passing the queryname in as an attribute and was just what I needed. I had to change the + to & for concatenation though. Thanks John Venable -Original Message- From: webguy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 12:58 PM To: CF-Talk Subject: RE: Caller access to query If myquery is the query on your page then in your custom tag Better is to pass the query in the tag and in the tag WG -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 17:45 To: CF-Talk Subject: Caller access to query Is there a way to access an existing query recordset from a custom tag called on the page? So if I have a query in a page, and I call a custom tag, can i use the query data through come sort of caller scope object? I can't seem to make it work. Thanks John Venable ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com
RE: Caller access to query
If myquery is the query on your page then in your custom tag Better is to pass the query in the tag and in the tag WG -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 17:45 To: CF-Talk Subject: Caller access to query Is there a way to access an existing query recordset from a custom tag called on the page? So if I have a query in a page, and I call a custom tag, can i use the query data through come sort of caller scope object? I can't seem to make it work. Thanks John Venable ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Caller access to query
why not pass it in as an attribute? -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 17:45 To: CF-Talk Subject: Caller access to query Is there a way to access an existing query recordset from a custom tag called on the page? So if I have a query in a page, and I call a custom tag, can i use the query data through come sort of caller scope object? I can't seem to make it work. Thanks John Venable ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Caller access to query
before tag. Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: "Venable, John" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, August 13, 2003 9:44 AM Subject: Caller access to query > Is there a way to access an existing query recordset from a custom tag > called on the page? So if I have a query in a page, and I call a custom tag, > can i use the query data through come sort of caller scope object? I can't > seem to make it work. > > Thanks > > John Venable > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4