Re:Date problem with CFMX and Oracle

2003-09-17 Thread Brad Howerter
6.1 makes a change that breaks code like this. This was already covered on a different mailing list. See http://www.mail-archive.com/[EMAIL PROTECTED]/msg01644.html for details. You'd do well to use cfqueryparam with a cfsqltype of cf_sql_date and/or use oracle's TO_DATE function as the other

CFRETURN has incorrect documentation

2003-07-28 Thread Brad Howerter
CFRETURN's documentation says that a maximum of one CFRETURN is allowed per function. But I have code that does multiple CFRETURNs and it works just fine. Let's not argue whether that's a good programming practice, but do you think Macromedia will ever change ColdFusion to disallow multiple

CFRETURN has incorrect documentation

2003-07-28 Thread Brad Howerter
In the CFML reference, in the usage section of the cfreturn page. It's also that way on the livedocs page for cfreturn. Where in the documentation does it say this? I can't find it in the CFML Reference. On Monday, Jul 28, 2003, at 11:05 US/Pacific, Brad Howerter wrote: CFRETURN's

Firefly Remoting from CFMX

2003-06-23 Thread Brad Howerter
Igor, my coworkers are trying to do the same thing. If we discover a way to do it, we'll post here. If you beat us to it, please let us know. -- Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4

Alternative Component Browser

2003-06-20 Thread Brad Howerter
Are there any non-Macromedia component browsers available to download? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

is an object with a lot of methods a memory buster?

2003-05-29 Thread Brad Howerter
It makes sense to me. It works like I thought it should. After all, functions and methods are data (especially if you cache them)!! Thanks for getting a definitive answer, Sean. OK, I have the full explanation from the product team now and the behavior actually makes perfect sense once you

is an object with a lot of methods a memory buster?

2003-05-27 Thread Brad Howerter
If I have a CFC that has a lot of methods and I create, say, 1000 of these objects, does coldFusion use a lot of memory, or is it not much worse than creating 1 of the objects? In other words, are the methods shared across objects, or does it recreate them for each new object? Well,

is an object with a lot of methods a memory buster?

2003-05-27 Thread Brad Howerter
This works today like I would expect, even given Sean's original response. Changing the CFC code should have no effect on a cached object. If it did, I would consider that a bug. The new objects created would get references to the new class file, the old objects would keep references to the

CFCs - get'ers Vs. return object

2003-03-31 Thread Brad Howerter
I just put all the CFC's in a web accessible directory and then don't put 'access=remote' on them if I don't want them to truly be accessible. Don't you want CFC's in a web accessible dir if you want to use them for web services? Or is that like a clueless newbie question? That's actually a

accessing parent cfc's variables

2003-03-29 Thread Brad Howerter
be available? If the object is not inheriting its parent, why would have access to the unnamed scope? On Friday, Mar 28, 2003, at 08:02 US/Pacific, Brad Howerter wrote: The child CFC automatically inherits all of its parents values, so to me it seems redundant to call a method to get them. That's true

Any wanna help? Trying to order output by the number that's part of a varchar field...

2003-03-29 Thread Brad Howerter
Hi, all... I'm trying to order street addresses. You need to replace all the numbers with a fixed length zero filled number. You could do it like this: cfset zeroes[1] = '0' cfset zeroes[2] = '' cfset zeroes[3] = '000' cfset zeroes[4] = '00' cfset zeroes[5] = '0' cfset zeroes[6] = ''

accessing parent cfc's variables

2003-03-29 Thread Brad Howerter
] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:38 AM To: CF-Talk Subject: accessing parent cfc's variables

accessing parent cfc's variables

2003-03-29 Thread Brad Howerter
] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:38 AM To: CF-Talk Subject: accessing parent cfc's variables

accessing parent cfc's variables

2003-03-28 Thread Brad Howerter
The child CFC automatically inherits all of its parents values, so to me it seems redundant to call a method to get them. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

accessing parent cfc's variables

2003-03-28 Thread Brad Howerter
Should the encapsulation extend to the children, or should they know about their parent? I would think they'd know, since they have to know what methods to override and provide anyway. ~| Archives:

ANN: Variables in CFML Guide posted

2003-03-28 Thread Brad Howerter
Wow, what a thorough document it is! Thanks for sharing! ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ:

Work-around for lack of 'super'

2003-03-25 Thread Brad Howerter
In inherited CFCs, if you have a function named the same as a parent function (as is often the case), it overrides the parent CFCs definition. This is proper, but sometimes you want to be able to call the parent function as well, and there is no good way to do it. You can't just call super.new(),

Work-around for lack of 'super'

2003-03-25 Thread Brad Howerter
IMO, mine is a better method. I developed it in response to reading Hal's book. It's easier to understand, easier to code, and more efficient. I don't know what you mean about the member number not being needed. It has nothing to do with the work-around, it's just a property of an employee.

Work-around for lack of 'super'

2003-03-25 Thread Brad Howerter
Sean Corfield wrote: On Tuesday, Mar 25, 2003, at 10:38 US/Pacific, Brad Howerter wrote: !--- work around the problem of there not being a way to access 'super' --- cfset user_new = new !--- sets user_new() as an alias for new() --- This creates a non-public instance member called user_new

initialization section of CFCs

2003-03-18 Thread Brad Howerter
I notice that every variable created in a CFC's initialization section stays in memory for the life of the object. Is there a way to avoid that? One way I thought of is to create every temporary variable in a particular structure, then reset that structure at the end of the initialization, but

initialization section of CFCs

2003-03-18 Thread Brad Howerter
is the Force, and a powerful ally it is. - Yoda -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 3:43 PM To: CF-Talk Subject: initialization section of CFCs I notice that every variable created in a CFC's initialization section stays

Bug with CFCs and Duplicate()

2003-03-18 Thread Brad Howerter
This bug is killing me. I have a collection class for my companies plants. It creates a structure, the key of which is the plant number, and the value is the plant object for that particular plant. One of the methods is getPlantByNumber('01'), and it works fine- you pass the plant number in

Bug with CFCs and Duplicate()

2003-03-18 Thread Brad Howerter
I'd forgotten about structCopy(). Wasn't the whole point of duplicate() to replace structCopy() because structCopy doesn't do a deep copy? So now it's the other way around? I'll try it... Yep, it works (at least in this case)! Thanks! This bug is killing me. I have a collection class for

NTFS file permissions don't restrict access

2003-03-14 Thread Brad Howerter
Thanks for your reply, Sean. I'll disperse my answers between your comments... Ermm.. Having read the rest of the string... Are you already authenticated as an NT user? IE If you're established as an NT user with permissions over the wwwroot and IIS is allowing NTFS auth then this will avoid

componentDoc not finding my CFC

2003-03-14 Thread Brad Howerter
I created a CFC in d:\inetpub\cfc\com\wgc, but it doesn't show up in componentDoc.cfm. How do I get it to show? I don't know if this matters, but I do have a coldfusion mapping that points to the wgc folder. My default web site is d:\inetpub\wgapps, and the cfc folder is not in the website.

Bug with CFCs and Duplicate()

2003-03-14 Thread Brad Howerter
When you duplicate an object it is converted from an object to a struct, and any private variables the object had are lost. The following code demonstrates the bug: cfscript oServer = createObject(component,wgc.common.serverObject); /cfscript cfdump var=#oServer# label=oServer cfset a =

NTFS file permissions don't restrict access

2003-03-13 Thread Brad Howerter
I would like to use NTFS file permissions to restrict my .cfm pages. I have a server I'm playing with and I removed all general permissions from the wwwroot directory, but I can still run the .cfm pages from any account. Why doesn't this work? I'm running CFMX on a windows 2000 server. *** The

NTFS file permissions don't restrict access

2003-03-13 Thread Brad Howerter
I should have mentioned this before: I have checked the 'Check that file exists' application mapping setting for .cfm. I notice that if my url is http://servf18, I get access denied, but if it is http://servf18/default.cfm, it works. Default.cfm is the file that runs be default, due to my

NTFS file permissions don't restrict access

2003-03-13 Thread Brad Howerter
I should have mentioned this before: I have checked the 'check that file exists' checkbox in the application mapping setting for .cfm files. I would like to use NTFS file permissions to restrict my .cfm pages. I have a server I'm playing with and I removed all general permissions from the

NTFS file permissions don't restrict access

2003-03-13 Thread Brad Howerter
That's what I used to think, too, until I read this technote: http://www.macromedia.com/support/coldfusion/ts/documents/nt_auth_iis.htm The CF Server's user account (by default, the system account) is the one that is actually doing the filesystem access, not the user account that has the web

moving CFIDE folder

2003-03-11 Thread Brad Howerter
What configuration parameter do I need to change to allow me to move my CFIDE folder from \wwwroot\CFIDE to \inetpub\wwwroot\CFIDE? I tried just moving it but it gave me errors so I've put it back for now. *** The information in this e-mail is confidential and intended solely for the individual

moving CFIDE folder

2003-03-11 Thread Brad Howerter
I guess that was it. I thought I had done that before, but I tried it again just now and it seems to work. Thank you. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

CFC theory

2003-03-10 Thread Brad Howerter
I've just read through the CFC Theory thread from last fall, and I don't understand why noone ever suggested this: Why not just create the private scope? i.e. cfcomponent cfset private.anyvar = 'hidden value' /cfcomponent Or use pr.anyvar for less typing. Or self.anyvar, or anything

CFC theory

2003-03-10 Thread Brad Howerter
is the Force, and a powerful ally it is. - Yoda -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 2:31 PM To: CF-Talk Subject: CFC theory I've just read through the CFC Theory thread from last fall, and I don't understand why noone

cfqueryparam question

2003-02-21 Thread Brad Howerter
It's a database limitation. You can't bind variables for table names, just column values. cfquery name=qIF_GetQuestion datasource=#APPLICATION.sIF_DSN# SELECT cfqueryparam value=#sColName# cfsqltype=CF_SQL_VARCHAR AS QUESTION FROMcfqueryparam value=#sTableName#

unexpeted result with cfqueryparam

2003-02-20 Thread Brad Howerter
I don't see that behavior. This code works fine for me: cfset variables.showLabel = abc's cfquery datasource=#request.ser.udsn# UPDATE foo SET showLabel = cfqueryparam cfsqltype=cf_sql_varchar value=#trim(showLabel)# / /cfquery Using cfqueryparm to update table with values

unexpeted result with cfqueryparam

2003-02-20 Thread Brad Howerter
I was mistaken. I accidentally tested the code on CF50, where it does work okay. On CFMX, updating an Oracle database, it adds an apostrophe as you say. And it only does it when trim() is used. Brad and Kevin Went back and tired not using the HTMLEditFormat--no difference. Also tried

IIS Authentication

2003-02-18 Thread Brad Howerter
Dave, I didn't know you could run CFMX as an extension. What are the differences between doing it that way and running it as a filter? Where can I learn more? We have ours running as a filter (that's how its installed), and it seems to be handling the file permissions okay. Candace, what are

Dreamweaver MX bug?

2003-02-14 Thread Brad Howerter
style/style cfif 1 cfif 1B/cfif cfif 1B/cfif /cfif Store this code in a file, then load into Dreamweaver MX. For me and a co-worker, it adds two /cfifs to make this code: style/style cfif 1 cfif 1B/cfif cfif 1B/cfif/cfif/cfif /cfif For another co-worker, it

Changing Order By - designating specific value to return first

2003-02-12 Thread Brad Howerter
Here's an Oracle solution: ORDER BY iApplication, iModule, DECODE(sFeatureSubHeading, 'General Features','0', sFeatureSubHeading) This will cause General Features to sort as if it were '0', which will move it up to the front of the list. Hello list - I have a query that specifys a specific

Web Services

2003-02-12 Thread Brad Howerter
updated: #Weather.getLastUpdated()#br It doesn't matter what the web service is, I always get the same result, unless its an internal one that I've written. I've tried several different ones. On Tuesday, Feb 11, 2003, at 10:19 America/Chicago, Brad Howerter wrote: The java.net.SocketException

Changing Order By - designating specific value to return first

2003-02-12 Thread Brad Howerter
In mysql, you could use replace instead of decode: order by replace(sFeatureSubHeading, 'General Features','0') I will certainly try this out and see if i cna get it to work in a non oracle world. thanks it makes perfectly good sense. jay miller Brad Howerter wrote: Here's an Oracle

Web Services

2003-02-11 Thread Brad Howerter
http://www.ejse.com/WeatherService/Service.asmx?wsdl and other wsdl pages work fine for me from my browser, but whenever I try to cfinvoke a webservice, I get a nasty error message in the application.log: Error,jrpp-12,02/11/03,09:15:46,BRADTEST,Could not generate stub objects for web service

Client Variables - Serious Problem

2003-01-30 Thread Brad Howerter
I experienced that problem 2 years ago on CF50. I don't remember the resolution too well at this point. I think it turned out it was because the IP address of everyone in our company was being assigned the same IP address when browsing the internet. This in turn caused CF to assign the same

CGLOBAL and CDATA client variables

2003-01-28 Thread Brad Howerter
Here's the answer to the question posed in thread a href=http://www.houseoffusion.com/cf_lists/index.cfm?method=replyforumid=4threadid=20897messagecounter=105607;Client Variable Problem on Oracle (aka CGLOBAL and CDATA client variables)/a ColdFusion works differently for client variables on

CFMX Memory Issue

2003-01-28 Thread Brad Howerter
I have a similar problem with our server running CFMX. If I try to specify a JVM Max Memory setting greater than 1700MB, the coldFusion service will not start; it errors with WIndows Error 2. The server has 4 Gigs of memory, so 1800MB should be okay. On Tuesday, January 28, 2003, at 09:19 AM,

CGLOBAL and CDATA client variables

2003-01-25 Thread Brad Howerter
I'm having a strange problem with client variables with a proffessional version of CFMX, updater 2 applied. This problem has existed ever since I switched client vars from the registry to the database earlier today. My client variable database is accessed via an OCI datasource, Oracle version

Calling a CFC from perl

2003-01-22 Thread Brad Howerter
Yes. In IIS, I set the file security for the .cfc file to anonymous. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4

CFC changes not noticed by jrun unless it's restarted

2003-01-22 Thread Brad Howerter
This is really bizarre. Everyone says this is expected behavior, but today it is refreshing on its own. Nothing has changed that I'm aware of, but everytime I change my CFC the change is reflected immediately, even though I'm calling it as a webservice. BTW, I don't have a 'Data Services'

Structure order in MX

2003-01-22 Thread Brad Howerter
I'm sure you're right that that is what it means. But it doesn't behave that way. The following code returns C, D, B. cfset a = structNew() cfset a.b = 1 cfset a.c = 2 cfset a.d = 3 cfloop collection=#a# item=k cfoutput#k#/cfoutputbr /cfloop cfoutput#structKeyList(a)#/cfoutput A

Calling a CFC from perl

2003-01-21 Thread Brad Howerter
I was able to fix this by granting anonymous access to the CFC. I don't understand why that should be neccessary. Thanks for your help, Sean. It was very helpful just knowing that the code worked for you. I knew it had to be something with the configuration.

calling a CFC from perl passing an array of structures

2003-01-21 Thread Brad Howerter
Has anyone ever used perl to pass an array to a CFC web service? I can't find any examples on the web, just simple values get passed it seems. I can call a CFC web service from perl and pass an array of strings and it works okay. But if I try to pass an array of hashes, it fails. Do I somehow

CFC changes not noticed by jrun unless it's restarted

2003-01-21 Thread Brad Howerter
I've determined that when I make changes to a CFC that is called as a web service, I have to restart the coldfusion server in order for those changes to be recognized. Has anyone else noticed this problem? *** The information in this e-mail is confidential and intended solely for the individual

Calling a CFC from perl

2003-01-20 Thread Brad Howerter
Yes, thanks Sean. I discovered that shortly after my original post. But I'm still having trouble... Here's my cfc code: cfcomponent output=false cffunction name=hi returnType=string output=no access=remote cfreturn 'hello, world' /cffunction /cfcomponent And here's how I'm trying to

Calling a CFC from perl

2003-01-17 Thread Brad Howerter
Has anyone called a CFC service from perl? I've written a cfc that I can use with a url: http://webftc18/com/woodward/example.cfc?method=hi But I can't get perl to access it, I always get 'SOAP call failed: 401 Access Denied at C:\Perl\bin\BTS.pl line 8' My perl program is simply: #!perl -w

Calling a CFC from perl

2003-01-17 Thread Brad Howerter
Please ignore. I've got problems with invoking this even from coldFusion, let alone perl. I'll post a separate message for my CF web service problem. ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4

RE: Please help - cfmx administration problem

2003-01-08 Thread Brad Howerter
My network admin found the problem. http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=7threadid= 374335STARTPAGE=1 -Original Message- From: Brad Howerter Sent: Monday, January 06, 2003 2:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Please help - cfmx administration problem

RE: Please help - cfmx administration problem

2003-01-06 Thread Brad Howerter
that off, the administrator works. This is not a good work around, though, because we don't want the users to have to enter their network username and password. -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 8:17 AM To: CF-Talk Subject

Please help - cfmx administration problem

2003-01-02 Thread Brad Howerter
When I enter my administrators password, I get the following error from CFIDE/administrator/enter.cfm: 500 You have attempted to dereference a scalar variable of type class java.lang.String as a structure with members. I installed cfmx and service pack 2, and I can't run the administrator due to

bug in duplicate() function crashes server

2001-02-01 Thread Brad Howerter
I've come up with some simple code that crashes my server (WIN/NT, using IIS, Cold Fusion version 4.5 SP2 with duplicate() bug hot fix [cfserver-duplicated-fix-win-ent-us.exe] already applied).The hot fix for duplicate is for a different duplicate() bug. It's the query that causes

RE: bug in duplicate() function crashes server

2001-02-01 Thread Brad Howerter
[EMAIL PROTECTED] www.wwstudios.com -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 2:51 PM To: CF-Talk Subject: bug in duplicate() function crashes server I've come up with some simple code that crashes my server (WIN/NT, using

RE: session vars

2001-02-01 Thread Brad Howerter
You need to add the attribute SCOPE="SESSION" -Original Message- From: Peter Benoit [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 3:11 PM To: CF-Talk Subject: session vars I'm trying to check for the existance of a session variable using CFPARAM, if the variable doesn't