Request scope is available to all templates.
-----Original Message-----
From: Rick Lamb [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 1:09 PM
To: Fusebox
Subject: RE: my dumb question [solved]
This may relate to your problem or not, but am I right in the idea that the
request scope is only available when in a custom tag?
Rick
-----Original Message-----
From: Brian Klotzman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 12:55 PM
To: Fusebox
Subject: Re: my dumb question [solved]
--------------F71B0F6F358B9B342BDC81AB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I agree that I want to avoid caller (actually I prefer to avoid cfmodule
when I can), but I have found that if I use a tag similar to cf_reuseform
before I call the dsp_newsite file I
can avoid both as shown below:
<!--- from index switch statement --->
<cfcase value="editsite">
<cfinclude template="qry_getsite.cfm">
<cf_reuseform
Action="query"
datasource="#MasterDSN#"
fieldlist="siteid,phone,installaddress,installaddress2,installcity,installst
ate,installcountry,installpostalcode,shipaddress,shipaddress2,shipcity,ships
tate,shipcountry,shippostalcode"
queryname="getsite">
<cfinclude template="dsp_newsite.cfm">
</cfcase>
This works, but I still don't know why it didn't work the other way (with
the request scope that is).
Thanks all
Brian
craig girard wrote:
> Rick,
>
> Ya, I thought of that after I sent it. But then you have to hard code
> exactly what you want, whether it be caller. or caller.caller. In my
> experience it has been better to just stay away.
>
> Thanks,
>
> Craig
>
> -----Original Message-----
> From: Rick Lamb [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 11:24 AM
> To: Fusebox
> Subject: RE: my dumb question [solved]
>
> Actually it will work, you would just need to add another level to the
> caller scope, caller.caller.variable.
>
> FYI
>
> Rick
>
> -----Original Message-----
> From: craig girard [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 11:05 AM
> To: Fusebox
> Subject: RE: my dumb question [solved]
>
> Brian,
>
> Very bizarre, REQUEST should work. CALLER will work for one level up from
> the custom tag, but as a personal design issue, is something I like to
stay
> away from unless using it to pass back variables to the calling file. If
> that code gets called from within another custom tag CALLER scope will not
> work.
>
> Craig
>
> -----Original Message-----
> From: Brian Klotzman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 11:45 AM
> To: Fusebox
> Subject: Re: my dumb question [solved]
>
> --------------47994D48B851FBA1B755612E
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Thanks all. I had already tried request and attributes. The answer was
to
> scope with caller.
>
> Thanks,
>
> Brian
>
> Rick Lamb wrote:
>
> > Well if your calling it using cfmodule that you will either have to
> include
> > the dns as an attribute or use the caller scope to call the dns.
> >
> > Rick
> >
> > -----Original Message-----
> > From: Brian Klotzman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 02, 2000 10:21 AM
> > To: Fusebox
> > Subject: my dumb question
> >
> > Ok, this one is probably pretty dumb, but here goes anyway. I'm
> > "re"working a partially written app into fusebox and I'm trying to reuse
> > a form I created (blank, query, etc.)
> >
> > Everything works fine like this:
> >
> > <cfswitch expression="#attributes.fuseaction#">
> > <cfcase value="newsite">
> > <cfinclude template="dsp_newsite.cfm">
> > </cfcase>
> > ......
> >
> > But when I change it to:
> >
> > <cfswitch expression="#attributes.fuseaction#">
> > <cfcase value="newsite">
> > <cfmodule template="dsp_newsite.cfm"
> > action="blank"
> >
> >
>
fieldlist="siteid,sitecontact,phone,installaddress,installaddress2,installci
> >
>
ty,installstate,installcountry,installpostalcode,sameship,shipaddress,shipad
> > dress2,shipcity,shipstate,shipcountry,shippostalcode">
> >
> > </cfcase>
> > ......
> >
> > I get an error on dsp_newsite.cfm where it can't resolve my datasource
> > name which is defined in app_globals.cfm.
> >
> > It would seem that the values from app_globals are not being called when
> > I use cfmodule, but my debug info shows that it did indeed call this
> > file, it just seems to be dropping this one value. anyone run into
> > this before?
> >
> > Thanks
> >
> > --
> > Brian Klotzman
> > Senior Developer
> > PowerUp Networks
> > 214-576-9878
> >
>
> --------------------------------------------------------------------------
> --
> > --
> > To Unsubscribe visit
> > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox
or
> > send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
> > the body.
> >
>
> --------------------------------------------------------------------------
> ----
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --
> Brian Klotzman
> Senior Developer
> PowerUp Networks
> 214-576-9878
>
> --------------47994D48B851FBA1B755612E
> Content-Type: text/html; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> Thanks all. I had already tried request and attributes. The
> answer was to scope with caller.
> <p>Thanks,
> <p>Brian
> <p>Rick Lamb wrote:
> <blockquote TYPE=CITE>Well if your calling it using cfmodule that you will
> either have to include
> <br>the dns as an attribute or use the caller scope to call the dns.
> <p>Rick
> <p>-----Original Message-----
> <br>From: Brian Klotzman [<a
>
href="mailto:[EMAIL PROTECTED]">mailto:brian.klotzman@power
> upnetworks.com</a>]
> <br>Sent: Thursday, November 02, 2000 10:21 AM
> <br>To: Fusebox
> <br>Subject: my dumb question
> <p>Ok, this one is probably pretty dumb, but here goes anyway. I'm
> <br>"re"working a partially written app into fusebox and I'm trying to
> reuse
> <br>a form I created (blank, query, etc.)
> <p>Everything works fine like this:
> <p><cfswitch expression="#attributes.fuseaction#">
> <br> <cfcase value="newsite">
> <br> <cfinclude template="dsp_newsite.cfm">
> <br></cfcase>
> <br>......
> <p>But when I change it to:
> <p><cfswitch expression="#attributes.fuseaction#">
> <br> <cfcase value="newsite">
> <br> <cfmodule template="dsp_newsite.cfm"
> <br> action="blank"
>
<p>fieldlist="siteid,sitecontact,phone,installaddress,installaddress2,instal
> lci
>
<br>ty,installstate,installcountry,installpostalcode,sameship,shipaddress,sh
> ipad
> <br>dress2,shipcity,shipstate,shipcountry,shippostalcode">
> <p> </cfcase>
> <br>......
> <p>I get an error on dsp_newsite.cfm where it can't resolve my datasource
> <br>name which is defined in app_globals.cfm.
> <p>It would seem that the values from app_globals are not being called
> when
> <br>I use cfmodule, but my debug info shows that it did indeed call this
> <br>file, it just seems to be dropping this one value. anyone
> run into
> <br>this before?
> <p>Thanks
> <p>--
> <br>Brian Klotzman
> <br>Senior Developer
> <br>PowerUp Networks
> <br>214-576-9878
>
<p>-------------------------------------------------------------------------
> ---
> <br>--
> <br>To Unsubscribe visit
> <br><a
>
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
>
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
> ox</a>
> or
> <br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
> in
> <br>the body.
>
<p>-------------------------------------------------------------------------
> -----
> <br>To Unsubscribe visit <a
>
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
>
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
> ox</a>
> or send a message to [EMAIL PROTECTED] with 'unsubscribe'
> in the body.</blockquote>
>
> <p>--
> <br>Brian Klotzman
> <br>Senior Developer
> <br>PowerUp Networks
> <br>214-576-9878
> <br> </html>
>
> --------------47994D48B851FBA1B755612E--
>
> --------------------------------------------------------------------------
--
> --
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
--
> --
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
--
> --
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Brian Klotzman
Senior Developer
PowerUp Networks
214-576-9878
--------------F71B0F6F358B9B342BDC81AB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I agree that I want to avoid caller (actually I prefer to avoid cfmodule
when I can), but I have found that if I use a tag similar to cf_reuseform
<i>before</i> I call the dsp_newsite file I can avoid both as shown below:
<p><!--- from index switch statement --->
<br> <cfcase value="editsite">
<br> <cfinclude template="qry_getsite.cfm">
<br> <cf_reuseform
<br> Action="query"
<br> datasource="#MasterDSN#"
<br>
fieldlist="siteid,phone,installaddress,installaddress2,installcity,installst
ate,installcountry,installpostalcode,shipaddress,shipaddress2,shipcity,ships
tate,shipcountry,shippostalcode"
<br> queryname="getsite">
<br> <cfinclude template="dsp_newsite.cfm">
<br> </cfcase>
<p>This works, but I still don't know why it didn't work the other way
(with the request scope that is).
<p>Thanks all
<p>Brian
<p>craig girard wrote:
<blockquote TYPE=CITE>Rick,
<p>Ya, I thought of that after I sent it. But then you have to hard
code
<br>exactly what you want, whether it be caller. or caller.caller.
In my
<br>experience it has been better to just stay away.
<p>Thanks,
<p>Craig
<p>-----Original Message-----
<br>From: Rick Lamb [<a
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>]
<br>Sent: Thursday, November 02, 2000 11:24 AM
<br>To: Fusebox
<br>Subject: RE: my dumb question [solved]
<p>Actually it will work, you would just need to add another level to the
<br>caller scope, caller.caller.variable.
<p>FYI
<p>Rick
<p>-----Original Message-----
<br>From: craig girard [<a
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>]
<br>Sent: Thursday, November 02, 2000 11:05 AM
<br>To: Fusebox
<br>Subject: RE: my dumb question [solved]
<p>Brian,
<p>Very bizarre, REQUEST should work. CALLER will work for one level
up from
<br>the custom tag, but as a personal design issue, is something I like
to stay
<br>away from unless using it to pass back variables to the calling
file.
If
<br>that code gets called from within another custom tag CALLER scope will
not
<br>work.
<p>Craig
<p>-----Original Message-----
<br>From: Brian Klotzman [<a
href="mailto:[EMAIL PROTECTED]">mailto:brian.klotzman@power
upnetworks.com</a>]
<br>Sent: Thursday, November 02, 2000 11:45 AM
<br>To: Fusebox
<br>Subject: Re: my dumb question [solved]
<p>--------------47994D48B851FBA1B755612E
<br>Content-Type: text/plain; charset=us-ascii
<br>Content-Transfer-Encoding: 7bit
<p>Thanks all. I had already tried request and attributes.
The answer was to
<br>scope with caller.
<p>Thanks,
<p>Brian
<p>Rick Lamb wrote:
<p>> Well if your calling it using cfmodule that you will either have to
<br>include
<br>> the dns as an attribute or use the caller scope to call the dns.
<br>>
<br>> Rick
<br>>
<br>> -----Original Message-----
<br>> From: Brian Klotzman [<a
href="mailto:[EMAIL PROTECTED]">mailto:brian.klotzman@power
upnetworks.com</a>]
<br>> Sent: Thursday, November 02, 2000 10:21 AM
<br>> To: Fusebox
<br>> Subject: my dumb question
<br>>
<br>> Ok, this one is probably pretty dumb, but here goes anyway.
I'm
<br>> "re"working a partially written app into fusebox and I'm trying to
reuse
<br>> a form I created (blank, query, etc.)
<br>>
<br>> Everything works fine like this:
<br>>
<br>> <cfswitch expression="#attributes.fuseaction#">
<br>> <cfcase value="newsite">
<br>> <cfinclude template="dsp_newsite.cfm">
<br>> </cfcase>
<br>> ......
<br>>
<br>> But when I change it to:
<br>>
<br>> <cfswitch expression="#attributes.fuseaction#">
<br>> <cfcase value="newsite">
<br>> <cfmodule template="dsp_newsite.cfm"
<br>> action="blank"
<br>>
<br>>
<br>fieldlist="siteid,sitecontact,phone,installaddress,installaddress2,insta
llci
<br>>
<br>ty,installstate,installcountry,installpostalcode,sameship,shipaddress,sh
ipad
<br>> dress2,shipcity,shipstate,shipcountry,shippostalcode">
<br>>
<br>> </cfcase>
<br>> ......
<br>>
<br>> I get an error on dsp_newsite.cfm where it can't resolve my datasource
<br>> name which is defined in app_globals.cfm.
<br>>
<br>> It would seem that the values from app_globals are not being called
when
<br>> I use cfmodule, but my debug info shows that it did indeed call this
<br>> file, it just seems to be dropping this one value. anyone
run into
<br>> this before?
<br>>
<br>> Thanks
<br>>
<br>> --
<br>> Brian Klotzman
<br>> Senior Developer
<br>> PowerUp Networks
<br>> 214-576-9878
<br>>
<br>> ----------------------------------------------------------------------
----
<br>--
<br>> --
<br>> To Unsubscribe visit
<br>> <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or
<br>> send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>> the body.
<br>>
<br>> ----------------------------------------------------------------------
----
<br>----
<br>> To Unsubscribe visit
<br><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or
<br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>the body.
<p>--
<br>Brian Klotzman
<br>Senior Developer
<br>PowerUp Networks
<br>214-576-9878
<p>--------------47994D48B851FBA1B755612E
<br>Content-Type: text/html; charset=us-ascii
<br>Content-Transfer-Encoding: 7bit
<p><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<br><html>
<br>Thanks all.&nbsp; I had already tried request and
attributes.&nbsp;
The
<br>answer was to scope with caller.
<br><p>Thanks,
<br><p>Brian
<br><p>Rick Lamb wrote:
<br><blockquote TYPE=CITE>Well if your calling it using cfmodule that
you will
<br>either have to include
<br><br>the dns as an attribute or use the caller scope to call the
dns.
<br><p>Rick
<br><p>-----Original Message-----
<br><br>From: Brian Klotzman [<a
<br>href="<a
href="mailto:[EMAIL PROTECTED]">mailto:brian.klotzman@power
upnetworks.com</a>"><a
href="mailto:brian.klotzman@power">mailto:brian.klotzman@power</a>
<br>upnetworks.com</a>]
<br><br>Sent: Thursday, November 02, 2000 10:21 AM
<br><br>To: Fusebox
<br><br>Subject: my dumb question
<br><p>Ok, this one is probably pretty dumb, but here goes
anyway.&nbsp;
I'm
<br><br>"re"working a partially written app into fusebox and I'm trying
to
<br>reuse
<br><br>a form I created (blank, query, etc.)
<br><p>Everything works fine like this:
<br><p>&lt;cfswitch expression="#attributes.fuseaction#">
<br><br>&nbsp;&lt;cfcase value="newsite">
<br><br>&nbsp; &lt;cfinclude template="dsp_newsite.cfm">
<br><br>&lt;/cfcase>
<br><br>......
<br><p>But when I change it to:
<br><p>&lt;cfswitch expression="#attributes.fuseaction#">
<br><br>&nbsp;&lt;cfcase value="newsite">
<br><br>&nbsp;&nbsp; &lt;cfmodule template="dsp_newsite.cfm"
<br><br>&nbsp;&nbsp; action="blank"
<br><p>fieldlist="siteid,sitecontact,phone,installaddress,installaddress2
,instal
<br>lci
<br><br>ty,installstate,installcountry,installpostalcode,sameship,shipadd
ress,sh
<br>ipad
<br><br>dress2,shipcity,shipstate,shipcountry,shippostalcode">
<br><p>&nbsp; &lt;/cfcase>
<br><br>......
<br><p>I get an error on dsp_newsite.cfm where it can't resolve my
datasource
<br><br>name which is defined in app_globals.cfm.
<br><p>It would seem that the values from app_globals are not being
called
<br>when
<br><br>I use cfmodule, but my debug info shows that it did indeed call
this
<br><br>file, it just seems to be dropping this one
value.&nbsp;&nbsp;
anyone
<br>run into
<br><br>this before?
<br><p>Thanks
<br><p>--
<br><br>Brian Klotzman
<br><br>Senior Developer
<br><br>PowerUp Networks
<br><br>214-576-9878
<br><p>------------------------------------------------------------------
-------
<br>---
<br><br>--
<br><br>To Unsubscribe visit
<br><br><a
<br>href="<a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
</a>
<br>x"><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fu
seb">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists
/fuseb</a>
<br>ox</a>
<br>or
<br><br>send a message to [EMAIL PROTECTED] with
'unsubscribe'
<br>in
<br><br>the body.
<br><p>------------------------------------------------------------------
-------
<br>-----
<br><br>To Unsubscribe visit <a
<br>href="<a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
</a>
<br>x"><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fu
seb">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists
/fuseb</a>
<br>ox</a>
<br>or send a message to [EMAIL PROTECTED] with
'unsubscribe'
<br>in the body.</blockquote>
<p><p>--
<br><br>Brian Klotzman
<br><br>Senior Developer
<br><br>PowerUp Networks
<br><br>214-576-9878
<br><br>&nbsp;</html>
<p>--------------47994D48B851FBA1B755612E--
<p>-------------------------------------------------------------------------
---
<br>--
<br>To Unsubscribe visit
<br><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or
<br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>the body.
<p>-------------------------------------------------------------------------
---
<br>--
<br>To Unsubscribe visit
<br><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or
<br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>the body.
<p>-------------------------------------------------------------------------
---
<br>--
<br>To Unsubscribe visit
<br><a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or
<br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
in
<br>the body.
<p>-------------------------------------------------------------------------
-----
<br>To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fuseb
ox</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.</blockquote>
<p>--
<br>Brian Klotzman
<br>Senior Developer
<br>PowerUp Networks
<br>214-576-9878
<br> </html>
--------------F71B0F6F358B9B342BDC81AB--
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.