It is returning an invalid expression format, and looks like it is pointing to the contents of what is being evaluated. It is identifying a semi colon as being the issue when there is no semi colon in my contents. That is when I tried removing the brackets.
So, it works, just wanted to let you know. Dan ----- Original Message ----- From: "David Churvis" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, December 15, 2004 11:47 AM Subject: Re: [plum] Dan's issues > [value] is replaced with the actual expression that needs to be evaluated. > What is the error you received with the brackets in place? > > formatFunction *should* accept any valid expression, but in some cases (most > often when double quotes are involved), the internal call to Evaluate() can > create some strange results. I would steer clear of very complex > expressions; this is not a limitation of Plum but rather a quirk of > ColdFusion's Evaluate() and DE() functions. > > Dave > ----- Original Message ----- > From: "Dan O'Keefe" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, December 15, 2004 11:29 AM > Subject: Re: [plum] Dan's issues > > > > Dave, > > > > I had to remove the brackets to get it to work: > > > > Iif(len(value) LTE 25, DE(value), DE(Left(value, 25) & '...')) > > > > What is the purpose of the brackets around the [value] parameter? > > > > Should the formatFuntion attribute of the tag support any valid > expression? > > > > Thanks, > > > > Dan > > > > ----- Original Message ----- > > From: "David Churvis" <[EMAIL PROTECTED]> > > To: <[email protected]> > > Sent: Wednesday, December 15, 2004 10:22 AM > > Subject: Re: [plum] Dan's issues > > > > > > > Dan, > > > > > > I missed the second argument to the Left function. In addition, the > > single > > > quotes around the value are not necessary. This expression works: > > > > > > Iif(len([value]) LTE 25, DE([value]), DE(Left([value], 25) & '...')) > > > > > > Sorry for the confusion, > > > Dave > > > > > > ----- Original Message ----- > > > From: "Dan O'Keefe" <[EMAIL PROTECTED]> > > > To: <[email protected]> > > > Sent: Wednesday, December 15, 2004 10:05 AM > > > Subject: Re: [plum] Dan's issues > > > > > > > > > > Adam, > > > > > > > > That expression resulted in the following error: > > > > > > > > 10:01:53.053 - java.lang.NullPointerException - in > > > > D:\wserver\ediets\pipelineManager\components\Formatting.cfc : line 270 > > > > > > > > Should the formatFuntion attribute of the tag support any valid > > > expression? > > > > > > > > Dan > > > > =================== Previous Message Below =================== > > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] On Behalf Of > David > > > > Churvis > > > > Sent: Friday, December 10, 2004 8:04 PM > > > > To: [email protected] > > > > Subject: Re: [plum] Dan's issues > > > > > > > > Dan, > > > > > > > > Try something like: > > > > > > > > Iif(len('[value]') LTE 25, DE('[value]'), DE(Left('[value]') & '...')) > > > > > > > > It's a little complicated, I'm sure, but it should work OK. Let me > know > > > > if you have any problems :) > > > > > > > > Dave > > > > > > > > ----- Original Message ----- > > > > From: "Dan O'Keefe" <[EMAIL PROTECTED]> > > > > To: <[email protected]> > > > > Sent: Friday, December 10, 2004 3:25 PM > > > > Subject: Re: [plum] Dan's issues > > > > > > > > > > > > > That worked, Thanks Dave. Are the single quotes always required? > > > > > > > > > > Ideally, what I would like to do is display the value if it is less > > > > > than > > > > 25, > > > > > but if it is greater take the left 25 characters and append three > > > > dots: > > > > > > > > > > <cfif len('[value]') LTE > > > > > 25>[value]<cfelse>left('[value]',25)...</cfif> > > > > > > > > > > Does the formatting component handle something like this? > > > > > > > > > > Dan > > > > > ----- Original Message ----- > > > > > From: "David Churvis" <[EMAIL PROTECTED]> > > > > > To: <[email protected]> > > > > > Sent: Wednesday, December 08, 2004 9:25 AM > > > > > Subject: Re: [plum] Dan's issues > > > > > > > > > > > > > > > > Meh - sorry. Make that "left('[value]', 25)". Double quotes tend > > > > > > to be problematic. > > > > > > > > > > > > Dave > > > > > > ----- Original Message ----- > > > > > > From: "Dan O'Keefe" <[EMAIL PROTECTED]> > > > > > > To: <[email protected]> > > > > > > Sent: Wednesday, December 08, 2004 9:20 AM > > > > > > Subject: Re: [plum] Dan's issues > > > > > > > > > > > > > > > > > > > no worky: Invalid CFML construct found on line 1 at column 8. > > > > > > > ----- Original Message ----- > > > > > > > From: "David Churvis" <[EMAIL PROTECTED]> > > > > > > > To: <[email protected]> > > > > > > > Sent: Wednesday, December 08, 2004 8:09 AM > > > > > > > Subject: Re: [plum] Dan's issues > > > > > > > > > > > > > > > > > > > > > > Dan, > > > > > > > > > > > > > > > > try using formatFunction="left(""[value]"", 25)". Let me know > > > > > > > > if > > > > this > > > > > > > works > > > > > > > > better for you. > > > > > > > > > > > > > > > > Dave > > > > > > > > ----- Original Message ----- > > > > > > > > From: "Daniel J O'Keefe" <[EMAIL PROTECTED]> > > > > > > > > To: <[email protected]> > > > > > > > > Sent: Wednesday, December 08, 2004 7:35 AM > > > > > > > > Subject: RE: [plum] Dan's issues > > > > > > > > > > > > > > > > > > > > > > > > > Adam, > > > > > > > > > > > > > > > > > > Any thought on the formatting error? > > > > > > > > > > > > > > > > > > > > > > > > > > > Dan > > > > > > > > > =================== Previous Message Below > =================== > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: [EMAIL PROTECTED] > > > > > > > > > [mailto:[EMAIL PROTECTED] On > Behalf > > > > > > > > > > > > > Of > > > > > Adam > > > > > > > > > Churvis > > > > > > > > > Sent: Tuesday, December 07, 2004 12:06 AM > > > > > > > > > To: Plum Discussion List > > > > > > > > > Subject: [plum] Dan's issues > > > > > > > > > > > > > > > > > > Dan and friends, > > > > > > > > > > > > > > > > > > David and I are going to try to handle the following three > > > > > > > > > issues > > > > > > > tomorrow > > > > > > > > > after training is done: > > > > > > > > > > > > > > > > > > 1) The New Module issue (thanks for the DB, Dan -- we'll > look > > > > > > > > > at > > > > > it), > > > > > > > > > > > > > > > > > > 2) The formatting error being thrown, and > > > > > > > > > > > > > > > > > > 3) The inability to edit link behavior. > > > > > > > > > > > > > > > > > > Regarding the form-on-a-list issue, you can easily just add > > > > regular > > > > > > HTML > > > > > > > > > form markup after the closing cf_DisplayList Plum custom > tag. > > > > > > > > > > > > > As > > > > > long > > > > > > > as > > > > > > > > > it's outside DisplayList, you should be okay. > > > > > > > > > > > > > > > > > > Respectfully, > > > > > > > > > > > > > > > > > > Adam Phillip Churvis > > > > > > > > > Member of Team Macromedia > > > > > > > > > http://www.ProductivityEnhancement.com > > > > > > > > > > > > > > > > > > Download Plum and other cool development tools, and get > > > > > > > > > advanced > > > > > > > intensive > > > > > > > > > Master-level training: > > > > > > > > > > > > > > > > > > * C# & ASP.NET for ColdFusion Developers > > > > > > > > > * ColdFusion MX Master Class > > > > > > > > > * Advanced Development with CFMX and SQL Server 2000 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************** > > > > > > > > > You can subscribe to and unsubscribe from lists, and you can > > > > change > > > > > > your > > > > > > > > > subscriptions between normal and digest modes here: > > > > > > > > > > > > > > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > > > > > > > > > > > > ********************************************************************** > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************** > > > > > > > > > You can subscribe to and unsubscribe from lists, and you can > > > > change > > > > > > > > > your subscriptions between normal and digest modes here: > > > > > > > > > > > > > > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > > > > > > > > > > > > ********************************************************************** > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************** > > > > > > > > You can subscribe to and unsubscribe from lists, and you can > > > > > > > > change your subscriptions between normal and digest modes > here: > > > > > > > > > > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > > > > > > > > > ********************************************************************** > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ****************************************************************** > > > > > > > **** You can subscribe to and unsubscribe from lists, and you > can > > > > > > > change your subscriptions between normal and digest modes here: > > > > > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm > > > > > > > .cfm > > > > > > > > ****************************************************************** > > > > > > > **** > > > > > > > > > > > > > > > > > > > > > > > > > > ******************************************************************** > > > > > > ** You can subscribe to and unsubscribe from lists, and you can > > > > > > change your subscriptions between normal and digest modes here: > > > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.c > > > > > > fm > > > > > > > ******************************************************************** > > > > > > ** > > > > > > > > > > > > > > > > > > > > > ********************************************************************** > > > > > You can subscribe to and unsubscribe from lists, and you can change > > > > > your subscriptions between normal and digest modes here: > > > > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > > > ********************************************************************** > > > > > > > > > > > > > > > > > ********************************************************************** > > > > You can subscribe to and unsubscribe from lists, and you can change > your > > > > subscriptions between normal and digest modes here: > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > ********************************************************************** > > > > > > > > > > > > > > > > > > > > ********************************************************************** > > > > You can subscribe to and unsubscribe from lists, and you can change > > > > your subscriptions between normal and digest modes here: > > > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > > ********************************************************************** > > > > > > > > > > > > > ********************************************************************** > > > You can subscribe to and unsubscribe from lists, and you can change > > > your subscriptions between normal and digest modes here: > > > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > > ********************************************************************** > > > > > > > > ********************************************************************** > > You can subscribe to and unsubscribe from lists, and you can change > > your subscriptions between normal and digest modes here: > > > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > > ********************************************************************** > > > > > ********************************************************************** > You can subscribe to and unsubscribe from lists, and you can change > your subscriptions between normal and digest modes here: > > http://www.productivityenhancement.com/support/DiscussionListsForm.cfm > ********************************************************************** ********************************************************************** You can subscribe to and unsubscribe from lists, and you can change your subscriptions between normal and digest modes here: http://www.productivityenhancement.com/support/DiscussionListsForm.cfm **********************************************************************
