Re: What can PHP do that CF can't?
I second that Eric! What is useless to one is useful to others and it just bothers me when there is one or two complaints/trolls that had nothing to contribute. They just make sure they express their displeasure. Eric Haskins ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291728 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Coldfusion 8 Adminapi Datasource problem
Hi John, In the function myObj.setMSSQL(), the values of timeout and interval are specified in seconds ( pl. refer cf_root/CFIDE/adminapi/datasource.cfc for APIs), whereas in admin, the interval and timeout values are displayed in mins. Therefore, in your example (20/60) is rounded off to zero. Thanks, Hareni -Original Message- From: John Elkins [mailto:[EMAIL PROTECTED] Sent: 20 October 2007 06:57 To: CF-Talk Subject: Re: Coldfusion 8 Adminapi Datasource problem Care to show the code? Care to show the code? Sure. I used an example from CF8 live docs... which actually has an error: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basico nfig_37.html (setStringParameterAsUnicode should be sendStringParametersAsUnicode) myObj.setMSSQL(driver=MSSQLServer, name = #newdsn#, host = #databaseServerIP#, port = 1433, database = #dbname#, username = #databaseUID#, password = #databasePWD#, login_timeout = 30, timeout = 20, interval = 7, buffer = 64000, blob_buffer = 64000, sendStringParametersAsUnicode = true, description = , pooling = true, maxpooledstatements = 1000, enableMaxConnections = false, maxConnections = 0, enable_clob = false, enable_blob = false, disable = false, selectmethod = direct, storedProc = true, alter = true, grant = false, select = true, update = true, create = true, delete = true, drop = true, revoke = false ); } I am setting Timeout = 20 and Interval = 7. The datasource gets created properly with all the other parameters specified, but these remain 0's. Thanks, John ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291729 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Call For Papers: webDU 2008
Call For Papers: webDU 2008 === GO: http://www.webdu.com.au/go/call-for-papers And so it begins -- the sixth Asia-Pacific web developers conference, web DownUnder 2008! * Website: http://www.webdu.com.au/ * Conference Dates: 7-9 May 2008 * Conference Venue: Star City, Sydney Australia Fresh from the resounding success that was webDU 2007, we are raring to go for webDU 2008. If you have something new and revolutionary, some tricks of the trade to share, want to help your fellow developers or you're just pure passionate for web technology, don't miss your chance to take part in webDU 2008. This time we are bigger and brighter, with workshops and a swish venue not to mention the back drop of Sydney itself! Treat yourself to an essential junket from the office, mix with other gurus and pontificate to the great unwashed. Oh the life of a conference speaker. IMPORTANT DATES -- * Submissions are due by: Friday, 7 December 2007 * Notification will be sent by: Friday, 21 December 2007 * Presentation first draft: Friday, 7 March 2008 * Final submission and presentation slides: Friday, 04 April 2008 * Conference Workshops: Wednesday, 07 May 2008 * webDU Conference: Thursday-Friday, 08-09 May 2008 * Speaker BBQ: Saturday, 10 May 2008 Announcement List -- Keep up to date by joining our low-volume announcement list at: http://groups.google.com/group/webdu-ann/about Full details available at: http://www.webdu.com.au/go/call-for-papers Bring it on! -- geoff http://www.webdu.com.au/ ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boomsocket Alpha Trial
On 20/10/2007, jonese [EMAIL PROTECTED] wrote: Our office takes any comments to heart. Good and Bad! I'm glad you brought it up and the conversation / sign-ups it's spawned. Hopefully we'll get others involved and we'll have that MySQL / PostgreSQL sooner rather then later! How does Boomsocket compare to FarCry [1]? Are there any specific features you think make the whole Boomsocket story particularly compelling? If anyone else has any other thoughts please share them directly with us [EMAIL PROTECTED], here at CF-TALK or join our google group. http://groups.google.com/group/boomsocketalpha Have tried to join the boomsocketalpha list but I keep getting rejected. -- geoff http://www.daemon.com.au/ [1]: http://www.farcrycms.org/ ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291731 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: #$^% Forms!
On 25/09/2007, Michael David [EMAIL PROTECTED] wrote: Ok, I admit it; I hate developing forms! There's not one part of the process that I find even remotely interesting, enlightening, or fulfilling. Forms suck. Now that I got that off of my chest, does anyone know of some nifty-cool program/guy in a dark room halfway around the world/magic spell that would help with most of the more mundane aspects of the process. Did I mention that I hate developing forms?!?! Just stumbled across your message in gMail. Have you tried the FarCry Framework's formtools technology? Even if you don't have any interest in FarCry per se, the way forms are managed might spark some ideas for automating your own form development. There is a basic summary here: http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Formtools+Technology And a complete FarCry Developer Course available here: http://blog.daemon.com.au/go/blog-post/farcry-4-0-training-course-released Anyhoot, thought you might be interested. -- geoff http://www.daemon.com.au/ ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291732 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFADmin: datasource - connect to Access DB on network drive
On Friday 19 Oct 2007, [EMAIL PROTECTED] wrote: I need to connect to an Access database on a netowkr drive and the drives that show up in the Java file tree are only local drives. Is there another way to connect to an Access DB on a network drive? Type the path by hand ? -- Tom Chiverton. Are you a great ColdFusion programmer, who knows Reactor and ColdSpring, and has done some Flex work ? Would you like to work for a top 30 law firm in Manchester, UK ? Are not an agency ? If yes, send email ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291733 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: parsing problem
Hi - thanks for that. I changed it to rereplace(web_export,([^,]*),(.*)\n(.*)\n[ ](.*)\n,line:\1|\2|\3,ALL) But got this: line:Abbott| John E-mail Address(es): [EMAIL PROTECTED] Abrahams, Fred E-mail Address(es): [EMAIL PROTECTED] Adams, Kerin E-mail Address(es): [EMAIL PROTECTED] Allen, Norman E-mail Address(es):| [EMAIL PROTECTED] [EMAIL PROTECTED] I'm pretty useless at regex I can't see still how to get then into your format (which is what I want) line:Abbot|John|[EMAIL PROTECTED] line:Abrahams|Fred|[EMAIL PROTECTED] Any help gratefully received. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291734 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: parsing problem
try this one: rereplace(web_export, (.[^,]*),[[:space:]]+(.[^\n]*)(.[^\n]*)[[:space:]]*(.[^\n]*), \1|\2|\4br, ALL) i used the br in replaced string to visually separate lines on screen. change it to \n or whatever you need to. cheers, Azadi -- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291735 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: File disappears after cffile rename
Hi Michael, Apparently on CF8, if the cffile.serverfile name and the newly assigned name var are the same, the file will get deleted when it fires the cffile rename. I tried this simple code and wasn't able to reproduce this issue. cffile action=RENAME source=C:\temp1.txt destination=C:\temp1.txt The file temp1.txt wasn't deleted. Am I missing something? Please let me know. If it is a bug, we need to fix it. Thanx -Manjukiran Adobe ColdFusion Team ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291736 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Catching referring domain in CF?
Did you try dumping the CGI scope? CGI.HTTP_HOST would give you the domain name. Thanx -Manjukiran Adobe ColdFusion Team ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291737 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: #$^% Forms!
Check out this, makes it really easy and purdy =) http://www.cfcode.net/index.cfm/2007/9/21/The-search-for-a-dropin-form-s tyle-thats-bootyfull Chris Peterson Gainey IT Adobe Certified Advanced Coldfusion Developer -Original Message- From: Geoff Bowers [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 4:26 AM To: CF-Talk Subject: Re: #$^% Forms! On 25/09/2007, Michael David [EMAIL PROTECTED] wrote: Ok, I admit it; I hate developing forms! There's not one part of the process that I find even remotely interesting, enlightening, or fulfilling. Forms suck. Now that I got that off of my chest, does anyone know of some nifty-cool program/guy in a dark room halfway around the world/magic spell that would help with most of the more mundane aspects of the process. Did I mention that I hate developing forms?!?! Just stumbled across your message in gMail. Have you tried the FarCry Framework's formtools technology? Even if you don't have any interest in FarCry per se, the way forms are managed might spark some ideas for automating your own form development. There is a basic summary here: http://docs.farcrycms.org:8080/confluence/display/FCDEV40/Formtools+Tech nology And a complete FarCry Developer Course available here: http://blog.daemon.com.au/go/blog-post/farcry-4-0-training-course-releas ed Anyhoot, thought you might be interested. -- geoff http://www.daemon.com.au/ ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291738 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion 8 Adminapi Datasource problem
This sounds like a bug in the admin then. If the back end supports 60 seconds, the admin should support it as well, right? On 10/22/07, Hareni Venkatramanan [EMAIL PROTECTED] wrote: Hi John, In the function myObj.setMSSQL(), the values of timeout and interval are specified in seconds ( pl. refer cf_root/CFIDE/adminapi/datasource.cfc for APIs), whereas in admin, the interval and timeout values are displayed in mins. Therefore, in your example (20/60) is rounded off to zero. Thanks, Hareni -- === Raymond Camden, Camden Media Email: [EMAIL PROTECTED] Blog : www.coldfusionjedi.com AOL IM : cfjedimaster Keep up to date with the community: http://www.coldfusionbloggers.org ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: What can PHP do that CF can't?
I have much more important things to complain about than something that may be off topic in a community. Apparently. ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Eric Roberts [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 1:24 AM To: CF-Talk Subject: RE: What can PHP do that CF can't? You are the one complaining about it...not me. If there is a thread I am not interested in or I feel is off topic...I ignore it...not complain about it. I have much more important things to complain about than something that may be off topic in a community. I just get tired of the people that complain. Eric -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 7:46 PM To: CF-Talk Subject: RE: What can PHP do that CF can't? My delete key doesn't delete it from the archives. Only Michael's does. So don't make him have to press it :-) The topic of PHP vs CF could be a good one. But people who have been around this list for a while should know that they aren't going to get as much of a comparison list as they'd like but instead... start a pointless, off-topic debate that runs on and on and becomes more and more off-topic until Michael is forced to take more time than he should have to just to move it. Just drop it or get back to the comparison of PHP vs CF. :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Eric Roberts [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 8:26 PM To: CF-Talk Subject: RE: What can PHP do that CF can't? Your delete key works, right? Eric -Original Message- From: Chris Jordan [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 4:01 PM To: CF-Talk Subject: Re: What can PHP do that CF can't? I emailed Michale D. directly and asked him to take care of it. All I can do now is hope he does. I'm washing my hands of this 'spam' now, but I sure hope it doesn't continue to fill up my inbox. :o( Chris On 10/21/07, Bobby Hartsfield [EMAIL PROTECTED] wrote: Anyone NOT coming here to talk about Cobol, Qbasic, BASIC, DOS, etc... ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 10:23 PM To: CF-Talk Subject: Re: What can PHP do that CF can't? Can we please get this worthless thread moved to CFCommunity, Michael? Please? Chris Worthless to who? ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291740 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfimage generating a color pallette from an image
It sounds like you're wanting cfimage to generate a palette of every unique color in an image? That could offer up some cool possibilities. Let us know if you find anything like that. -Original Message- From: Matthew Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 10:50 PM To: CF-Talk Subject: Re: cfimage generating a color pallette from an image I checked out the tag and not what I am trying to do. I did find that there is a quantize() function in ImageMagick library. Does anyone know if cfimage support anytype of this function. I searched adobe's livedocs but did not find anything. Any help would be great. Matt If not, does anyone have a suggestion. Don't know about CFIMAGE, but here is a solution, if you provide a palette, any palette in GIF, JPG, JPE, JPEG or PNG format will work. See CFX_MapClick: http://www.contentbox.com/claude/customtags/mapClick/viewmapClick.cfm and don't miss the test page: http://www.contentbox.com/claude/customtags/mapClick/testMapClick.cfm -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291741 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Anyone with ISAPI_rewrite experience?
I have no clue which version. Is there a way to check without having access to the OS? I tested it and it does work, but I have no clue what I'm doing. andy -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 11:19 AM To: CF-Talk Subject: Re: Anyone with ISAPI_rewrite experience? We use it all the time. ask away i'll be able to help. Which version did they install 2 or 3? jonese On 10/21/07, Neil Middleton [EMAIL PROTECTED] wrote: I used this a while back, ping me an email and I'll try and remember the details. Neil On 10/20/07, Andy Matthews [EMAIL PROTECTED] wrote: My hosting company just installed this for my domains and I'm wondering if anyone has ever used it before. They gave me the docs for it: http://www.isapirewrite.com/docs/#config But I'd love to talk to someone with real world experience. I'm looking to convert URLs like this: http://www.domain.com/tshirts to http://www.domain.com/tshirts.cfm or http://www.domain.com/tshirts/mens to http://www.domain.com/tshirts.cfm?type=mens ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291742 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Anyone with ISAPI_rewrite experience?
Eric... I guess what I want to do is to learn the basics. I've got a client site coming up soon that needs as much SEO help as it can get. My outputted HTML code is perfect, so I'm looking to improve links and meta data. What I'm looking to do is to turn cf pages into directories (and pass in URL vars that also look like directories). If I can learn that, then that's probably about 85% of what I'd ever want to do. andy -Original Message- From: jonese [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 11:19 AM To: CF-Talk Subject: Re: Anyone with ISAPI_rewrite experience? We use it all the time. ask away i'll be able to help. Which version did they install 2 or 3? jonese On 10/21/07, Neil Middleton [EMAIL PROTECTED] wrote: I used this a while back, ping me an email and I'll try and remember the details. Neil On 10/20/07, Andy Matthews [EMAIL PROTECTED] wrote: My hosting company just installed this for my domains and I'm wondering if anyone has ever used it before. They gave me the docs for it: http://www.isapirewrite.com/docs/#config But I'd love to talk to someone with real world experience. I'm looking to convert URLs like this: http://www.domain.com/tshirts to http://www.domain.com/tshirts.cfm or http://www.domain.com/tshirts/mens to http://www.domain.com/tshirts.cfm?type=mens ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291743 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFGRID row color
In the HTML CFGRID, is there a way to change the background color of a row dynamically? For example, if I had a list of tasks, I'd like to change the background color if the task is urgent... Urgent is a field in the query object returned by CFC ... Regards, ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291744 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Which query would be better?
Offhand, I'd guess using the in syntax, if only because it makes your million-line query smaller. However, if you really want to know, write it each way, populate a db with a million rows of fake data, and time it. --BenD Will Tomlinson wrote: MySQL 5. Which would be the better choice for a report table. I'm concerned and want the query to run as fast as possible because there could end up being millions of records in it. I could add the number of fields I need (not worried about the flattening of this table and lack of normalization). Instructor1, instructor2, 3, 4, etc. Then query like this: AND (e2.instructor1id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor2id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor3id = cfqueryparam value=#ARGUMENTS.instructor# ) OR ... I could easily create a list of values, then use the IN keyword: AND someotherfield IN (cfqueryparam value=#ARGUMENTS.somevaluelist# list=yes) Thanks, Will ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291745 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFGRID row color
In the HTML CFGRID, is there a way to change the background color of a row dynamically? For example, if I had a list of tasks, I'd like to change the background color if the task is urgent... Urgent is a field in the query object returned by CFC ... Regards, ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291746 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Cflayout page return question
We have a page that we are capturing data in using cflayout and it works wonderfully. Now our question is, I think I am missing something obvious? We want to submit the page and have it return to the tab we had open during the submission; alternately maybe another tab if we wanted them to. But primary is how to get it back to where the person wasfor this project there is a reason for it. Thanks! Eric This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291747 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Which query would be better?
Also, regardless of the performance factors, I prefer the IN method as it is easier to upgrade. Dominic On 22/10/2007, Ben Doom [EMAIL PROTECTED] wrote: Offhand, I'd guess using the in syntax, if only because it makes your million-line query smaller. However, if you really want to know, write it each way, populate a db with a million rows of fake data, and time it. --BenD Will Tomlinson wrote: MySQL 5. Which would be the better choice for a report table. I'm concerned and want the query to run as fast as possible because there could end up being millions of records in it. I could add the number of fields I need (not worried about the flattening of this table and lack of normalization). Instructor1, instructor2, 3, 4, etc. Then query like this: AND (e2.instructor1id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor2id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor3id = cfqueryparam value=#ARGUMENTS.instructor# ) OR ... I could easily create a list of values, then use the IN keyword: AND someotherfield IN (cfqueryparam value=#ARGUMENTS.somevaluelist# list=yes) Thanks, Will ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
connection timeout/failure
Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291749 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Which query would be better?
On Monday 22 Oct 2007, [EMAIL PROTECTED] wrote: Also, regardless of the performance factors, I prefer the IN method as it is easier to upgrade. Until one day you randomly hit the limit of things that can be in the IN clause. -- Tom Chiverton. Are you a great ColdFusion programmer, who knows Reactor and ColdSpring, and has done some Flex work ? Would you like to work for a top 30 law firm in Manchester, UK ? Are not an agency ? If yes, send email ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291750 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which query would be better?
Just as a note on performance, When thinking about using OR, you should consider splitting it into separate queries and using a UNION or UNION ALL to join them together. Rob -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: 22 October 2007 16:35 To: CF-Talk Subject: Re: Which query would be better? Also, regardless of the performance factors, I prefer the IN method as it is easier to upgrade. Dominic On 22/10/2007, Ben Doom [EMAIL PROTECTED] wrote: Offhand, I'd guess using the in syntax, if only because it makes your million-line query smaller. However, if you really want to know, write it each way, populate a db with a million rows of fake data, and time it. --BenD Will Tomlinson wrote: MySQL 5. Which would be the better choice for a report table. I'm concerned and want the query to run as fast as possible because there could end up being millions of records in it. I could add the number of fields I need (not worried about the flattening of this table and lack of normalization). Instructor1, instructor2, 3, 4, etc. Then query like this: AND (e2.instructor1id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor2id = cfqueryparam value=#ARGUMENTS.instructor# OR e2.instructor3id = cfqueryparam value=#ARGUMENTS.instructor# ) OR ... I could easily create a list of values, then use the IN keyword: AND someotherfield IN (cfqueryparam value=#ARGUMENTS.somevaluelist# list=yes) Thanks, Will ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
I would think a combination of a timeout parameter on the query and cfcatch block for database exceptions around it should do the trick. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291751 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
cftry cfquery ... /cfquery cfcatch type=any cfmail ... cfabort (or cfthrow) or whatever) /cfcatch /cftry On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
On Monday 22 Oct 2007, [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? Scheduled task that checks seems the easiest way. -- Tom Chiverton. Are you a great ColdFusion programmer, who knows Reactor and ColdSpring, and has done some Flex work ? Would you like to work for a top 30 law firm in Manchester, UK ? Are not an agency ? If yes, send email ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291752 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
is the catch around the cfquery specifically? have you specified a type for the catch? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291756 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Which query would be better?
Which, according to the docs, is only limited by max_allowed_packet. The default is 1Mb, but it can be set arbitrarily up to the size of available RAM if that becomes a problem. --BenD Tom Chiverton wrote: On Monday 22 Oct 2007, [EMAIL PROTECTED] wrote: Also, regardless of the performance factors, I prefer the IN method as it is easier to upgrade. Until one day you randomly hit the limit of things that can be in the IN clause. ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291755 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
UNZIP
Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291757 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: connection timeout/failure
yes to both. type is database. I would like it to alert via email when the connection is slow -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:01 PM To: CF-Talk Subject: Re: connection timeout/failure is the catch around the cfquery specifically? have you specified a type for the catch? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291758 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Which query would be better?
Which, according to the docs, is only limited by max_allowed_packet. The default is 1Mb, but it can be set arbitrarily up to the size of available RAM if that becomes a problem. Databases generally have some limit on the number of items within an IN clause, which is completely separate from the maximum size of text used for an SQL query. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291760 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Which query would be better?
Until one day you randomly hit the limit of things that can be in the IN clause. Lol indeed, though I'd hate to see that SQL if it were multiple ORs ;) Dom ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291759 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Sorry I think I misunderstood your question. cfcatch will react to a connection timeout too. You cannot catch the fact that it took longer than X seconds to connec though. -- Rick Root Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at www.opensourcecf.com ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291761 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: connection timeout/failure
ah... so just to clarify... you're not looking for an alert message/email on a connection/query failure... but when the connection/query succeeds and takes greater than (a specified period of time) to do so? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: yes to both. type is database. I would like it to alert via email when the connection is slow -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:01 PM To: CF-Talk Subject: Re: connection timeout/failure is the catch around the cfquery specifically? have you specified a type for the catch? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291762 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: UNZIP
cfzip? :-) --Ben Doom Richard Colman wrote: Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291763 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Which query would be better?
Ah, I see you remember Spectra :) -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 11:48 AM To: CF-Talk Subject: Re: Which query would be better? On Monday 22 Oct 2007, [EMAIL PROTECTED] wrote: Also, regardless of the performance factors, I prefer the IN method as it is easier to upgrade. Until one day you randomly hit the limit of things that can be in the IN clause. -- Tom Chiverton. Are you a great ColdFusion programmer, who knows Reactor and ColdSpring, and has done some Flex work ? Would you like to work for a top 30 law firm in Manchester, UK ? Are not an agency ? If yes, send email ! This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291764 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Which query would be better?
I assumed there would be as well, but when I looked it up, that's what the docs for MySQL 5 said. Specifically, I dug around until I found the limit on the IN clause. It said it was limited by max_allowed_packet, which I then looked up. Hence, according to the docs. --Ben Doom Dave Watts wrote: Which, according to the docs, is only limited by max_allowed_packet. The default is 1Mb, but it can be set arbitrarily up to the size of available RAM if that becomes a problem. Databases generally have some limit on the number of items within an IN clause, which is completely separate from the maximum size of text used for an SQL query. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291766 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: connection timeout/failure
Yes...by the time if fails its a bit too late -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:23 PM To: CF-Talk Subject: Re: connection timeout/failure ah... so just to clarify... you're not looking for an alert message/email on a connection/query failure... but when the connection/query succeeds and takes greater than (a specified period of time) to do so? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: yes to both. type is database. I would like it to alert via email when the connection is slow -Original Message- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:01 PM To: CF-Talk Subject: Re: connection timeout/failure is the catch around the cfquery specifically? have you specified a type for the catch? On 10/22/07, Orlini, Robert [EMAIL PROTECTED] wrote: Is there anyway to hace CF send an email alert if a datasource connection does not respond within a certain amount of seconds? I have a query that loads an image from another server and I'm using a cfcatch, but it only reacts to a lost connection when the server fails. I would like it to send an alert after a period of time when it does not connect using a cfquery. Thx. Robert O. HWW CFQUERY NAME=hisname DATASOURCE=oracle repository connection SELECT name from dateyy where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and rights=0 order by ranking,postings desc /cfquery ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291770 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion 8 Adminapi Datasource problem
Thanks, Hareni. That was the problem. I should have paid more attention to the api values. It worked perfectly. Thanks also Ray for responding to my question. Regards, John Hi John, In the function myObj.setMSSQL(), the values of timeout and interval are specified in seconds ( pl. refer cf_root/CFIDE/adminapi/datasource.cfc for APIs), whereas in admin, the interval and timeout values are displayed in mins. Therefore, in your example (20/60) is rounded off to zero. Thanks, Hareni Care to show the code? Sure. I used an example from CF8 live docs... which actually has an error: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basico nfig_37.html (setStringParameterAsUnicode should be sendStringParametersAsUnicode) myObj.setMSSQL(driver=MSSQLServer, name = #newdsn#, host = #databaseServerIP#, port = 1433, database = #dbname#, username = #databaseUID#, password = #databasePWD#, login_timeout = 30, timeout = 20, interval = 7, buffer = 64000, blob_buffer = 64000, sendStringParametersAsUnicode = true, description = , pooling = true, maxpooledstatements = 1000, enableMaxConnections = false, maxConnections = 0, enable_clob = false, enable_blob = false, disable = false, selectmethod = direct, storedProc = true, alter = true, grant = false, select = true, update = true, create = true, delete = true, drop = true, revoke = false ); } I am setting Timeout = 20 and Interval = 7. The datasource gets created properly with all the other parameters specified, but these remain 0's. Thanks, John ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291767 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: UNZIP
Are you on CF8? -Original Message- From: Richard Colman [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 11:13 AM To: CF-Talk Subject: UNZIP Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291765 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: UNZIP
If you are using CFMX or better, there is a great custom tag on the cflib for it. It's basically a hundred line java function. It's wicked fast and works great. =] On 10/22/07, Ben Doom [EMAIL PROTECTED] wrote: cfzip? :-) --Ben Doom Richard Colman wrote: Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291769 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: UNZIP
DOH ... -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 9:29 AM To: CF-Talk Subject: Re: UNZIP cfzip? :-) --Ben Doom Richard Colman wrote: Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291768 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: UNZIP
if you want the CFC route there is a great zip cfc on riaforge. http://zipcfc.riaforge.org/ jonese On 10/22/07, Richard Colman [EMAIL PROTECTED] wrote: Can anyone recommend a tag for unzipping files programmatically? Rick Colman ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291771 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
programmatically add functions to a CFC
Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291772 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Subversion appliance use attempt...
On 10/21/07, Rick Faircloth [EMAIL PROTECTED] wrote: Well... I've got TortoiseSVN installed and it seems to be working fine. I see the menu commands in Windows Explorer. I'm reading through the documentation now to figure out just what I'm supposed to do with this. Save yourself a *ton* of time and just buy Pragmatic Version Control with SVN, 2nd edition from the Pragmatic Programmers. Lots of recipies, theory, etc packed in a very compact book (plus the appendices walk you through installed the SVN server if you want to later on). Thanks for the help on this... I'm sure I'll be calling again! :o) Rick -Original Message- From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] Sent: Sunday, October 21, 2007 11:20 PM To: CF-Talk Subject: Re: Subversion appliance use attempt... yep, that's exactly right. The vmplayer is acting like a completely separate server so you'll need a client on your xp machine and TortoiseSVN is an awesome one. I got my repo configured exactly how I wanted it and then moved the virtual machine to another machine on my network. I still get giddy thinking how easy it is to move and configure virtual servers. ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291773 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Subversion appliance use attempt...
On 10/22/07, John Paul Ashenfelter [EMAIL PROTECTED] wrote: On 10/21/07, Rick Faircloth [EMAIL PROTECTED] wrote: Well... I've got TortoiseSVN installed and it seems to be working fine. I see the menu commands in Windows Explorer. I'm reading through the documentation now to figure out just what I'm supposed to do with this. Save yourself a *ton* of time and just buy Pragmatic Version Control with SVN, 2nd edition from the Pragmatic Programmers. Lots of recipies, theory, etc packed in a very compact book (plus the appendices walk you through installed the SVN server if you want to later on). And I should have added, if you're on the west coast, come see me talk about this sort of thing at CFUnited Express on Nov 9th in San Francisco. -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) [EMAIL PROTECTED] ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291774 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
The meta data is just an interpretation of the component and not an interface to it. I'm not sure how you would achieve what you want, but that is definately not the right direction. Good luck, Dominic On 22/10/2007, Jonathon Stierman [EMAIL PROTECTED] wrote: Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: programmatically add functions to a CFC
Jonathon Stierman wrote: Is it possible to programmatically add/update functions to an instantiated CFC? cffunction name=getX cfreturn variables.X /cffunction cfcomponent name=superSecret cfset variables.key = x /cfcomponent cfset obj = CreateObject(component, superSecret) cfset obj.getX = getX cfset obj.getX() Jochem ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
Jonathon, You're on the right track, but it's much easier than that. Here's some play code I just whipped up: cfscript function getVariablesExternal() {return variables;} function methodToInject() {return This method was Injected;} myCFC = createObject(component,test).init(); // get component myCFC.getVariables = getVariablesExternal; // inject variable scope getter into this scope myCFC.getVariables().injectedMethod = methodToInject; // inject a method into CFC variables scope myCFC.getVariables().this.injectedMethod = methodToInject; // also into public this scope writeOutput( myCFC.getVariables().privateMethod() ); // call private method from test.cfc writeOutput( myCFC.injectedMethod() ); // call injected method /cfscript It's really amazing the things you can do with this stuff :D PS here's my test.cfc: cfcomponent cffunction name=init access=public cfreturn this /cffunction cffunction name=privateMethod access=private cfreturn This is a Private Method! /cffunction cffunction name=publicMethod access=public cfreturn This is a Public Method! /cffunction /cfcomponent This is actually the concept of mix-ins, there has been some more formal code written about it, but you can do it like this, like a cfinclude file (even with a dynamic file name) from inside the CFC, you can get a struct of functions and loop over them, calling each or injecting them elsewhere, you can have a mixin() method that takes a function as an argument, and so on and so on. Really, lots of fun things here! -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291777 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Subversion appliance use attempt...
Thanks for the tip, JP! Hope all goes well for you at CFUnited Express! Rick -Original Message- From: John Paul Ashenfelter [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 1:51 PM To: CF-Talk Subject: Re: Subversion appliance use attempt... On 10/22/07, John Paul Ashenfelter [EMAIL PROTECTED] wrote: On 10/21/07, Rick Faircloth [EMAIL PROTECTED] wrote: Well... I've got TortoiseSVN installed and it seems to be working fine. I see the menu commands in Windows Explorer. I'm reading through the documentation now to figure out just what I'm supposed to do with this. Save yourself a *ton* of time and just buy Pragmatic Version Control with SVN, 2nd edition from the Pragmatic Programmers. Lots of recipies, theory, etc packed in a very compact book (plus the appendices walk you through installed the SVN server if you want to later on). And I should have added, if you're on the west coast, come see me talk about this sort of thing at CFUnited Express on Nov 9th in San Francisco. -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) [EMAIL PROTECTED] ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291778 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
Look at some AOP framework for CF, and you'll find out. Coldspring - http://www.coldspringframework.org/ : From what I saw in the code, they use CFFILE to generate the cfm and CFINCLUDE it. They called it dynamic compilation - http://www.pbell.com/index.cfm/2006/7/3/How-ColdSpring-Implements-AOP-using-a-Decorator LightWire - http://lightwire.riaforge.org/ : Don't know how they did it, but they claimed their way is more efficient. Author of this project is Peter Bell, the owner of the blog posted abouve. Henry Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291779 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Boomsocket Alpha Trial
Geoff, You should be approved now. The group is closed so only those members who sign up can see it. Anyone else having an issue can email me directly and I'll force add them. how do we compare to FarCry? We'll besides the fact that both are CMS's i don't know if there is a lot of comparisons. FarCry is more OOP for sure while boomsocket is more procedural in it's core code base. We're moving towards more of an OOP model but it's not a big push yet. As for why i think boomsocket is the bee's knee's. boomsocket is really built around 1 set of scripts called formbuilder, which is basically the tool which builds the tools. (a tool is also known as a socket). It's this formbuilder which allows us to rapidly build out sites and get something together with minimal effort. That coupled with a bunch of other features it's really helped us take development to a new level. There's a lot more here but i don't have a good laundry list at this moment. I plan to work on some content for the site www.boomsocket.com in the next week or so and this kind of list is on my tasking. I didn't want to leave you out in the cold, I'm excited to have your eyes on the project. Feel free to ping me off list if you want to get dirty with it all. (alone with anyone else who reads this). We are just starting to branch out of our comfort zone (ie atlanta) with testers etc. jonese On 10/22/07, Geoff Bowers [EMAIL PROTECTED] wrote: On 20/10/2007, jonese [EMAIL PROTECTED] wrote: Our office takes any comments to heart. Good and Bad! I'm glad you brought it up and the conversation / sign-ups it's spawned. Hopefully we'll get others involved and we'll have that MySQL / PostgreSQL sooner rather then later! How does Boomsocket compare to FarCry [1]? Are there any specific features you think make the whole Boomsocket story particularly compelling? If anyone else has any other thoughts please share them directly with us [EMAIL PROTECTED], here at CF-TALK or join our google group. http://groups.google.com/group/boomsocketalpha Have tried to join the boomsocketalpha list but I keep getting rejected. -- geoff http://www.daemon.com.au/ [1]: http://www.farcrycms.org/ ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291780 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Which query would be better?
Thanks all! I went with the IN. :) Will ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291781 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
Nice On 22/10/2007, henry ho [EMAIL PROTECTED] wrote: Look at some AOP framework for CF, and you'll find out. Coldspring - http://www.coldspringframework.org/ : From what I saw in the code, they use CFFILE to generate the cfm and CFINCLUDE it. They called it dynamic compilation - http://www.pbell.com/index.cfm/2006/7/3/How-ColdSpring-Implements-AOP-using-a-Decorator LightWire - http://lightwire.riaforge.org/ : Don't know how they did it, but they claimed their way is more efficient. Author of this project is Peter Bell, the owner of the blog posted abouve. Henry Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291782 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Have I found a CFFeed Bug?
I'm just doing a spot of feed-squirrel build work, and I think I've found a bug which I'm hoping someone else can verify (just to make sure I'm not losing it). Basically, if I CFFeed a URL that's valid RSS (for instance, http://samfarmer.instantspot.com/blog/rss.cfm?mode=full), I am getting the error The string -- is not permitted within comments. However, after looking at this, I'm wondering if this is only occuring on OSX. Can anyone else replicate this? It should work (it appears on work on the live windows box). Neil ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291783 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
Note that LightWire does not implement AOP so Peter's comparison is not entirely a fair one (and this is a common issue that crops up in comparisons between ColdSpring and LightWire - ColdSpring does a *lot* more than LightWire so it's pretty pointless trying to directly compare performance). Also, as others have noted, if you have an existing UDF or CFC method, you can easily add it to another CFC by assignment. You only need the CFFILE/CFINCLUDE trick when you are dynamically generating new functions to add to your application (as is down by Transfer ORM, ColdSpring, Closures for CFMX and many other projects - in fact, even Fusebox uses CFFILE/CFINCLUDE to manage compilation of XML to CFML). On 10/22/07, henry ho [EMAIL PROTECTED] wrote: Look at some AOP framework for CF, and you'll find out. Coldspring - http://www.coldspringframework.org/ : From what I saw in the code, they use CFFILE to generate the cfm and CFINCLUDE it. They called it dynamic compilation - http://www.pbell.com/index.cfm/2006/7/3/How-ColdSpring-Implements-AOP-using-a-Decorator LightWire - http://lightwire.riaforge.org/ : Don't know how they did it, but they claimed their way is more efficient. Author of this project is Peter Bell, the owner of the blog posted abouve. ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291784 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFINVOKE wierdness
So I am lazy and have been using CFINVOKE for my CFC's since DW has a nice drag and drop function for this. Lately, some of my CFINVOKE lines suddenly stopped working (they had been working for a few weeks prior). For instance, I have this: cfinvoke component=CFC.Schools method=GetSchoolInfo returnvariable=SchoolDetails cfinvokeargument name=School_ID value=#Session.School_ID#/ /cfinvoke Out of the blue I would start to get an error that School_ID is required for GetSchoolInfo, but that value was not passed in. I would copy, then delete and save the page, then paste the code back in, and post the page again, but still I get that error. So for grins I changed up to CreateObject for invoking this CFC, and it worked fine. Put the above code back in and it craps out still. Anyone else run across this, and if so were you able to figure out what was going on? Thanks, Bruce ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291786 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Have I found a CFFeed Bug?
HI Neiil, The link given by you works fine and I didn't see any error but an XML feed document. Is it that the case your browser is not able to parse it as a valid feed XML? I am using IE7 and didn't see any error. Jayesh Viradiya Adobe CF team -Original Message- From: Neil Middleton [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:55 PM To: CF-Talk Subject: Have I found a CFFeed Bug? I'm just doing a spot of feed-squirrel build work, and I think I've found a bug which I'm hoping someone else can verify (just to make sure I'm not losing it). Basically, if I CFFeed a URL that's valid RSS (for instance, http://samfarmer.instantspot.com/blog/rss.cfm?mode=full), I am getting the error The string -- is not permitted within comments. However, after looking at this, I'm wondering if this is only occuring on OSX. Can anyone else replicate this? It should work (it appears on work on the live windows box). Neil ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291785 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: programmatically add functions to a CFC
That is the crucial key I needed! Much easier than what I had tried to do with the meta data too -- bonus! like a cfinclude file (even with a dynamic file name) from inside the CFC Is this to get around the inability to nest cffunction tags in CFC's? That's definitely a hurdle... any speculation as to why CF doesn't offer us a Function object we could create and modify, without having to use CF-tags or cfscript? Or does it? I'd prefer to create a blank function object, then fill it up with the details... Hmm. Just how would I set the functionality of the function without a cffunction tag. I'd almost need... another function :P Well, alright, that's a little trickier than I had first thought. So it seems accepted practice to include a .cfm file from your component to get around that. Anyone care to play devils advocate against that practice? If I'm dynamically writing the .cfm file content (which I will be doing), I then just include that .cfm file within my function and reference my function (stored as a variable) from there. Interesting... Am I still on track, or wildly flailing in the wind? :) Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 1:16 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Jonathon, You're on the right track, but it's much easier than that. Here's some play code I just whipped up: cfscript function getVariablesExternal() {return variables;} function methodToInject() {return This method was Injected;} myCFC = createObject(component,test).init(); // get component myCFC.getVariables = getVariablesExternal; // inject variable scope getter into this scope myCFC.getVariables().injectedMethod = methodToInject; // inject a method into CFC variables scope myCFC.getVariables().this.injectedMethod = methodToInject; // also into public this scope writeOutput( myCFC.getVariables().privateMethod() ); // call private method from test.cfc writeOutput( myCFC.injectedMethod() ); // call injected method /cfscript It's really amazing the things you can do with this stuff :D PS here's my test.cfc: cfcomponent cffunction name=init access=public cfreturn this /cffunction cffunction name=privateMethod access=private cfreturn This is a Private Method! /cffunction cffunction name=publicMethod access=public cfreturn This is a Public Method! /cffunction /cfcomponent This is actually the concept of mix-ins, there has been some more formal code written about it, but you can do it like this, like a cfinclude file (even with a dynamic file name) from inside the CFC, you can get a struct of functions and loop over them, calling each or injecting them elsewhere, you can have a mixin() method that takes a function as an argument, and so on and so on. Really, lots of fun things here! -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291789 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: programmatically add functions to a CFC
Peter's a smart guy! I'm a lurker of his blog -- very interesting stuff (and admittedly mostly over my head) on application generation, which is one of my favorite topics! I'll have to check out LightWire -- I hadn't heard of it before. Jonathon -Original Message- From: henry ho [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 2:29 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Look at some AOP framework for CF, and you'll find out. Coldspring - http://www.coldspringframework.org/ : From what I saw in the code, they use CFFILE to generate the cfm and CFINCLUDE it. They called it dynamic compilation - http://www.pbell.com/index.cfm/2006/7/3/How-ColdSpring-Implements-AOP-using- a-Decorator LightWire - http://lightwire.riaforge.org/ : Don't know how they did it, but they claimed their way is more efficient. Author of this project is Peter Bell, the owner of the blog posted abouve. Henry Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291790 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Have I found a CFFeed Bug?
The browser isn't the issue - it's when I wash the rss through CFfeed that problems appear. I'm trying to track down the issue - there's no guarantees it's a problem with CF, but I can't see where it's coming from. N On 10/22/07, Jayesh Viradiya [EMAIL PROTECTED] wrote: HI Neiil, The link given by you works fine and I didn't see any error but an XML feed document. Is it that the case your browser is not able to parse it as a valid feed XML? I am using IE7 and didn't see any error. Jayesh Viradiya Adobe CF team -Original Message- From: Neil Middleton [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:55 PM To: CF-Talk Subject: Have I found a CFFeed Bug? I'm just doing a spot of feed-squirrel build work, and I think I've found a bug which I'm hoping someone else can verify (just to make sure I'm not losing it). Basically, if I CFFeed a URL that's valid RSS (for instance, http://samfarmer.instantspot.com/blog/rss.cfm?mode=full), I am getting the error The string -- is not permitted within comments. However, after looking at this, I'm wondering if this is only occuring on OSX. Can anyone else replicate this? It should work (it appears on work on the live windows box). Neil ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291788 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Have I found a CFFeed Bug?
Worked for me on my Max box. On 10/22/07, Neil Middleton [EMAIL PROTECTED] wrote: I'm just doing a spot of feed-squirrel build work, and I think I've found a bug which I'm hoping someone else can verify (just to make sure I'm not losing it). Basically, if I CFFeed a URL that's valid RSS (for instance, http://samfarmer.instantspot.com/blog/rss.cfm?mode=full), I am getting the error The string -- is not permitted within comments. However, after looking at this, I'm wondering if this is only occuring on OSX. Can anyone else replicate this? It should work (it appears on work on the live windows box). Neil ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291787 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
Jonathon, PHP guy eh? In CF there's no way to have a function in a function. Same with Java. Generally speaking, make another object. Or there's always passing functions as arguments. See, what it sounds like is you're coming at the problem backwards, however, that's not necessarily a bad thing. How about some functional programming? function add(n1,n2) {return n1+n2;} function subtract(n1,n2) {return n1-n2;} function doSomethingWith2Numbers(n1,n2, thingToDo) { return thingToDo(n1,n2);} writeOutput( doSomethingWith2Numbers( 5, 5, add) ); writeOutput( doSomethingWith2Numbers( 5, 5, subtract) ); (even runs on 6.1) Now, like I said, this is backwards from most CF, but totally allowable by the language. As for including a UDF cfm file in your cfc - this is a great idea, but I am interested in why you're going out on such a ledge, even if it's just because you've done enough PHP to warp your brain ;) -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: That is the crucial key I needed! Much easier than what I had tried to do with the meta data too -- bonus! like a cfinclude file (even with a dynamic file name) from inside the CFC Is this to get around the inability to nest cffunction tags in CFC's? That's definitely a hurdle... any speculation as to why CF doesn't offer us a Function object we could create and modify, without having to use CF-tags or cfscript? Or does it? I'd prefer to create a blank function object, then fill it up with the details... Hmm. Just how would I set the functionality of the function without a cffunction tag. I'd almost need... another function :P Well, alright, that's a little trickier than I had first thought. So it seems accepted practice to include a .cfm file from your component to get around that. Anyone care to play devils advocate against that practice? If I'm dynamically writing the .cfm file content (which I will be doing), I then just include that .cfm file within my function and reference my function (stored as a variable) from there. Interesting... Am I still on track, or wildly flailing in the wind? :) Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 1:16 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Jonathon, You're on the right track, but it's much easier than that. Here's some play code I just whipped up: cfscript function getVariablesExternal() {return variables;} function methodToInject() {return This method was Injected;} myCFC = createObject(component,test).init(); // get component myCFC.getVariables = getVariablesExternal; // inject variable scope getter into this scope myCFC.getVariables().injectedMethod = methodToInject; // inject a method into CFC variables scope myCFC.getVariables().this.injectedMethod = methodToInject; // also into public this scope writeOutput( myCFC.getVariables().privateMethod() ); // call private method from test.cfc writeOutput( myCFC.injectedMethod() ); // call injected method /cfscript It's really amazing the things you can do with this stuff :D PS here's my test.cfc: cfcomponent cffunction name=init access=public cfreturn this /cffunction cffunction name=privateMethod access=private cfreturn This is a Private Method! /cffunction cffunction name=publicMethod access=public cfreturn This is a Public Method! /cffunction /cfcomponent This is actually the concept of mix-ins, there has been some more formal code written about it, but you can do it like this, like a cfinclude file (even with a dynamic file name) from inside the CFC, you can get a struct of functions and loop over them, calling each or injecting them elsewhere, you can have a mixin() method that takes a function as an argument, and so on and so on. Really, lots of fun things here! -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right track? Jonathon ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291791 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: programmatically add functions to a CFC
More of just a plain newbie than a PHP-developer ;) Got hooked on CF straight out of the university (Hey, this is *way* easier than JSP's!) and been developing in relative isolation for the past two years. This mailing list alone has shown me the light more often than the Bible ;) Anyway, back to the topic! As for including a UDF cfm file in your cfc - this is a great idea, but I am interested in why you're going out on such a ledge, even if it's just because you've done enough PHP to warp your brain ;) I'm building an application generator of sorts. I'm storing the database schema data (Entities and their Fields) in CFC's (one for each Entity). Those CFC's contain generic CRUD DAO methods, and also a few other miscellaneous ones. I got the basics running, but now I'm to the part of adding Relationships to the CFC's. These relationships are dependencies that I'd like to have managed by ColdSpring -- ColdSpring looks for the set**() method for any dependencies, so I need to make sure that function exists in my CFC! If I'm attacking this problem wrong, feel free to shoot me straight -- I'll cough up some source code if you want to see exactly what's going on. There's not too much in it just yet, but I've already found it oh-so-useful, and if I could have it handle my schema relationships too, I'll be ecstatic. :) Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 4:23 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Jonathon, PHP guy eh? In CF there's no way to have a function in a function. Same with Java. Generally speaking, make another object. Or there's always passing functions as arguments. See, what it sounds like is you're coming at the problem backwards, however, that's not necessarily a bad thing. How about some functional programming? function add(n1,n2) {return n1+n2;} function subtract(n1,n2) {return n1-n2;} function doSomethingWith2Numbers(n1,n2, thingToDo) { return thingToDo(n1,n2);} writeOutput( doSomethingWith2Numbers( 5, 5, add) ); writeOutput( doSomethingWith2Numbers( 5, 5, subtract) ); (even runs on 6.1) Now, like I said, this is backwards from most CF, but totally allowable by the language. As for including a UDF cfm file in your cfc - this is a great idea, but I am interested in why you're going out on such a ledge, even if it's just because you've done enough PHP to warp your brain ;) -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: That is the crucial key I needed! Much easier than what I had tried to do with the meta data too -- bonus! like a cfinclude file (even with a dynamic file name) from inside the CFC Is this to get around the inability to nest cffunction tags in CFC's? That's definitely a hurdle... any speculation as to why CF doesn't offer us a Function object we could create and modify, without having to use CF-tags or cfscript? Or does it? I'd prefer to create a blank function object, then fill it up with the details... Hmm. Just how would I set the functionality of the function without a cffunction tag. I'd almost need... another function :P Well, alright, that's a little trickier than I had first thought. So it seems accepted practice to include a .cfm file from your component to get around that. Anyone care to play devils advocate against that practice? If I'm dynamically writing the .cfm file content (which I will be doing), I then just include that .cfm file within my function and reference my function (stored as a variable) from there. Interesting... Am I still on track, or wildly flailing in the wind? :) Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 1:16 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Jonathon, You're on the right track, but it's much easier than that. Here's some play code I just whipped up: cfscript function getVariablesExternal() {return variables;} function methodToInject() {return This method was Injected;} myCFC = createObject(component,test).init(); // get component myCFC.getVariables = getVariablesExternal; // inject variable scope getter into this scope myCFC.getVariables().injectedMethod = methodToInject; // inject a method into CFC variables scope myCFC.getVariables().this.injectedMethod = methodToInject; // also into public this scope writeOutput( myCFC.getVariables().privateMethod() ); // call private method from test.cfc writeOutput( myCFC.injectedMethod() ); // call injected method /cfscript It's really amazing the things you can do with this stuff :D PS here's my test.cfc: cfcomponent cffunction name=init access=public cfreturn this /cffunction cffunction name=privateMethod access=private cfreturn This is a Private Method! /cffunction cffunction
Re: programmatically add functions to a CFC
Well hey, your project fits the bill afaik for needing a mix-in of some sort. I guess Transfer and Reactor didn't fit the bill? It sounds like those are similar projects. Anyways, yes, a cfinclude will do it for ya. -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: More of just a plain newbie than a PHP-developer ;) Got hooked on CF straight out of the university (Hey, this is *way* easier than JSP's!) and been developing in relative isolation for the past two years. This mailing list alone has shown me the light more often than the Bible ;) Anyway, back to the topic! As for including a UDF cfm file in your cfc - this is a great idea, but I am interested in why you're going out on such a ledge, even if it's just because you've done enough PHP to warp your brain ;) I'm building an application generator of sorts. I'm storing the database schema data (Entities and their Fields) in CFC's (one for each Entity). Those CFC's contain generic CRUD DAO methods, and also a few other miscellaneous ones. I got the basics running, but now I'm to the part of adding Relationships to the CFC's. These relationships are dependencies that I'd like to have managed by ColdSpring -- ColdSpring looks for the set**() method for any dependencies, so I need to make sure that function exists in my CFC! If I'm attacking this problem wrong, feel free to shoot me straight -- I'll cough up some source code if you want to see exactly what's going on. There's not too much in it just yet, but I've already found it oh-so-useful, and if I could have it handle my schema relationships too, I'll be ecstatic. :) Jonathon ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291793 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: programmatically add functions to a CFC
I looked into both Transfer and Reactor, and while they're awesome for DAO, they don't really give me all I'm looking for (*entire* -- or at least most of it -- application generation). I have been referencing Transfer for ideas when building my own CFC's -- so there's definitely more than a little overlap. But in the end, I'd rather have something tailor fit to my needs than try to mold Transfer or Reactor into something it's not necessarily meant for. Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 5:03 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Well hey, your project fits the bill afaik for needing a mix-in of some sort. I guess Transfer and Reactor didn't fit the bill? It sounds like those are similar projects. Anyways, yes, a cfinclude will do it for ya. -- nathan strutz http://www.dopefly.com/ ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291794 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: programmatically add functions to a CFC
ColdSpring looks for the set**() method for any dependencies, so I need to make sure that function exists in my CFC! So you want to write something that will parse your existing CFCs to make sure Coldspring's Auto-wiring work? http://www.coldspringframework.org/docs/BeanFactory_Reference.htm#Autowiring Note that use of auto-wiring in Coldspring is optional. You can use the constructor-arg tag to handle the 'relationship'. Henry ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291795 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: programmatically add functions to a CFC
btw, since you're into code generation, have you checked this out? Illudium PU-36 Code Generator http://cfcgenerator.riaforge.org/ Highly customizable, and you can make your own template. Use of ORM is optional. ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291796 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: #$^% Forms!
Chris I took a look at that - I think it would be relatively straightforward to automate the generation of those snippets from a database table introspection or in a CMS too. Interesting stuff. Thanks for bringing it to our attention. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 10/22/07, Peterson, Chris [EMAIL PROTECTED] wrote: Check out this, makes it really easy and purdy =) http://www.cfcode.net/index.cfm/2007/9/21/The-search-for-a-dropin-form-s tyle-thats-bootyfull Chris Peterson Gainey IT Adobe Certified Advanced Coldfusion Developer ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291797 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: programmatically add functions to a CFC
Jonathan, What is it that Transfer doesn't provide for you, that you need in your application generation? Figured I would ask the question, as I'm always looking for areas in which Transfer canbe improved. Mark On 10/23/07, Jonathon Stierman [EMAIL PROTECTED] wrote: I looked into both Transfer and Reactor, and while they're awesome for DAO, they don't really give me all I'm looking for (*entire* -- or at least most of it -- application generation). I have been referencing Transfer for ideas when building my own CFC's -- so there's definitely more than a little overlap. But in the end, I'd rather have something tailor fit to my needs than try to mold Transfer or Reactor into something it's not necessarily meant for. Jonathon -Original Message- From: Nathan Strutz [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 5:03 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC Well hey, your project fits the bill afaik for needing a mix-in of some sort. I guess Transfer and Reactor didn't fit the bill? It sounds like those are similar projects. Anyways, yes, a cfinclude will do it for ya. -- nathan strutz http://www.dopefly.com/ ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291798 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFGRID row color
check out this Ray's blog post: http://www.coldfusionjedi.com/index.cfm/2007/8/20/Custom-grid-renderers-with-CFGRID Azadi Asim . wrote: In the HTML CFGRID, is there a way to change the background color of a row dynamically? For example, if I had a list of tasks, I'd like to change the background color if the task is urgent... Urgent is a field in the query object returned by CFC ... Regards, ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291799 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
coldfusion query problem
I have a input box wher I am getting the value for my where clause. INstead I am getting the error Error converting the varchar value to a column of data type int cfquery name=infoNote datasource=X SELECT apr.reqid, apr.requirement, aprm.sortorder,apr.req_prereq,apr.hidden,ap.school_division FROM trnAcademicProgramsAndRequirementsMapping aprm INNER JOIN trnAcademicProgramRequirements apr ON aprm.reqid = apr.reqid INNER JOIN trnAcademicPrograms ap ON aprm.degreeid = ap.id WHERE ap.school_division='#session.schoolcode#' and ap.id =cast('#form.test#' as int(4)) /cfquery ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291800 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: programmatically add functions to a CFC
On 10/22/07, Nathan Strutz [EMAIL PROTECTED] wrote: How about some functional programming? Closures! :) http://cfclosures.riaforge.org/ This lets you create functions on the fly - and of course it does it under the hood by writing to a file and including it... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291801 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: coldfusion query problem
why do you need to use cast? can't you just use cfqueryparam cfsqltype=cf_sql_integer value=#form.test#? -- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291802 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: coldfusion query problem
Instead of cast('#form.test#' as int(4)) I'd try #val(form.test)# and a cfqueryparam would probably help the situation as well Original Message --- I have a input box wher I am getting the value for my where clause. INstead I am getting the error Error converting the varchar value to a column of data type int cfquery name=infoNote datasource=X SELECT apr.reqid, apr.requirement, aprm.sortorder,apr.req_prereq,apr.hidden,ap.school_division FROM trnAcademicProgramsAndRequirementsMapping aprm INNER JOIN trnAcademicProgramRequirements apr ON aprm.reqid = apr.reqid INNER JOIN trnAcademicPrograms ap ON aprm.degreeid = ap.id WHERE ap.school_division='#session.schoolcode#' and ap.id =cast('#form.test#' as int(4)) /cfquery ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291803 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: parsing problem
Thanks heaps Azadi that worked well Seamus ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291804 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4