--------------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,installstate,installcountry,installpostalcode,shipaddress,shipaddress2,shipcity,shipstate,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.&nbsp; I had already tried request and attributes.&nbsp; 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.&nbsp; 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>&lt;cfswitch expression="#attributes.fuseaction#">
> <br>&nbsp;&lt;cfcase value="newsite">
> <br>&nbsp; &lt;cfinclude template="dsp_newsite.cfm">
> <br>&lt;/cfcase>
> <br>......
> <p>But when I change it to:
> <p>&lt;cfswitch expression="#attributes.fuseaction#">
> <br>&nbsp;&lt;cfcase value="newsite">
> <br>&nbsp;&nbsp; &lt;cfmodule template="dsp_newsite.cfm"
> <br>&nbsp;&nbsp; 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>&nbsp; &lt;/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.&nbsp;&nbsp; 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&amp;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&amp;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>&nbsp;</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>&lt;!--- from index switch statement --->
<br>&nbsp;&lt;cfcase value="editsite">
<br>&nbsp; &lt;cfinclude template="qry_getsite.cfm">
<br>&nbsp;&nbsp; &lt;cf_reuseform
<br>&nbsp;&nbsp; Action="query"
<br>&nbsp;&nbsp; datasource="#MasterDSN#"
<br>&nbsp;&nbsp; 
fieldlist="siteid,phone,installaddress,installaddress2,installcity,installstate,installcountry,installpostalcode,shipaddress,shipaddress2,shipcity,shipstate,shipcountry,shippostalcode"
<br>&nbsp;&nbsp; queryname="getsite">
<br>&nbsp; &lt;cfinclude template="dsp_newsite.cfm">
<br>&nbsp;&lt;/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.&nbsp; But then you have to hard
code
<br>exactly what you want, whether it be caller. or caller.caller.&nbsp;
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.&nbsp; 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.&nbsp;
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:[EMAIL PROTECTED]</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.&nbsp; I had already tried request and attributes.&nbsp;
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:[EMAIL PROTECTED]</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.&nbsp;
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>> &lt;cfswitch expression="#attributes.fuseaction#">
<br>>&nbsp; &lt;cfcase value="newsite">
<br>>&nbsp;&nbsp; &lt;cfinclude template="dsp_newsite.cfm">
<br>> &lt;/cfcase>
<br>> ......
<br>>
<br>> But when I change it to:
<br>>
<br>> &lt;cfswitch expression="#attributes.fuseaction#">
<br>>&nbsp; &lt;cfcase value="newsite">
<br>>&nbsp;&nbsp;&nbsp; &lt;cfmodule template="dsp_newsite.cfm"
<br>>&nbsp;&nbsp;&nbsp; action="blank"
<br>>
<br>>
<br>fieldlist="siteid,sitecontact,phone,installaddress,installaddress2,installci
<br>>
<br>ty,installstate,installcountry,installpostalcode,sameship,shipaddress,shipad
<br>> dress2,shipcity,shipstate,shipcountry,shippostalcode">
<br>>
<br>>&nbsp;&nbsp; &lt;/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.&nbsp;&nbsp; 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/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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>&lt;!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<br>&lt;html>
<br>Thanks all.&amp;nbsp; I had already tried request and attributes.&amp;nbsp;
The
<br>answer was to scope with caller.
<br>&lt;p>Thanks,
<br>&lt;p>Brian
<br>&lt;p>Rick Lamb wrote:
<br>&lt;blockquote TYPE=CITE>Well if your calling it using cfmodule that
you will
<br>either have to include
<br>&lt;br>the dns as an attribute or use the caller scope to call the
dns.
<br>&lt;p>Rick
<br>&lt;p>-----Original Message-----
<br>&lt;br>From: Brian Klotzman [&lt;a
<br>href="<a 
href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</a>"><a
 href="mailto:brian.klotzman@power">mailto:brian.klotzman@power</a>
<br>upnetworks.com&lt;/a>]
<br>&lt;br>Sent: Thursday, November 02, 2000 10:21 AM
<br>&lt;br>To: Fusebox
<br>&lt;br>Subject: my dumb question
<br>&lt;p>Ok, this one is probably pretty dumb, but here goes anyway.&amp;nbsp;
I'm
<br>&lt;br>"re"working a partially written app into fusebox and I'm trying
to
<br>reuse
<br>&lt;br>a form I created (blank, query, etc.)
<br>&lt;p>Everything works fine like this:
<br>&lt;p>&amp;lt;cfswitch expression="#attributes.fuseaction#">
<br>&lt;br>&amp;nbsp;&amp;lt;cfcase value="newsite">
<br>&lt;br>&amp;nbsp; &amp;lt;cfinclude template="dsp_newsite.cfm">
<br>&lt;br>&amp;lt;/cfcase>
<br>&lt;br>......
<br>&lt;p>But when I change it to:
<br>&lt;p>&amp;lt;cfswitch expression="#attributes.fuseaction#">
<br>&lt;br>&amp;nbsp;&amp;lt;cfcase value="newsite">
<br>&lt;br>&amp;nbsp;&amp;nbsp; &amp;lt;cfmodule template="dsp_newsite.cfm"
<br>&lt;br>&amp;nbsp;&amp;nbsp; action="blank"
<br>&lt;p>fieldlist="siteid,sitecontact,phone,installaddress,installaddress2,instal
<br>lci
<br>&lt;br>ty,installstate,installcountry,installpostalcode,sameship,shipaddress,sh
<br>ipad
<br>&lt;br>dress2,shipcity,shipstate,shipcountry,shippostalcode">
<br>&lt;p>&amp;nbsp; &amp;lt;/cfcase>
<br>&lt;br>......
<br>&lt;p>I get an error on dsp_newsite.cfm where it can't resolve my datasource
<br>&lt;br>name which is defined in app_globals.cfm.
<br>&lt;p>It would seem that the values from app_globals are not being
called
<br>when
<br>&lt;br>I use cfmodule, but my debug info shows that it did indeed call
this
<br>&lt;br>file, it just seems to be dropping this one value.&amp;nbsp;&amp;nbsp;
anyone
<br>run into
<br>&lt;br>this before?
<br>&lt;p>Thanks
<br>&lt;p>--
<br>&lt;br>Brian Klotzman
<br>&lt;br>Senior Developer
<br>&lt;br>PowerUp Networks
<br>&lt;br>214-576-9878
<br>&lt;p>-------------------------------------------------------------------------
<br>---
<br>&lt;br>--
<br>&lt;br>To Unsubscribe visit
<br>&lt;br>&lt;a
<br>href="<a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebo</a>
<br>x"><a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fuseb">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;amp;body=lists/fuseb</a>
<br>ox&lt;/a>
<br>or
<br>&lt;br>send a message to [EMAIL PROTECTED] with 'unsubscribe'
<br>in
<br>&lt;br>the body.
<br>&lt;p>-------------------------------------------------------------------------
<br>-----
<br>&lt;br>To Unsubscribe visit &lt;a
<br>href="<a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebo</a>
<br>x"><a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fuseb">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;amp;body=lists/fuseb</a>
<br>ox&lt;/a>
<br>or send a message to [EMAIL PROTECTED] with 'unsubscribe'
<br>in the body.&lt;/blockquote>
<p>&lt;p>--
<br>&lt;br>Brian Klotzman
<br>&lt;br>Senior Developer
<br>&lt;br>PowerUp Networks
<br>&lt;br>214-576-9878
<br>&lt;br>&amp;nbsp;&lt;/html>
<p>--------------47994D48B851FBA1B755612E--
<p>----------------------------------------------------------------------------
<br>--
<br>To Unsubscribe visit
<br><a 
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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/fusebox">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/fusebox</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>&nbsp;</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.

Reply via email to