How to delete a post in House of fusion?

2010-05-27 Thread C S
Hi: Due to some privacy issues I need to delete some of my posts and the replies to them in House of fusion but the option is not available as a default one. Is it a way? Please help me because the privacy issue is very important

Re: How to delete a post in House of fusion?

2010-05-27 Thread C S
All posts that go there also get sent out on the mailing list and google tends to be pretty quick archiving them. Even if you delete the post, it's likely that it's out there on the net for good. On Thu, May 27, 2010 at 10:34 AM, C S cortical...@yahoo.com wrote: Hi: Due to some

Re: How to delete a post in House of fusion?

2010-05-27 Thread C S
If you have a list of posts, I'll look at them for deletion and/or editing. As stated by others, I can only do this 'locally' and it will not effect the various mirrors and archives of the lists. I'm at a client and will not be able to address this until later tonight or tomorrow. Sorry.

Re: How to delete a post in House of fusion?

2010-05-27 Thread C S
On Thu, May 27, 2010 at 11:55 AM, C S cortical...@yahoo.com wrote: That's great. This is the best news for me. Even if it doesn't mean it will be deleted from other copies, your effort means a world to me. Tomorrow is just fine. I really really appreciate your effort and can't thank you

Re: cfimage: jpg that is really a gif

2009-11-17 Thread C S
Not the best option What's a better option then? I think it depends on what they actually need to do with the image. If they just need to display it, reading the header bytes seems a bit awkward. So something more dynamic would be better. (I posted one option in another response)

Re: fedex rates

2009-06-30 Thread C S
Unable to find a constructor for class org.apache.axis.types. NonNegativeInteger that accepts parameters of type ( java.lang.Integer ). NonNegativeInteger is expecting a string (ie java.lang.String). Apparently listLen(..) returns a java.lang.Integer: cfoutput ListLen() object type =

Re: pagination and large recordsets (mysql)

2009-06-18 Thread C S
As for that link...oh my gosh...sql injection anyone? +1 The estimation using LIMIT and FOUND_ROWS() seems okay. But I would re-write the where clause logic to make it safer, and definitely use cfqueryparam. ~| Want to

Re: Another excel file reading question

2009-06-17 Thread C S
I'm using the following code to read an excel file. But it only runs once and I have to restart coldfusion before it will be successful again, ... rs.close(); I do not use dynamic odbc excel connections much. But one thing that jumps out at me is you are closing the resultset, but not

Re: cfsqltype for date and time

2009-05-28 Thread C S
What cfsqltype in a cfqueryparam should I use to insert now() into a mySql database (datetime data type) so it keeps the date and time? cf_sql_timestamp. You might double check your syntax and the data type. It works fine for me. INSERT INTO Table (DateTimeColumn) VALUES ( cfqueryparam

Re: Concat Wav Files - Prob w CF accessing Java Static Props?

2009-05-28 Thread C S
Dumping the available methods on AudioFileFormat and putting around the javadocs seems to imply that Type.WAVE is a static property, which I understand CF can have problems accessing?? Type is an inner class. You can use $ to reference it: cfset AudioFileFormatType = createObject(java,

Re: Parsing large CSVs and inserting in MSSQL

2009-05-26 Thread C S
My advice would be don't use CF to do this. DTS (or SSIS) is quite capable of doing this in about 1/30 the time that CF is able to do this. One of our DTS packages consumes a file of over 300k rows in less than 15 seconds every few minutes. You can't get that with CF no matter how hard you try :)

Re: Storing SSN ... I know, I know

2009-05-11 Thread C S
At first they were talking about doing a CSV download and upload, to which I replied hell no. O.M.G. You may as well display names and SSN's randomly on the home page as an ad banner. But it sounds like you will need some social security numbers for testing. I am sure the clients would

Re: Finding schema details with CF 6.1 ?

2009-03-30 Thread C S
What is the equivalent for columns ? Could I output the Table's schema details ... (column name, data type, size, format, NULL allowed ?, PrimaryKey, Indexes) ...ie: like a DUMP, without the data ? Use information_schema to access database metadata

Re: Empty File Error Trapping

2009-03-18 Thread C S
I am trying to trap an error when someone uploads a file that is 0 length. I get this error now There may be a better option, but have you tried catching a specific exception type? Look at the top of the stack trace. Then try and catch that exception type. cfcatch ... cfcatch

Re: Append Arrays with Structures

2009-03-11 Thread C S
But it is odd, indeed, why return anything at all. It depends on the class. Some use it and some do not http://java.sun.com/j2se/1.4.2/docs/api/java/util/AbstractCollection.html#add(java.lang.Object) I don't believe that it ever does return false and the docs do not indicate that it does.

Re: cfimage problem resizing PNG

2009-03-11 Thread C S
Trying to resize a PNG with the following code and the image linked below and it's coming out all screwy. Any ideas as to why this is happening? Unfortunately, I do not know the cause. But are you sure it is the resize operation? I get the same results just doing a simple read.

Re: Append Arrays with Structures

2009-03-11 Thread C S
It may not be due to the java link. I found a reference that says ArrayAppend returned a boolean back in the days of CF 4.5. So it may just be a carry over. This would suggest that it *would* be to do with the java link; ColdFusion 4.5 was written in C++ ;) No, I just meant that the

Re: Append Arrays with Structures

2009-03-11 Thread C S
Ah, we are at cross wires! Well that makes a lot more sense. That is what I get for only reading half of the thread ... Anyways, I wonder if the OP has found his solution yet ;) Wait .. there was an OP? ;-) ~| Adobe®

Re: Inner, Left and Right joins returning the same records AKA Tough SQL relationship part deux

2009-02-26 Thread C S
FROM tableA p LEFT OUTER JOIN tableB e ON (p.use_no = e.use_no AND p.year = e.year and e.duplicate_set is not null) LEFT OUTER JOIN tableB d ON (e.duplicate_set = d.duplicate_set AND e.year = d.year) Yes, I think that would work. There is probably a more elegant method, but

Re: Tough SQL relationship

2009-02-25 Thread C S
Maybe I need glasses, but I missing something here. The first three report columns look like a count(*) from tableA by use_no and county. What is the tie-in with TableB and the record_with_dups column? county rec_type records record_with_dups 1 X 2 3 1

Re: Tough SQL relationship

2009-02-25 Thread C S
I think something like ((A join B on use_no) join A on county) union A will effectively merge both table so you have all records full complete in the result. Then you can window / partition that for yout record_with_dups column. Jochem I am still wrapping my head around it. But from what I

Re: CFIMAGE - writing to browser

2009-02-06 Thread C S
cfimage's write to browser function only used the png format which my system does not support. The default is png, but you can specify another format like jpg. I do not think gif is supported. ~| Adobe® ColdFusion® 8

Re: Using FileExists function in a CFIF tag

2009-02-03 Thread C S
cfset PhotoLocation = http://mls.northernweb.net/images/Photo; .. Any idea of what I am doing wrong? Is there a better way to test to see if a file exists in order to avoid broken pictures on the page? FileExists expects an absolute path, not a url ie cfset PhotoLocation =

Re: Using FileExists function in a CFIF tag

2009-02-03 Thread C S
cfset PhotoLocation = http://mls.northernweb.net/images/Photo; IIRC, FileExists expects an absolute path, not a url. ie cfset PhotoPath = c:\ColdFusion8\wwwroot\yoursite\yourImage.jpg cfif FileExists(PhotoPath) found cfelse not found /cfif

Re: CF8 and Axis

2009-02-03 Thread C S
Hi! Does anyone know which version of Axis (used by CF to consume webservices) is shipped with CF8? Version 1.2.1 cfset axis = createObject(java, org.apache.axis.Version) cfoutput version #axis.getVersion()#br version text #axis.getVersionText()#br /cfoutput

Re: 500 Event Handler Exception error when I try to create a java object

2009-01-16 Thread C S
500 Event Handler Exception. That's all it says. I've turned on debugging but it doesn't display any debugging information either. What do your log files say? Leigh ~| Adobe® ColdFusion® 8 software 8 is the most important

Re: Coldfusion Audio conversion

2009-01-08 Thread C S
Are you calling it with cfexecute or the commandline? I've had ffmpeg do that to me with a precompiled version. Where did you get your's from? Or did you build the latest? Adrian Adrian, Did that happen with cfexecute, at the command line or both and what o/s? I am wondering if this is a

Re: Coldfusion Audio conversion

2009-01-07 Thread C S
I seem to remember a recent update that addressed an issue w/ ffmpeg and cfexecute. Have you checked the hotfixes @ Adobe? Yes, the issue was ffmpeg would hang. It was because ffmpeg writes to stdout and stderr, but cfexecute was only capturing stdout. The pre-fix work-around (for windows)

Re: Ranking questions in CFFORM

2008-12-22 Thread C S
I found some javascript, but am not sure how I can implement it into a CFFORM. I need twenty of these. Could anyone offer some advice on how I can either do a ranked selection box or how I might be able to implement this code? The javascript is hardcoded to work with a single selected

Re: sql query help

2008-12-05 Thread C S
In MS SQL Server it's ISNULL(), but can't speak for other platforms. Can't recall what it is in Oracle, might just be NULL(). IIRC in Oracle it is NVL. There is also COALESCE, which is usually a safe bet with most databases.

Re: Need help with CF / Java problem...

2008-11-27 Thread C S
John Skrotzki wrote: I want to use a java class for extracting email sections from .eml file Just curious, what benefits does that jar offer you over plain javamail? http://java.sun.com/products/javamail/ get yourself the latest version of eclipse, make sure you have the same JRE installed on

Re: Need help with CF / Java problem...

2008-11-27 Thread C S
You can also use the JDT compiler via JavaLoader, and compile and then load the classes on the fly, within CF. I like that a lot, personally. A fast way to do Java + CF. I've got some code that does it, been meaning to wrap it up into a little project or something. Sounds interesting. Do have

Re: Preplexing Date Range Problem

2008-11-19 Thread C S
In case anyone is interested, my brute force solution is below. She aint pretty, but she works. Mike, That is not bad. But you could improve it even more if you looped by year, instead of day. That would eliminate most of the iterations. Not highly tested, but something like this.

Re: Official ColdFusion IDE announced

2008-11-18 Thread C S
Don't forget the one for CF9 as well. http://labs.adobe.com/wiki/index.php/Centaur What features are in Centaur? Language Enhancements ... CFFINALLY and CFCONTINUE Finally.. cffinally. It is about time ;-) ~| Adobe®

Re: Handling large ingeters..

2008-11-18 Thread C S
Well I had other workarounds, but my intent was to findout what should we do in cases like this.. How should I handle large integers? It sounds like MOD only works with 32 bit integers. If that is the case, then you will have to use another method, like the ones suggested or

Re: subtotal SUM in group query

2008-11-17 Thread C S
Do I need to do some kind of a loop to get the subtotals for each account? Thanks. There are a few ways to do it. One option is to use a variable to accumulate the subtotals within your inner cfoutput. cfoutput query=GetCostSum group=Acct strong#Acct#-6405/strongbr /

Re: Using picnik export

2008-11-15 Thread C S
As a follow up here is what I have been currently trying but getting and Exception occured in JPG processing. segment size would extend beyond file stream length Exception occured in JPG processing. segment size would extend beyond file stream length That may be an issue that was resolved in one

Re: Using picnik export

2008-11-15 Thread C S
Darn, I forgot to post the second link: http://www.garyrgilbert.com/blog/index.cfm/2007/9/28/CFIMAGE-Bug ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: : Re: Using picnik export

2008-11-15 Thread C S
Thanks for the link to the House of Fusion archive. I found the solution in the thread. Just curious, what version are you using? I wondering if the problem was resolved in later hotfixes, because the code worked for me. Leigh

Re: : Re: : Re: Using picnik export

2008-11-15 Thread C S
Leigh, I'm using the same version that you are 8,0,1,195765. Local is the Developers Edition on Vista 32 bit and on the server is Enterprise Edition Windows Server 2003 R2 Standard 32 bit. I could not get the code to work on either. Okay. I thought it might be a version difference. But at

Re: Deleting datasource programmatically

2008-11-13 Thread C S
Have looked at the adminapi's datasoure.cfc, according to it, one method named DeleteDatasource would require only one parameter of dsnname to delete a current cf8 datasource but it didn't. Did you login first? cfscript admin = createObject(component,cfide.adminapi.administrator);

Re: Parsing timestamp set by phpBB

2008-11-03 Thread C S
I have a date represented as 993124800 in my database that php's date() function is able understand and format. I'm running into dead ends trying to have ColdFusion parse this date correctly. That date should work out to... That looks like an epoch time. Try

Re: Not exactly cf question but hope it's ok

2008-11-01 Thread C S
I'm trying to figure out if there's a way to programmatically determine if a computer (with Windows OS including XP home/pro, Vista) has .NET Framework 2.0 installed with DOS/Window's batch/utility programming. (Purely from a quick google..) what about checking the folder structure

Re: Not exactly cf question but hope it's ok

2008-11-01 Thread C S
I'm trying to figure out if there's a way to programmatically Yeah, that's one approach, I now have some other ideas as well, thanks. Let us know what you end up with. In case I ever need to do this in the future ;-) ~|

Re: Not exactly cf question but hope it's ok

2008-11-01 Thread C S
Check the registry. Unfortunately, I did not know how to read registry from dos with xp. Thanks for that. Learn something new every day .. C:\reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP ~| Adobe®

Re: Not exactly cf question but hope it's ok

2008-11-01 Thread C S
Bobby is right and your approach is nice as well. And if I need to check multiple programs, I may try the following: regedit -e installedprograms.log H KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall then try to find them in the extracted/exported file. This approach

Re: Blowin our own horn: New CF Site

2008-10-31 Thread C S
A small thing. When you click Profiles the menu disappears. So you can no longer navigate unless you use the browser's back button. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get

Re: Are these valid SQL statement in a QonQ?

2008-10-30 Thread C S
Max((DateDiff('d',queryname.columnname,now( AS Age Sum(IIf(DateDiff('d',queryname.columnname,now())=90,1,0)) AS Response I do not think so. AFAIK, QoQ only support basic aggregate functions like MAX and SUM, not DateDiff or IIF.

Re: admin api login error handling

2008-10-28 Thread C S
I've never really used the admin api until today. I'm having a problem catching a bad login. I tried wrapping the instantiation/login in a try catch, but it seems to be ignoring the catch. Is there any easy way to catch a bad admin api login? I'm not seeing anything in the docs or

Re: CFCHART

2008-10-23 Thread C S
Hi everybody ! I'm running Coldfusion 6.1 I would like to know if it si possible to display the value of a bar above this bar? It is possible with MX7. You can create a custom style, with a dataLabel pattern $(value)%. http://livedocs.adobe.com/coldfusion/7/htmldocs/1431.htm But I

Re: cfimage - resize then force download?

2008-10-19 Thread C S
Think you'll have to force the download of the resized image but can't you use cfcontent to delete it with deletefile=true ? You could also try extracting the image bytes and using cfcontent's variable attribute. Leigh ~|

Re: Ordered Argument names

2008-09-26 Thread C S
using your code on CF8 (8,0,0,176276), i get the structs returned in the same order (alpha by key name) each time. neither arbitrary nor random. With 8,0,1,195765 I get a different order each time. Unless I drop the argument names. cfset doStuff( 'first' , 'second' , 'third' ) /

Re: Ordered Argument names

2008-09-26 Thread C S
That's pretty funky (the difference in behavior between hotfixes). Altho i don't believe structs are inherently meant to be 'ordered'. Yes, that is my understanding too. Interesting that it does seem to return the correct order if you do not use named arguments. cffunction name=doStuff

Re: Ordered Argument names

2008-09-26 Thread C S
Well it has to really - unnamed arguments in a random order would be impossible to use. But it'd be handy if they made named arguments work in the right order too. {Smack} Of course the reason it works has nothing to do with arguments object itself. Talk about Friday density ;-) My

Re: How to parse a text file...

2008-09-18 Thread C S
cfset active_photos = #replace(active_photos, That just gave me a file with the text, active_photos, and a return symbol after it... Remove the quotes from active_photos so CF knows it is a variable to be evaluated ;-)

Re: How to parse a text file...

2008-09-18 Thread C S
cfset active_photos = #replace(active_photos, #chr(10)chr(13)##chr(10)chr(13)#, , All)# Also, check Barney's suggestion: replace sequential newlines with a single newline and such. ~| Adobe® ColdFusion® 8 software 8 is

Re: How to parse a text file...

2008-09-18 Thread C S
I need to get rid of the column headers in the first line, and then get rid of any linefeeds after the last piece of data. This seemed fairly straightforward when I started... ...and it should still be fairly straightforward: cfset data = listRest(data, chr(10)) / cfset data = trim(data) /

Re: SQL Help

2008-09-16 Thread C S
When there are records with duplicate emails addresses, I need to include one of them. So you are trying to display one record for each email address? You could try something like this. Not tested, but the idea is to select a single PK for each email. Then use a JOIN to display the details

Re: SQL Help

2008-09-16 Thread C S
You could try something like this. Not tested, but the idea is to select a single PK for each email. Then use a JOIN to display the details for those PK's. Note, the previous query assumes it does not matter which record is returned.

Re: SQL Help

2008-09-16 Thread C S
I need to get a record set used to pick a winner, including just one of the records from the duplicate email entries. If it does not matter which one, try the query I posted in my first response. The syntax is not tested, but it has the right concept.

Re: SQL Help

2008-09-16 Thread C S
It also begs the question, if they were only supposed to have one entry per e-mail address, why wasn't there error checking or a constraint on the table to force this in the first place? True enough. I was thinking the same thing myself ;-)

Re: Ben Nadel's POI..

2008-09-04 Thread C S
I don't think it's a case issue. I tried it with mixed, all lower and all upper and continue to get the same response. Do any of these apply? http://www.bennadel.com/blog/80-ColdFusion-SQL-Error-Table-Is-Not-Indexable-By-Name.htm

Re: Connection String for MySql

2008-08-27 Thread C S
Any ideas anyone. :) William It depends on which driver you are using. Something like this should work with ColdFusion 8. I have no clue if there any differences for remote databases ;-) cfscript Class = createObject(java,java.lang.Class).forName(com.mysql.jdbc.Driver);

Re: Text to image solution, maybe use sIFR?

2008-08-27 Thread C S
I've tried and got it all plugged in with no success and it would be just my luck that the How To Use link would be broken on the website. I have been working on it for about 4 hours. Time to ask for help. Client is coming at 11 tomorrow and I have to have something for them to look at.

Re: Text to image for Non CSS font resolution

2008-08-27 Thread C S
I think I have everything correct, but the background of my dynamically created image is black. Nothing I do will change that. .. cfset myImage=ImageNew(,500,20) Not to rule out other options, but try setting the background color when the image object is created: cfset

Re: cfimage issue

2008-08-02 Thread C S
Yep, you are right. Works with jpg but not with gif or png. It may have to do with the color pallete of the gif you are using. For example if you run the following code, the text appears red on the Google logo. Presumably because the logo's color palette contains red, or a very similar color.

Re: cfimage issue

2008-08-02 Thread C S
Perhaps it has to do with the color palette that the .gif is created with? Yes, I think so too. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: (ot) SQL 2005 Studio Express - find and replace with newline character

2008-07-23 Thread C S
Just to follow up: From what I can tell you cannot use special characters with the find + replace option in the Studio Express _editor_. I ended up using another editor. Thanks for the response Sonny. I know my original question was about as clear as .. mud ;-)

(ot) SQL 2005 Studio Express - find and replace with newline character

2008-07-18 Thread C S
OT: SQL 2005 Studio Express - find and replace with newline character Does anyone know how to find and a character and replace it _with_ a newline using SQL Server 2005 Studio Express? For example, I would like to replace all |'s in the following string one|two|three|four|five|six So

Re: (ot) SQL 2005 Studio Express - find and replace with newline character

2008-07-18 Thread C S
CHAR(13) + CHAR(10) Thanks, but I mean using Studio Express's find + replace option. It is such a simple thing, but it has me stumped. I have tried every combination I can think of. No joy. ~| Adobe® ColdFusion® 8 software 8

Re: (ot) SQL 2005 Studio Express - find and replace with newline character

2008-07-18 Thread C S
You're doing a code search? I assumed you were trying to format data being returned by a query. Sort of. I am working with some ad-hoc sql scripts. Sorry, if I was not clear. I know this is OT. I posted in the hopes that someone else using Express Studio might know the magical character(s).

Re: cfprocparam and varchar(max)

2008-07-16 Thread C S
cfprocparam dbvarname=@affiliateID variable=#val(arguments.affiliateID)# cfsqltype=CF_SQL_INTEGER / I think the attribute should be value not variable. Also, I thought dbvarname was deprecated ? ~| Adobe® ColdFusion®

Re: cfexecute and logparser

2008-07-02 Thread C S
Keep in mind I am reading this with only half a brain today .. Here is what I have now. cfoutputcfsavecontent variable=querytouselogparser select * from C:\ColdFusion8\logs\application.log -i:csv/cfsavecontent/cfoutput It looks like you have the .exe (logparser) in the arguments. If that

Re: cfexecute and logparser

2008-07-02 Thread C S
ie. ditch the logparser command Yes .. what he said ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive:

Re: How to select an entry from an array

2008-06-23 Thread C S
Just remember to add 1 to the result. And remember java will perform a case sensitive search. So indexOf(XYZ) may return different results than indexOf(xyz). cfset myArray = [ apple, xyz, orange, pear] cfset index1 = myArray.indexOf(XYZ) + 1 cfset index2 = myArray.indexOf(xyz) + 1 cfoutput

Re: writing to ms excel with jexcel [heur SPAMTRAP]

2008-05-11 Thread C S
therefore how would you translate this formatting stated above cfscript outFile = createObject(java, java.io.File).init( e:\temp\excel\test.xls ); workBook=createObject(java,jxl.Workbook).createWorkbook(outFile); labelObj=createObject(java,jxl.write.Label);

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-09 Thread C S
Here is a down-and-dirty example. I realized the snippet above does not account for lines broken across the grabBytes barrier. So that alteration is needed. But the code snippet should give the basic idea at least. ~|

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-09 Thread C S
I haven't tried it myself, but Java does have a tail command that should do exactly what you want. m!ke That sounds very promising. I will take a look at that. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-09 Thread C S
I haven't tried it myself, but Java does have a tail command that should do exactly what you want. m!ke Michael, I have done some searching, but I am still unclear on the tail command. I may be overlooking the obvious, as I have not had my full measure of coffee yet ;-) Can you tell me a

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-09 Thread C S
Sorry for the confusion. I meant OS rather than Java. It's been a long week for me. ;^) If it helps, you are not the only one .. ;-) If you are on *nix, there is a built-in tail command. Yes, it has been a while, but *nix tail was my first thought. But I guess I was still hoping there was

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-09 Thread C S
You could shell out (CFEXECUTE) the tail command to get those lines. Michael, Good suggestion. Tail works very well. Cheers. cfset numOfLines = 10 cfset logFilePath = server.coldFusion.rootDir /logs/exception.log cfexecute name=c:\program files\Windows Resource Kits\tools\tail.exe

Re: CF8: Reading a file from the end instead of the beginning?

2008-05-08 Thread C S
I have a log file that I'm looking to parse. I only care about the last entry. Is it possible to read in the file, then loop over it from the end, rather than the beginning? Here's the code I've got right now. It works well, but why loop over parts that aren't needed right? I do not think

Re: closing JDBC recordsets

2008-04-30 Thread C S
Actually, to answer my own question, I think that if I call the close() method for the passed JDBC recordset after I've done with using it in other methods then this should do the trick. Am I right? Actually, to answer my own question, I think that if I call the close() method for the passed

Re: closing JDBC recordsets

2008-04-30 Thread C S
Yes, I can convert it into a cfquery object, and a lot of the time I will, but I also want to be able to insert the data into another table in another db which I can do directly rather than converting it to a query first. Hence the reason to split it into separate methods. Personally I would

Re: Query Help Please

2008-04-29 Thread C S
select *, exists ( select * from orders where date between #date1# and #date2# ) as hasOrdered from customers order by name, id Use CFQUERYPARAM, of course. Another variation is a left join. Ditto on using cfqueryparam. SELECT c.ID, c.Name, c.Email, SUM(CASE WHEN o.Date IS NULL THEN 0

Re: Query Help Please

2008-04-29 Thread C S
I dont believe this is working with Access DB SUM(CASE WHEN o.Date IS NULL THEN 0 ELSE 1 END) ordersFound I think Access's version of CASE is IIF(..). Try using IIF instead and also try the query Barney suggested. One of them should work.

Re: cfexecute - at my wits end!

2008-04-25 Thread C S
It is like sox isn't closing and leaving memory like it should be, but if I run it directly from the command line, I don't have that problem. Try Ben Forta's tip of adding /c as an argument. This tells the command interpreter to run and terminate upon completion. I had a similar problem

Re: java List?

2008-04-06 Thread C S
Just curious, what is the method signature? I would have expected ArrayList, Vector, etcetera to work, since they all implement java. util.List. Also, what does your java wrapper look like? ~| Adobe® ColdFusion® 8

Re: java List?

2008-04-06 Thread C S
i'm working with an incredibly picky java lib. one key method requires a java List (really, it barfs on ArrayList, etc.). Just curious, what is the method signature? I would have expected ArrayList, Vector, etcetera to work, since they all implement java.util.List.

Re: java List? [heur SPAMTRAP]

2008-04-06 Thread C S
me too but as i said it's incredibly picky (it being jfreechart). it wants a java.util.List nothing else. it's signature: You are not kidding. It does seem to be picky. Can you psych-it-out by using java.util.Arrays.asList(...)?

Re: java List? [heur SPAMTRAP]

2008-04-06 Thread C S
A List is a List. There has to be some other explanation for the weirdness. Duh! I was accidentally calling init(). Obviously that does not work with an abstract class ;) This seems to work: cfscript cfArray = [ javacast(double, 15.0), javacast(double, 22.5) ]; Box = createObject(java,

Re: java List? [heur SPAMTRAP]

2008-04-06 Thread C S
Paul, what exactly is the error? Is CF not finding it? Can we see the code you're attempting at least? Yes, please. Because I am able to pass in a CF array without problem. Granted, I am using an abstract class. ~| Adobe®

Re: Displaying POI output in a browser on CFMX 6

2008-03-30 Thread C S
cfheader name=content-length value=#ArrayLen(ExcelByteData)#/ cfheader name=content-disposition value=attachment; filename=#xls_file# .. Obviously this is because 6 doesn't have this attribute. Assuming you do not wish to write the bytes to disk, you could write to the response outputstream.

Re: CF8: Class not found: coldfusion.sql.QueryTable

2008-03-28 Thread C S
I can create this class with CreateObject(Java, coldfusion.sql.QueryTable) from a CF page, but my java code (running in the same JVM, configured as a servlet) apparently cannot. BTW, I compile the java code using a reference to the cfusion.jar file on my local machine; the code only runs inside a

Re: Weird

2008-03-27 Thread C S
I get an error Variable TEMP is undefined. I get an error too. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k

Re: turn integer list into list of characters

2008-03-27 Thread C S
cfset list = valuelist(myquery.columnName) / ... or use the QuotedValueList() function, if the values need to be quoted. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Weird

2008-03-27 Thread C S
It's a CGI var, which means it will exist on some servers and not others. Cool. I did not realize that. I didn't realise that the cgi 'scope' was searched automatically by CF when trying to identify a variable. Why oh why?! I forgot how many scopes CF searches. One more reason to scope

Re: turn integer list into list of characters

2008-03-27 Thread C S
cfqueryparam doesn't care that the input is not quoted: Duh! Even better. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: String function question

2008-03-24 Thread C S
The biggest problem I am having is getting the columns for the form to line up properly (they are a series of radio buttons). I can get all of the values and the text fields fill in properly. The radio button values fill in with what I select, just not in the correct column. Did you ever try

Re: Date Range Search Problem - when it's integers stored and not dates

2008-03-24 Thread C S
The problem with that is the same problem as the previous example I posted though. Try searching for dates between 10/15/2006 and 04/14/2007 Given those search dates, how do you want to handle records with a year only (2006 or 2007). Same question for the month.

  1   2   >