I'm drafting our first set of code standards, and I'm running into a
philosophical debate which I'd like to open up to the community.
Some would say our standard should be to place all queries and as much
execution logic as possible into CFCs. The advantages of this are: most of
your
We are upgrading our apps to CF10, and have an opportunity to rebuild our
primary application (even in a diff language if we so choose). We also use
Sharepoint 2010 for our intranet. The app in question involves a lot of
document workflow (uploads/approvals), and the request has been made to
Thanks for the great analysis! He took out the speed issue comment.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
I'm giving feedback on a colleague's paper containing the following line:
Cold Fusion is written in JAVA which means, generally, that a ColdFusion
program will run slower than a program written directly in JAVA. If speed
of the application were the primary consideration, PHP or JAVA is
I'm trying to process dynamic form fields in a function. The first thing I
need is to grab a value that I need for saving the data to the right user. If
for some reason the value isn't there, I want to halt processing; else I want
to remove the value from the structure so I can loop over the
, Dec 6, 2011 at 4:56 PM, Shannon Rhodes shan...@rhodesedge.comwrote:
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http
I understand and agree with your style preferences, but neither complaint with
legacy code would cause issues.
Since DirectoryExists returns a true/false, you don't need the IS No
part of the statement. Also, DirectoryExists expects you to pass it a
variable, so you don't need the quotes and
I honestly don't know; it's coming from the global variable for all of our
applications. I guess I always assumed it had to do with mappings or something,
since we can't have a relative path here. I can definitely strip it out and
see if that solves the problem.
The specified directory
This appears to happen randomly, making it difficult to replicate. Code will
error that looks like this:
cfif DirectoryExists(#variables.dirpath#) IS Nocfdirectory
action=CREATE directory=#variables.dirpath#/cfif
The error looks like this:
The specified directory attribute value
Thanks all...it seems to have magically resolved itself after some server
maintenance this weekend. I appeciate the help!
~|
Order the Adobe Coldfusion Anthology now!
Right. It can't find it. That's my problem: ColdFusion is supposed to create
it automatically:
ColdFusion automatically creates a WSDL file for any component referenced as a
web service. For example, if you have a component named echo.cfc in your web
root directory, you can view its
I'm testing publishing my first web service. The CFC works fine---I can call
any of the functions and dump the results to the screen. Everything I read
online when researching how to turn this into a web service can be summarized
as ColdFusion makes it easy---just make your method access
On Fri, Sep 23, 2011 at 3:38 PM, Shannon Rhodes shan...@rhodesedge.comwrote:
I'm over 50% positive this happens with useing OnRequest in applicatiton.cfc
I can't remember the work around for this off top of head since I don't do
internal WSDL calls often but believe it is due to how
No, same as the cfhttp call...but the cfc is there and functional as a normal
object invocation.
Can your server resolve http://mydomain/ ?
Try to open the WSDL URL from a browser on the machine that is running CF.
.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
Thanks but it's not onrequest, this is the entire application.cfc:
cfcomponent
displayname=Application
output=true
hint=Handle the application.
!--- Set up the application. ---
cfset THIS.Name = WebServiceApp /
/cfcomponent
Why would there be an issue resolving the domain? CFM files work fine from the
same directory when called via url. Is there some other step to making a web
service available that I'm missing here?
~|
Order the Adobe
Yes access is remote. The only reason why I did any object invocation on the
cfc was to test it. I'm merely excluding the possibility of error in the cfc
itself. But that does me no good---it needs to be a web service. That's my
dead end, you call the web service and get a 404. Can anyone
This is too bizarre for me to make heads or tails of it.
Randomly, on production, we're getting a hard error because the application
variable for our datasource is referring to the name of the QA dsn (which isn't
defined on production) instead of the production dsn. It happened to me
I've been charged with choosing versioning software for our team, and I'd like
to recommend Subversion but there's a developer who wants a feature that I'm
not sure Subversion (or other versioning tools) can accommodate: partial
commits. For example, you may be working on a project where
I was asked today if there's a way to use ColdFusion to basically email a
document to an application rather than users having to save attachments to
their systems and then upload to a CF application from there.
So you'd email a file from, say, Outlook, with an identifying number in the
Yeah, what Dave said...I'm talking about committing part of a file, not part of
a project.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Great info, thanks for the fast replies!
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Fantastic, thanks!
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
Is it merely a stylistic difference between
cfset myvar = What do you think of #this#? /
and
cfset myvar = What do you think of this ? /
Or is there a speed advantage to the latter which cancels out any increased
readability in the former?
Thanks!
Thanks guys, that's about what I expected. As a stylistic difference, I would
not advocate changing existing code to eliminate pound signs, whereas there are
those who argue the speed advantage of moving to concantenation only. While I
like concantenation, I see no problem with choosing ease
It's been a long time since I've done this so this may not be useful, but isn't
the returned packet a Javascript array? At least it was when I used to use
cfwddx, so it was just a matter of normal array manipulation.
~|
Does this help?
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:61637
~|
Order the Adobe Coldfusion Anthology now!
Sorry, meant as per John's suggestion cfwddx action = wddx2js, not the packet
itself.
No, WDDX is XML, not Javascript; it always has been.
--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/
On 20 July 2010 21:13, Shannon Rhodes shan...@rhodesedge.com wrote:
It's
Ajax?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
Not sure if I'm understanding the question, but any cursors in your stored
procedure would be a return type, i.e. you wouldn't be looping over it within
the proc (unless it was looped/closed for related business logic). By the time
you call the proc from CF, CF is just saving the result set
Just to follow up...
-Mark, thanks for the LogBox info, I checked it out and it says it requires
Railo and Open BlueDragon, so it's not for us but might work great for someone
else.
-Brad, thanks for letting me know about the exception info you were seeing in
debugging. I don't see this,
About a dozen developers were making all manner of changes. Do the logs tell
us nothing? There's no documentation at all on what the log messages mean? At
least some kind of list of normal/expected actions?
~|
Order the
Thanks all, taking the global find/replace w/catch handler suggestion.
Still...would be a nice admin option! Agreed that it would be awesome to have
admin level options for cfdump as well, hint hint CF...considering that so far
I haven't found an upgrade in CF9 that changes my work life in
It might be easier for you to troubleshoot this in Toad or some other Oracle
editor, to get the stored procedure working correctly before trying to call it
from CF. Otherwise, it can be confusing for you as to which end is causing the
problem (like sometimes I can verify code in Toad but
We are attempting to interpret the event log. Seems like the logs are just a
guessing game without documentation.
~|
Order the Adobe Coldfusion Anthology now!
My boss sent us a snapshot of an event log after a 503 error shut down dev, and
asked us if anyone could figure out what it meant. I spent some time searching
online for some kind of guide to log messages, but I can't find anything at
all. At very least, it would be nice to know what kind of
I did something like this relatively recently, with the added requirement that
both the variable name and the value be encrypted (fun, eh). On top of that,
there was a handler page that I had to ensure was continuing to attach all of
my url vars to the url for cflocation. I'll give you my
Thanks all, great suggestions. I especially like the find/replace option,
since I don't have access to the administrator and log files here.
Andrew, this is a dev site that I fully expect to error dozens of times, my
main task being clean-up. It costs time and aggravation when these errors
I'm not completely clear if you're asking about how to write the proc or how to
call the proc. You call the proc via ColdFusion like so:
cfstoredproc procedure=
datasource=
username=
password=
Is there any global way to turn off try/catch handling? I believe I've heard
of this for VB but I don't think I've come across it for CF.
My issue is that I'm creating a new version of a site based on an existing
codebase, and I have to update the schema references and some other cleanup.
Thanks Eric, I do hope they consider it...like with debugging in general, which
can be IP specific in the administrator. I can see many uses for this, and as
I mentioned...other languages have acknowledged the usefulness of turning off
error handlers for the purposes of development/debugging.
snipCustom tag is just that: a bit of code that can be called in a single
tag,
that's all. Nothing 'overkill' about it to implement for a simple
computation. cf_getMyLink relativePath=/path/to/mytemplate.cfm
environment=development / seems fairly straightforward./snip
I somewhat disagree.
I'm probably overthinking this, but I have a really simple snippet of code that
I want to make easily available to other developers in-house. It takes no
input variables; all it does is figure out the correct link to reporting
services based on the server environment (dev/QA/prod).
Given the
Great tips, thanks all!
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
I'm trying to join on a subquery using Oracle 9i; the join is successful if I
run it in the Toad editor (even if I take the CF debugging code and run it in
Toad), but for some reason I get a table does not exist error if the same
query is run from cfquery. I can't even begin to imagine why
So obvious I completely missed it! Thanks to you both...someone switched the
dev dsn to point at QA, doh. All is well, thanks much!
~|
Want to reach the ColdFusion community with something they want? Let them know
on the
Thanks for the suggestions, all. I ended up simply handling it with WDDX and
old-fashioned Javascript. I was pretty disappointed that CF's new bind options
proved to be a poor solution for more advanced needs, but in this case my lists
are of reasonable length so AJAX is probably overkill
Iâm trying to get four related selects to work---basically, you can change
any one of the selects and it will reload the other 3 based on your selection.
I tried, and abandoned, the cfselect binding approach because I was unhappy
with the number of changes I had to make to my CFCs in order
did a Google search and I see other people posting similar problems with session variables sometimes timing out for no apparent reason, but no one seemed to post a solution.Any ideas?Thanks!
Shannon Rhodes
[EMAIL PROTECTED]
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe
I have a scheduled task set up to check the database to see if we have any mass mailings pending to go out at that time, then cfmail is used to handle the mailing, and finally the database is updated so the mailing is marked as sent.My question is how do I handle potential problems...I'm not
I don't know if this is an option for you, but we have several publications that have to go both online and into Quark, and this is solved by maintaining the information in a database then using CF to write out a text file with the appropriate QuarkXpress tags.The desktop publishing person just
I just want to thank you guys for nudging me in the right direction on this
navigation issue.I also thought I'd follow up for the benefit of anyone
else building CF navigation.
Tom Kitta
That is quite complex navigation you got there. Do your navigation links
change so much? How about using a
I'm building dynamic site navigation and I'm concerned about processing
speed.I'm trying to break a bad habit by eliminating my use of evaluate(),
but I just can't seem to figure out how to work around it.
Here's what I have:
*Variables are initialized in globals.cfm, called from application.cfm;
Yeah, something's up, I'm supposed to be on digest.
- Original Message -
From: Kunal Pewekar [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 12:48 PM
Subject: Re: trimming question
errrhow did i suddenly start getting these email again ? im sure i
I want to thank everyone for your interesting perspectives on this.
Definitely I was planning on using external js and css files for the
standard stuff, but I was also looking for the flexibility to throw in an
individual function or style on a page when they are not likely to be needed
elsewhere,
We all know that cfinclude is perfect for design headers and footers, but
now that I'm actually redesigning my site to take advantage of this, I'm
running into some perplexing problems. (Please don't suggest FuseBox,
that's way overkill for this site and I don't have the time for it).
My initial
).
Shannon Rhodes
[EMAIL PROTECTED]
SNIP
Date: Wed, 01 Aug 2001 15:13:26 -0500
From: Susan Allen [EMAIL PROTECTED]
I've done a lot of converting Word docs to .pdf and building the form
functionality into the .pdf. You can add a button (and code it NOT to show
on the form if it is printed) that will call
Is it possible to query which was the last ID number created (autonumber
field in Access) for the purpose of adding 1 to explicitly state the new ID
number for a newly created record?
The reason why I ask is that I'm having trouble inserting my new info into
two separate tables because I need
58 matches
Mail list logo