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:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to