I'm using the following in settings.cfm:
<cfset set(docRepositoryRoot = GetDirectoryFromPath(GetTemplatePath())
& "miscellaneous\docs\")>
Then I'm using get() to call it in various places in the app. In one
particular cfc function, I'm calling it several times and I started
getting the following error:
"docRepositoryRoot is undefined in a CFML structure referenced as part
of an expression"
If I create a local variable for #get("docRepositoryRoot")# and use
that going forward (.i.e., only asking for get(docRepositoryRoot)
once), it works fine:
<cfset docRoot = #get("docRepositoryRoot")#>
The following blog post related to Fusebox discussing this error
messages suggests that it might be too many concurrent requests for my
global variable that's causing it:
http://blog.razuna.com/2007/09/16/coldfusion-error-is-undefined-in-a-cfml-structure-referenced-as-part-of-an-expression/
Am I just misusing the set() and get() functions?
On Apr 15, 1:14 pm, Rufhausen <rufhau...@gmail.com> wrote:
> Is it wrong to use the set() function for my own global variables?
>
> I'm using the following in settings.cfm:
> <cfset set(docRepositoryRoot = GetDirectoryFromPath(GetTemplatePath())
> & "miscellaneous\docs\")>
>
> Then I'm using get() to call it in various places in the app. In one
> particular cfc function, I'm calling it several times and I started
> getting the following error:
> "docRepositoryRoot is undefined in a CFML structure referenced as part
> of an expression"
>
> If I create a local variable for #get("docRepositoryRoot")# and use
> that going forward (.i.e., only asking for get(docRepositoryRoot)
> once), it works fine:
> <cfset docRoot = #get("docRepositoryRoot")#>
>
> The following blog post related to Fusebox discussing this error
> messages suggests that it might be too many concurrent requests for my
> global variable that's causing it:http://blog.razuna.com/2007/09/16/coldfusion-error-is-undefined-in-a-...
http://groups.google.com/group/cfwheels/browse_thread/thread/644af7786038d95/2a6e38bab255b1e0
http://groups.google.com/group/cfwheels/browse_thread/thread/306ac9de56749be2
we've had this question a few times before. i think the consensus is
to use what i suggested in these threads
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
-----------------------
John C. Bland II
[sent via mobile]
On Jun 4, 2010, at 12:47 PM, "tpet...@gmail.com"
this advice and start adding things like set(dataSource="mydsn"), which may
cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>
.
For more options, visit this group at
http://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups
"ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to
cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>
.
For more options, visit this group at
http://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
> >>>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>
> >>>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>>> .
> >>>>>>>> For more options, visit this group at
> >>>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>> --
> >>>>>>> You received this message because you are subscribed to the Google
> >>>>>>> Groups
> >>>>>>> "ColdFusion on Wheels" group.
> >>>>>>> To post to this group, send email to cfwh...@googlegroups.com.
> >>>>>>> To unsubscribe from this group, send email to
> >>>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>
> >>>>>>> <cfwheels%2Bunsubscr...@googlegroups.c om>
> >>>>>>> .
> >>>>>>> For more options, visit this group at
> >>>>>>>http://groups.google.com/group/cfwheels?hl=en.
>
> >>>> --
> >>>>>> You received this message because you are subscribed to the Google
> >>>>>> Groups "ColdFusion on Wheels" group.
> >>>>>> To post to this group, send email to cfwh...@googlegroups.com.
> >>>>>> To unsubscribe from this group, send email to
> >>>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>
> >>>>>> .
> >>>>>> For more options, visit this group athttp://
> >>>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "ColdFusion on Wheels" group.
> >>>>> To post to this group, send email to cfwh...@googlegroups.com.
> >>>>> To unsubscribe from this group, send email to
> >>>>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>
> >>>>> .
> >>>>> For more options, visit this group athttp://
> >>>>> groups.google.com/group/cfwheels?hl=en.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "ColdFusion on Wheels" group.
> >>> To post to this group, send email to cfwh...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.c-om>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/cfwheels?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send
>
> ...
>
> więcej >>- Ukryj cytowany tekst -
>
> - Pokaż cytowany tekst -
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
-----------------------
John C. Bland II
[sent via mobile]
> --
> You received this message because you are subscribed to the Google
> Groups "ColdFusion on Wheels" group.
> To post to this group, send email to cfwh...@googlegroups.com.
> To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
Gary
From: cfwh...@googlegroups.com [mailto:cfwh...@googlegroups.com] On Behalf Of John C. Bland II
Sent: Sunday, June 06, 2010 8:14 AM
To: cfwh...@googlegroups.com
Subject: Re: [cfwheels] Re: Using set() for custom global variables
Thx
On Jun 11, 2010 1:44 PM, "Gary Herman" <ghe...@jabico.com> wrote:
John,Well said...Gary
From: cfwh...@googlegroups.com [mailto:cfwh...@googlegroups.com] On Behalf Of John C. Bland II
Sent: Sunday, June 06, 2010 8:14 AM
To: cfwh...@googlegroups.com
Subject: Re: [cfwheels] Re: Using set() for custom global variables
--> @jmail
--
> You're hilarious. We're discussing a feature. I provided my feedback on how I think it sh...> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" g...
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" gro...