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
**********************************************************************

Reply via email to