To make cfparam useful, wrap it in a try catch
<cftry>
<cfparam name="attributes.objectID" type="UUID">
<cfset r_bIsUUID = TRUE>
<cfcatch>
<cfset r_bIsUUID = FALSE>
</cfcatch>
</cftry>
To *really* make it useful, but this in a customtag:
<cfparam name="attributes.r_bIsUUID" type="string">
<cftry>
<cfparam name="attributes.objectID" type="UUID">
<cfset "caller.#attributes.r_bIsUUID#" = TRUE>
<cfcatch>
<cfset "caller.#attributes.r_bIsUUID#" = FALSE>
</cfcatch>
</cftry>
Cheers
Gareth
-----Original Message-----
From: Darren Walker [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2001 14:23
To: Spectra-Talk
Subject: RE: Valid Objectid
ha ha
Clicked on the link, not realising outlook had chopped off the URL...So I
got this error:
The value 'CA34779B-2830-11D4-AA' is not valid object ID. This value was
passed to the custom tag 'cfa_isEmbeddedObject' via the attribute
'objectID'.
Heh. Ironic - this is a great tag, thanks to Justin who wrote it, maybe
someone at macromedia should use it.
If you use the old CFparam type="UUID" trick, you just get another error
before the string is passed to the spectra tag. So not really a useful
solution.
-----Original Message-----
From: Neil Clark [mailto:[EMAIL PROTECTED]]
Sent: 24 July 2001 14:08
To: Spectra-Talk
Subject: RE: Valid Objectid
or try a custom tag from the dev exchange like the one below.
CF_isUUID
http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34779B-2830-11D4-AA
9700508B94F380&method=Full
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.