If I understand the question at hand the proper syntax should be:
<cfwddx action="CFML2WDDX" output="NewDataPacket"
input="#application.um.[UmID & "_Data"]#">
This will execute faster than the equivalent code using evaluate.
Remeber that, with structures, the [] can contain any valid expression that
evaluates to a string.
BTW in arrays it's any valid expression that evaluates to an integer.
HTH
Craig Fisher
Macromedia Certified Instructor
Alta Interactive, Inc
----- Original Message -----
From: "Mike Kear" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 8:51 AM
Subject: RE: CFWDDX problem
> Yes yes yes. The [ ] notation doesn't work. Creates an error. The error
> message says
>
> [quote]
> Invalid parser construct found on line 214 at position 78. ColdFusion was
> looking at the following text:
> .
> Invalid expression format. The usual cause is an error in the expression
> structure.
> [/quote]
>
> The period it objects to is the one immediately before the first square
> bracket in the line:
>
> <cfwddx action="CFML2WDDX" output="NewDataPacket"
> input="#application.um.[UmID]_Data#">
>
> Whereas, the 3 versions of the evaluate version did work.
>
> What's the problem with using evaluate? Is it slower than using the []
> notation?
>
>
> Cheers,
> Mike Kear
> Windsor, NSW, Australia
> AFP WebWorks
>
>
> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 11:19 PM
> To: CF-Talk
> Subject: RE: CFWDDX problem
>
> No, no no. Please do not use evaluate. Please use [] notation.
>
> Again, this is not meant to put you down, Mike, in any way, but as I
> said, I see _way_ too many people doing this. In fact, 3 people replied
> to cf-talk suggesting evaluate. Never use evaluate when you don't need
> to.
>
> =======================================================================
> Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
>
> Email : [EMAIL PROTECTED]
> Yahoo IM : morpheus
>
> "My ally is the Force, and a powerful ally it is." - Yoda
>
> >
> > > <cfwddx action="CFML2WDDX" output="UserDataPacket"
> > > input="#evaluate('application.um.' & UmID & '_Data')#">
> >
> > might help you out.
> >
> > > -----Original Message-----
> > > From: Mike Kear [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 September 2001 13:49
> > > To: CF-Talk
> > > Subject: CFWDDX problem
> > >
> > >
> > > CFWDDX problem.. What do I do about this? I want to turn a
> > > struct into a
> > > WDDX packet, but the name of the struct is dymanic, based on
> > > the user id.
> > >
> > >
> > > The struct is called: application.um.#UmID#_Data
> > >
> > > and the CFWDDX tag is as follows:
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.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