Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Fusebox
Cold Fusion Fuse Box List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About CF Fusebox Methods :
product's home
product's list home
 
  Archived TallyList / Fusebox: 
Subject: RE: Newbie --Request Scope and CFLocation question
BORKMAN Lee (83p/+0r)     Posted: Monday 30 Apr 2001
This post: 41 views, +0 rating

Hi Marc,

Yes, a CFLOCATION initiates a NEW request, so request-scope variables will not carry through. There are any number of ways to pass variables around if you need to: URL, CLient Vars, etc. I normally opt for the URL. Just append the parameters onto the URL in your CFLOCATION.

Best of luck, Lee.

-----Original Message----- From: Marc Ready [mailto:mready@pchelpltd.com] Sent: Tuesday, 1 May 2001 9:24 To: Fusebox Subject: Newbie --Request Scope and CFLocation question

Hello anybody,

I have been creating my first fusebox application and I am a little unclear on the request scope as it relates to cflocation. After a cflocation a request scope set in an action template is no longer available.

Example

<CFCASE VALUE="AddUpdateCarrier">

// used to update the database and to run a select query to get // the Company Name so I can pass it the Add User Form for // display. I tried using <CFSET Request.sCompanyName = #qryGetCompany.sCompanyName#> // in this template. <CFINCLUDE TEMPLATE="act_AddCopmpany.cfm">

// the request scope variable shows up here <CFOUTPUT>#Request.sCompanyName#</CFOUTPUT>

// this template uses a CFLocation to so the user // can't reload/repost the previous form and calls the // fuseaction below "AddUpdateUser" <CFINCLUDE TEMPLATE="url_AddUser.cfm">

</CFCASE>

<CFCASE VALUE="AddUpdateUser">

// <CFOUTPUT>#Request.sCompanyName#</CFOUTPUT> // will not be available to this template

<CFINCLUDE Template=dsp_AddUpdateUser.cfm>

</CFCASE>

Setting as Client scope works fine but not the Request scope.

Is there something I'm missing? I am developing on 4.01 and the Request scope works for all the variables set in app_server etc.

Also, is there any decent documentation anywhere on the request scope?

Best!

Marc Ready ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Similar Subject Line Posts (+/- two weeks of this post)
RE: Newbie --Request Scope and CFLocation question  30 Apr 2001   (20 v/ +0 r)
RE: Newbie --Request Scope and CFLocation question  30 Apr 2001   (50 v/ +0 r)
RE: Newbie --Request Scope and CFLocation question  30 Apr 2001 (this post)   (41 v/ +0 r)
Newbie --Request Scope and CFLocation question  30 Apr 2001   (31 v/ +0 r)
 

Send a reply to the Fusebox list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000