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