> Most of the fields I want to present on a page are
> contained within
> USERDETAILS structure variable, e.g. UserDetails.UserID,
> UserDetails.UserName, UserDetails.PrimaryEmail

> Is there a way to reference these while using the variable
> UserDetails only
> once?

> Something like this:

> <CFOutput>
> With UserDetails
>     UserID = #UserID#
>     UserName = #UserName#
>     Email = #PrimaryEmail#
> EndWith
> </CFOutput>

> Instead of this:

> <CFOutput>
>     UserID = #UserDetails.UserID#
>     UserName = #UserDetails.UserName#
>     Email = #UserDetails.PrimaryEmail#
> </CFOutput>

You could try

<cfset temp = StructAppend(Variables,UserDetails,true) />
<CFOutput>
With UserDetails
    UserID = #UserID#
    UserName = #UserName#
    Email = #PrimaryEmail#
EndWith
</CFOutput>

No guarantees tho. Personally I think it's bad form anyway and I try to
fully qualify query variables even within an output of that query, but there
it is.

s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to