How to Determine CFC Method Called From OnRequestStart?

2009-07-11 Thread Matthew Reinbold
I'm currently trying to add logging to a webservice I've created. I'm not crazy about numerous lines of cflog inside the webservice itself; it seemed that I should be able to put a single line in the application.cfc's OnRequestStart method (not OnRequest as that won't work for remote calls)

Re: How to Determine CFC Method Called From OnRequestStart?

2009-07-11 Thread James Holmes
You could try to put the logging in one place in the webservice cfc; in the pseudo-constructor area. Since that's in the CFC, perhaps isSOAPRequest() will work there (too lazy to check). mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/7/11 Matthew

Re: Coldfusion 8 Flash Remoting Issue

2009-07-11 Thread Simon Bailey
TBH this sounds like a mapping issue to your CFC/Method. Have you tried simply adjusting your service path? Looking at your path below you have a directory called com in your ColdFusion root, then a cfc in that com directory called testCFC and a method in that cfc named testReturn.

Re: Coldfusion 8 Flash Remoting Issue

2009-07-11 Thread heath stein
Thanks guys for the help, I found the issue , it was the OnRequest method in my Application.cfc. I had forgot that I put a stock Application.cfc in the main site folder. I commented out the OnRequest method and and my remoting calls started working correctly. It makes sense now that I think

Re: Get Query Column Names

2009-07-11 Thread Arsalan Tariq Keen
Hey Scott this function query.ColumnList() is not documented in CF8 ... is it? I am asking this because its not working with me :( -- From: Scott Stroz boyz...@gmail.com Sent: Sunday, July 12, 2009 12:38 AM To: cf-talk cf-talk@houseoffusion.com

Re: Get Query Column Names

2009-07-11 Thread Arsalan Tariq Keen
Thanks Scott... I was using the query.ColumnList as function instead of variable/list :) thanks man! Regards, Arsalan -- From: Arsalan Tariq Keen arsalk...@hotmail.com Sent: Sunday, July 12, 2009 12:42 AM To: cf-talk cf-talk@houseoffusion.com

Get Query Column Names

2009-07-11 Thread Arsalan Tariq Keen
Hi friends... Is there any way in CF8 with which I can get the list of column names my database query returns. For example I am using a query: SELECT * FROM xyz Is there any way to know which columns are returned?? Regards, Arsalan

Re: Get Query Column Names

2009-07-11 Thread Scott Stroz
Yep, you you are looking for queryName.columnlist. So if your query looks like this: cfquery name=myTest datasource=myDB SELECT * FROM xyz /cfquery You can get the list of columns by looking at myTest.columnList. On Sat, Jul 11, 2009 at 2:25 PM, Arsalan Tariq Keenarsalk...@hotmail.com