starts/restarts to check my theory, or is there somewhere else I can look?
Tyler S
_
From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 11:13 AM
To: CF-Talk
Subject: Re: Disappearing/reappearing application variables...
Are there any other application.cfm
Hello All,
I have started to learn to use CFC's.I tried making a simple CFC to performs a query that I need on may parts of my site.
In all my cfquery tags I use datesource=#dsn# and it works fine.When I add this to the CFC it errors out.Yet it I place the actual DSN name from the ODBC
You can read an explanation here:
http://www.cfczone.org/faq.cfm#q10
Massimo Foti
http://www.massimocorner.com
Co-Author of Dreamweaver MX 2004 Magic:
http://www.dwmagic.com/
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
To: CF-Talk
Subject: Application Variables in a CFC
Hello All,
I have started to learn to use CFC's.I tried making a simple CFC to
performs a query that I need on may parts of my site.
In all my cfquery tags I use datesource=#dsn# and it works fine.When I
add this to the CFC it errors out.Yet it I
Thanks Massimo, that explains it
- Original Message -
From: Massimo Foti
To: CF-Talk
Sent: Thursday, January 15, 2004 8:50 AM
Subject: Re: Application Variables in a CFC
You can read an explanation here:
http://www.cfczone.org/faq.cfm#q10
Massimo Foti
Now, how could I call this same object from the differenct
application? You would think since it is in memory, there has
to be way that I can retreive it.
You can use the underlying java of CF to get a hold of the application
scope for any currently active application:
cfscript
//
Thanks Tim! I will definitely try that out.
Ricky
_
From: Tim Blair [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 3:34 AM
To: CF-Talk
Subject: RE: Application variables between two applications
Now, how could I call this same object from the differenct
application? You
I have an administrative application that has persistent application
variables that I would like to share into another application on the
production side.
When a user makes a change in the admin, it refreshes the persistence of the
variables and I need it somehow to change in both the admin
Is the Admin tool _for_ the other web site? If so, then just share
application names. Otherwise, you can consider using server variables to
share data between the apps. Other options include using the ServiceFactory
methods which are not supported but work pretty well.
[Todays Threads]
[This
have to use the
server scope that is ok.
Ricky
_
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 10:40 AM
To: CF-Talk
Subject: RE: Application variables between two applications
Is the Admin tool _for_ the other web site? If so, then just share
application
The admin tool is for the other website. So in a nutshell,
are you suggesting that I just rename the application name in
the other website to match name of the application in the admin?
No, not if the applications aren't truly the same.
Server variables - hmm...that might be a thought.
_
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 11:00 AM
To: CF-Talk
Subject: RE: Application variables between two applications
The admin tool is for the other website. So in a nutshell,
are you suggesting that I just rename the application name
Subject: RE: Application variables between two applications
I have all the business logic in CFC's, but I am using many objects for
these CFC's that pull the data in the application scope.
For example, in my admin application I am using this to refresh my data set
once the data has been manipulated
What about using the server scope?
Bert
-Original Message-
From: Ricky Fritzsching [mailto:[EMAIL PROTECTED]
Sent: 09 December 2003 16:21
To: CF-Talk
Subject: Application variables between two applications
I have an administrative application that has persistent application
variables
9:49 AM
To: CF-Talk
Subject: RE: Application variables between two applications
I would guess this is the reason for naming the application so that you
_cannot_ access the variables from other applications.Imagine if you
stored sensitive data in one application and it was somehow available within
: Application variables between two applications
I have an administrative application that has persistent application
variables that I would like to share into another application on the
production side.
When a user makes a change in the admin, it refreshes the persistence of the
variables and I need
I've been on http://www.benorama.com looking at a CF design pattern. In
this tutorial it talks about using your Application.cfm to call
_init.cfm, which parses through an xml file to create your application
variables. I've done this (very closely following the sample app). I've
created a page
PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 10:00 AM
Subject: Application variables
I've been on http://www.benorama.com looking at a CF design pattern. In
this tutorial it talks about using your Application.cfm to call
_init.cfm, which parses through an xml file
You can overwrite them with cfset ... though I typically use cfset
request.myapp.myvar = something instead of application variables for this
sort of thing also. The app could be using cfparam tags instead of cfset
tags in which case it would chew through the xml file on each request
unecessarily
What's are the Pro's and Con's of using Request Variables over Application
Var?
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:16 PM
To: CF-Talk
Subject: Re: Application variables
You can overwrite them with cfset ... though I
Subject: RE: Application variables
What's are the Pro's and Con's of using Request Variables over
Application
Var?
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:16 PM
To: CF-Talk
Subject: Re: Application variables
You can
: morpheus
My ally is the Force, and a powerful ally it is. - Yoda
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:40 PM
To: CF-Talk
Subject: Re: Application variables
Well a big plus is that you don't need to lock REQUEST scoped
Do you have to set them each time, for each page?
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:40 PM
To: CF-Talk
Subject: Re: Application variables
Well a big plus is that you don't need to lock REQUEST scoped vars.
Bryan
Request variables and Application variables are two completely different
things, so i don't know if they deserve direct comparison. It depends what
you want to use them for.
Request variables exist during a single page execution.
They are not persistent across page requests.
You do
So, it seems to me that in a purist sense, common values across all Users
belong in application variables.
-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:06 PM
To: CF-Talk
Subject: Re: Application variables
Request variables
Bryan Stevenson wrote:
You have to restart CF to reset APPLICATION vars (timing out the app might
work too).
application=strucnew();
z
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
-vancouverisland.com
- Original Message -
From: Andy Ousterhout [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 10:31 AM
Subject: RE: Application variables
What's are the Pro's and Con's of using Request
Variables over
Application
Var?
-Original Message
?
-Original Message-
From: Bryan Stevenson
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:40 PM
To: CF-Talk
Subject: Re: Application variables
Well a big plus is that you don't need to lock REQUEST
scoped vars.
Bryan Stevenson B.Comm.
VP Director of E-Commerce
, you wrote:
So, it seems to me that in a purist sense, common values across all Users
belong in application variables.
-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:06 PM
To: CF-Talk
Subject: Re: Application variables
Request
Bryan Stevenson wrote:
You have to restart CF to reset APPLICATION vars (timing
out the app might
work too).
application=strucnew();
I'm not necessarily convinced that would clear the application scope rather
than creating a local variable called application.
structclear(application);
/2002 -0600, you wrote:
So, it seems to me that in a purist sense, common values
across all Users
belong in application variables.
-Original Message-
From: Jeffry Houser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:06 PM
To: CF-Talk
Subject: Re: Application variables
, 2002 10:57 AM
Subject: RE: Application variables
Do you have to set them each time, for each page?
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 12:40 PM
To: CF-Talk
Subject: Re: Application variables
Well a big plus
-
Vancouver Island ColdFusion Users Group
Founder Director
www.cfug-vancouverisland.com
- Original Message -
From: S. Isaac Dealey [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, November 25, 2002 12:29 PM
Subject: Re: Application variables
Bryan
I believe you are mixing up request and application variables.
If the application.cfm is running, then it is safe to assume that this is
a new page request, and request variables have not been defined yet (unless
they were defined earlier in the Application.cfm )
Additionally, if you
of Application variables
True on the query... Isn't the cfset the same as a default tho?
A, but not if he's sticking a query in there, or he
doesn't want a
default value :O)
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 23:27
To: CF
Hi,
I have some questions regarding the use of application variables that I
was hoping for some suggestions on.
First is the issue of locking. If I understand correctly, I'll gain a
small performance boost if I do my own locking instead of allowing CF to
automatically lock all READS via the CF
: Jay Packer [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 22:40
To: CF-Talk
Subject: Best coding techniques for use of Application variables
Hi,
I have some questions regarding the use of application variables that I
was hoping for some suggestions on.
First is the issue of locking. If I
-
From: Jay Packer [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 22:40
To: CF-Talk
Subject: Best coding techniques for use of Application
variables
Hi,
I have some questions regarding the use of application
variables that I
was hoping for some suggestions on.
First is the issue
A, but not if he's sticking a query in there, or he doesn't want a
default value :O)
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 23:27
To: CF-Talk
Subject: RE: Best coding techniques for use of Application variables
Or something like
: Best coding techniques for use of Application
variables
Or something like this should work also:
cflock scope=application timeout=10 type=exclusive
cfparam name=application.myvar type=string
default=hellacool
/cflock
You can even drop the cflock if you're on CFMX.
Isaac
On Wednesday, September 25, 2002, at 02:40 , Jay Packer wrote:
I have some questions regarding the use of application variables that I
was hoping for some suggestions on.
The best answers depend heavily on which version of CF you're using. CFMX
requires much less locking than earlier versions
I am working on a large-scale portal application and need
some way to pass application variables between applications.
I am wondering if anyone has any simple ideas on how to do
this?
For instance, I have an application running in a root
directory and a second application running
CF won't allow you to CFINCLUDE application.cfm or the other default
templates
You can certainly cfinclude application.cfm. I do it all the time.
__
This list and all House of Fusion resources hosted by CFHosting.com. The
CF won't allow you to CFINCLUDE application.cfm or the other default
templates
Sure it will. Try it:
put this in an Application.cfm
cfset someVar = test
and this in a nested app's Application.cfm
cfinclude template=../Application.cfm
and this is nested apps index.cfm (or whatever)
You can certainly cfinclude application.cfm. I do it all the time.
I know it has issues if you already have an application.cfm in the
current folder
It also depends on the version you're running - you never know if MM
will stop it being includable...
Philip Arnold
Technical Director
I know it has issues if you already have an application.cfm in the
current folder
What are the issues? I usually do something like:
root: Application.cfm
admin: Application.cfm, which cfincludes the parent Application.cfm
CF won't allow you to CFINCLUDE application.cfm or the other default
templates
Errr...are you sure about that? I do cfinclude
template=../Application.cfm all the time.
__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
Yeah. ALL the time.
-Original Message-
From: Al Everett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 12:55 PM
To: CF-Talk
Subject: RE: Passing Application Variables between Applications
CF won't allow you to CFINCLUDE application.cfm or the other default
templates
Errr
Variables between Applications
Yeah. ALL the time.
-Original Message-
From: Al Everett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 12:55 PM
To: CF-Talk
Subject: RE: Passing Application Variables between Applications
CF won't allow you to CFINCLUDE application.cfm
You can certainly cfinclude application.cfm. I do it all the time.
I'm trying to remember why I couldn't do it at the time - since then
we've avoided it like the plague
I know there's a reason, and it had something to so with the include
levels, so that we had to rename the application.cfm
for the application.cfm to use.
-Igor
-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 1:40 PM
To: CF-Talk
Subject: RE: Passing Application Variables between Applications
You can certainly cfinclude application.cfm. I do it all the time.
I'm trying
I am working on a large-scale portal application and need some way to pass
application variables between applications. I am wondering if anyone has any
simple ideas on how to do this?
For instance, I have an application running in a root directory and a second
application running in subdirectory
-
| -Original Message-
| From: Haggerty, Mike [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, July 30, 2002 17:25
| To: CF-Talk
| Subject: Passing Application Variables between Applications
|
|
| I am working on a large-scale portal application and need
| some way to pass
| application variables between
That's what we do - set all application variables if one is not set; if it exists then
we assume all application vars are set. We have the application var timeout set to 1
day in CF Admin.
We use a session variable to determine if the user is logged in. That way if the
server restarts itself
Hey all,
I want to use application variables for a site, but one question comes to
mind.
I have all my app variables set in one template. Upon configuring the
template, I hit that template to set all variables (makes sense).
Now, while my application is in use, I check (in Application.cfm
Hey all,
I want to use application variables for a site, but one question comes to
mind.
I have all my app variables set in one template. Upon configuring the
template, I hit that template to set all variables (makes sense).
Now, while my application is in use, I check (in Application.cfm
Thanks... I think I'll go that route...
- j
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 4:35 PM
To: CF-Talk
Subject: Re: Application Variables
Hey all,
I want to use application variables for a site, but one question comes to
mind
Engineer
Afternic.com
-Original Message-
From: Brent Goldman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 07, 2001 7:45 PM
To: CF-Talk
Subject: RE: application variables
Hi Nick,
You need to specify the APPLICATION scope in your CFLOCK tag. You should
put the following CFML around
-Original Message-
From: Stuart Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 11:09 AM
To: CF-Talk
Subject: Mysteriously vanishing application variables
Hello,
I have an application that seems to mysteriously lose it's application
variables and then throws
Any other CFAPPLICATION tags that might be using another application name?
When we had vanishing variables, the biggest problem was using auto-read locking: it
doesn't throw errors for all unlocked writes like the documentation says.
Also, look closely at all application variables
You can assign a query recordset into an Application variable, it may be
less expensive for you to check for an existance of an Application
variable
as opposed to running your query every time and again (and for each
user).
This is something I want to implement, but it still confuses me.
your application.
Dave
- Original Message -
From: Steve Reich [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 29, 2001 5:00 PM
Subject: Application Variables
Seems basic, but I've never really addressed this. Assuming this code is
in
my application.cfm file, what
David,
But since you have to put locks around application variables wouldn't it be
more efficient to use a request scope variable for this.
In your application. cfm:
cfset request.backgroundcolor=whatever
Then you don't need to lock every time you need to use it.
I find that since the request
GetAdvert sounds like it may be a query to collect a random ad from a
database?
One approach that worked very well for me was to run the query once and
then store the ads in an application scoped array. This makes retrieving a
new ad much quicker.
You may want to take a look at this
GetAdvert sounds like it may be a query to collect a random ad from a
database?
Yes and no. If a user runs a search for, say, furniture, this might
retreive 15 adverts which would be using a query such as:
cfquery name=getadvert datasource=#DSN#
SELECT * FROM advert_details
WHERE body like
:)
- Original Message -
From: W Luke [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, June 30, 2001 1:12 PM
Subject: Re: Application Variables
GetAdvert sounds like it may be a query to collect a random ad from
a
database?
Yes and no. If a user runs a search for, say
First, I used a very elementary example. A better use might be calling a
DSN for an application. Second, you'd only need to lock application
variables when you're writing to them. Unlike session variables, that get
written to and overwritten time and again as in a shopping cart, I'd only
allow
Seems basic, but I've never really addressed this. Assuming this code is in
my application.cfm file, what is the difference in these two
cfset bgcolor=black
and...
cfset application.bgcolor=black
I guess I need a quick lesson on application variables. I know they are
included
query every time and again (and for each user).
As far as your simple example there is probably no measurable benefit.
Also, there's that little matter of convinience of NOT using Application
variables all over the place, as you must cflock them. The applications
we've designing were never high
Hello,
I have an application that seems to mysteriously lose it's application
variables and then throws the 'parameter cannot be resolved' error.
Shouldn't be due to timing out because the problem will pop up in the middle
of a session. Anyway, there is code that checks for
IsDefined
Hello,
I have an application that seems to mysteriously lose it's application
variables and then throws the 'parameter cannot be resolved' error.
Shouldn't be due to timing out because the problem will pop up in the middle
of a session. Anyway, there is code that checks for
IsDefined
AM
To: CF-Talk
Subject: Mysteriously vanishing application variables
Hello,
I have an application that seems to mysteriously lose it's application
variables and then throws the 'parameter cannot be resolved' error.
Shouldn't be due to timing out because the problem will pop up in the middle
: Mysteriously vanishing application variables
Hello,
I have an application that seems to mysteriously lose it's application
variables and then throws the 'parameter cannot be resolved' error.
Shouldn't be due to timing out because the problem will pop up in
the middle
of a session. Anyway
your app vars are accounted for to avoid this problem.
-Andy
-Original Message-
From: Cameron Childress [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 12:39 PM
To: CF-Talk
Subject: RE: Mysteriously vanishing application variables
You are setting app variables to timeout
]
-Original Message-
From: Stuart Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:09 AM
To: CF-Talk
Subject: Mysteriously vanishing application variables
Hello,
I have an application that seems to mysteriously lose it's application
of the dealerid - on url/form etc.
HTH
Dan
-Original Message-
From: Mark Terrill [mailto:[EMAIL PROTECTED]]
Sent: 05 June 2001 04:21
To: CF-Talk
Subject: Multiple Application Variables
This is a multi-part message in MIME format.
--=_NextPart_000_0067_01C0EDC2.67E0D4C0
Content-Type
This is a multi-part message in MIME format.
--=_NextPart_000_0067_01C0EDC2.67E0D4C0
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Has anyone had a situation where there is a central site that spawns =
'dealer sites' which have their own
: Application Variables
Guys,
Is there anyway of resetting application variables in CF? i.e. I have an
application and would like administrators to be able to log in
and select an
option that resetsout all application and server variables.
Thanks,
Peter Alexandrou
Technical Leader
My mistake:
This works for application variables, but not for server variables.
David
- Original Message -
From: David Gassner [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 3:18 PM
Subject: RE: Application Variables
Since the application and server
CFSET Application.VariableName = "value"
Dave
- Original Message -
From: Peter Alexandrou [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Sunday, October 29, 2000 9:20 PM
Subject: Application Variables
Guys,
Is there anyway of resetting application variables in CF? i
Can application variables be stored in a database (by CF, not by me)
like client variables? This would be handy for persistence between
application runs should the server be rebooted.
No, they're only stored in memory. You could write something to store and
initialize application variables
Can application variables be stored in a database (by CF, not by me)
like client variables? This would be handy for persistence between
application runs should the server be rebooted.
Jim
--
Archives: http://www.mail
This Allaire KnowledgeBase article tells us how to store a query in the Application
scope for queries like a list of States that should be shared by all users.
http://www.allaire.com/Handlers/index.cfm?ID=1582Method=Full
Curiously, the article never locks any of the Application variables
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--_=_NextPart_001_01C00CDC.FCCC6770
Content-Type: text/plain;
charset="iso-8859-1"
Hi All,
I have the following code which seems to work for
I have the following code which seems to work for reading application
session variables snip
Is this method (aliasing variables at the start of the file) okay to
use, or will I need to re-code everything to avoid problems. It seems
to work so far...
snip
That should work just fine for
My understanding was that Application variables persist
until the next time the server is restarted. What time-out
are you referring to?
No, application variables last until the application itself has timed out,
meaning that no one has requested any page within the application for the
length
I'm confused about the timing out of application variables.
Do they time out individually so each one times out at a
different time depending on when they were originally accessed?
Or does the time out refer to the application as a whole, so
that if set for 1 day all the variables
Does anybody have any thoughts on weather you should always do an
isDefined() before reading or writing a session/application variable? Why?
thanks,
tj
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe
I use an "isDefined()" before reading/writing session/application variables
and then if the variable isn't defined, I set it. Mostly this is for error
trapping in the unlikely event that the variable isn't defined and you call
it (producing an error). If you're 100% sure th
- Original Message -
From: Troy Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 27, 2000 11:58 AM
Subject: isDefined() on session/application variables
Does anybody have any thoughts on weather you should always do an
isDefined() before reading or writing a session
() on session/application variables
- Original Message -
From: Troy Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 27, 2000 11:58 AM
Subject: isDefined() on session/application variables
Does anybody have any thoughts on weather you should always do an
isDefined
I have two Applications "App1" and "App2" on my ColdFusion Server4.5 in
separate directories. I have defined corresponding DSN's for these
applications which are "App1DSN" and "App2DSN". The Appliction Names and
corresponding DSN's are defined in their corresponding Application.cfm files
in their
I have two Applications "App1" and "App2" on my ColdFusion Server4.5 in
separate directories. I have defined corresponding DSN's for these
applications which are "App1DSN" and "App2DSN". The Appliction Names and
corresponding DSN's are defined in their corresponding Application.cfm files
in their
So I should readonly lock application variables when I do a select in a
CFQUERY and an exclusive lock when I do anything that will change data? Is
that right?
Thanks.
Ian
---
Locking is necessary for ALL shared scopes: session, application, server.
The reason
So I should readonly lock application variables when I do a
select in a CFQUERY and an exclusive lock when I do anything
that will change data? Is that right?
Yes, that is exactly right.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
101 - 195 of 195 matches
Mail list logo