Ok, I am not sure what's going on yet, but I think I solve it. In
app_locals.cfm of the cart circuit application (fusebox app) I am creating
the cart. 

<cfif isDefined("Application.Cart.u#CFID##CFTOKEN#") eq "false">
        <cflock scope="APPLICATION" type="exclusive" timeout=10>
        
                <cfparam name="Application.Cart" default=#StructNew()#>
        
                <cfset "Application.Cart.u#CFID##CFTOKEN#" = #StructNew()#>
                <cfset "Application.Cart.u#CFID##CFTOKEN#.cart" = #StructNew()#>
                <cfset "Application.Cart.u#CFID##CFTOKEN#.date" = #Now()#>
                <cfset "Application.Cart.u#CFID##CFTOKEN#.ip" = #cgi.remote_addr#>
        
        </cflock>
</cfif> 

I just wonder why I could not check it in the dsp_showCart.cfm file.
Anybody knows?

Thanks.
Daniel

At 06:03 7/8/2001 -0500, you wrote:
>Hello. 
>
>I am trying to check if there's a Structure in the Application Scope with
>the IsStruct() function, unsuccessful. It's a simple application with a
>shopping cart. If the user add some products, I create a cart, but if the
>user wants to see the cart before the "create procedure", I need to check
>if it exists. 
>
>I am trying this way:
>
><cflock scope="APPLICATION" type="READONLY" timeout="10">
>       <cfif IsStruct(#Evaluate("Application.Cart.u#CFID##CFTOKEN#")#)>
>       (...code...)
>       <cfelse>
>       No items found.
>       </cfif>
></cflock>
>
>It blows an error: 
>
>An error occurred while evaluating the expression: 
>IsStruct(#Evaluate("Application.Cart.u#CFID##CFTOKEN#")#)
>
>An error has occurred while processing the expression:
>Application.Cart.u3553159
>
>I tried with isDefined too, unsucessful. How can I check if it exists or
not? 
>Ok, why Application scope? I want to "see" these carts on the admin side.
>
>Any idea?
>
>Thanks a lot.
>Daniel
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to