• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERXFixedLengthString ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXFixedLengthString ?


  • Subject: Re: ERXFixedLengthString ?
  • From: Theodore Petrosky <email@hidden>
  • Date: Sun, 23 Sep 2012 08:55:59 -0700 (PDT)

ok so here are my two rules:

100 : (pageConfiguration = 'ListAgenda' and propertyKey = 'meetingPurpose') => length = "20" [com.webobjects.directtoweb.Assignment]
100 : (pageConfiguration = 'ListAgenda' and propertyKey = 'meetingPurpose') => value = "ERDDisplayLargeString" [com.webobjects.directtoweb.Assignment]

i was doing something wrong:
should have been

100 : (pageConfiguration = 'ListAgenda' and propertyKey = 'meetingPurpose') => componentName = "ERDDisplayLargeString" [com.webobjects.directtoweb.Assignment]

I just had to read it 50 more times for my pea brain.

Thanks



--- On Sun, 9/23/12, Fabian Peters <email@hidden> wrote:

> From: Fabian Peters <email@hidden>
> Subject: Re: ERXFixedLengthString ?
> To: "WebObjects List List" <email@hidden>
> Cc: "Theodore Petrosky" <email@hidden>
> Date: Sunday, September 23, 2012, 11:19 AM
> Actually, the suffix is hardcoded in
> ERDDisplayLargeString as "...", not "…", but I definitely
> can set the length via a rule similar to yours.
>
> Fabian
>
> Am 23.09.2012 um 16:43 schrieb Theodore Petrosky:
>
> > Now I feel more lost. length appears to bind to the
> value of the width of the displayed column
> >
> >
> > 100 : (pageConfiguration = 'ListAgenda' and propertyKey
> = 'meetingPurpose') => length = "20"
> [com.webobjects.directtoweb.Assignment]
> >
> > and binding suffixWhenTrimmed did nothing.
> >
> > 100 : (pageConfiguration = 'ListAgenda' and propertyKey
> = 'meetingPurpose') => suffixWhenTrimmed = "..."
> [com.webobjects.directtoweb.Assignment]
> >
> > the end result that I want is that if the string is,
> "The quick brown fox", I want to display "The q…" if the
> length is "5".
> >
> > using the ERDDisplayLargeString as the componentName
> did not do this. Or I am missing how this works.
> >
> > Ted
> >
> >
> >
> > --- On Sun, 9/23/12, Fabian Peters <email@hidden>
> wrote:
> >
> >> From: Fabian Peters <email@hidden>
> >> Subject: Re: ERXFixedLengthString ?
> >> To: "WebObjects" <email@hidden>
> >> Cc: "Theodore Petrosky" <email@hidden>
> >> Date: Sunday, September 23, 2012, 10:23 AM
> >> You can use ERDDisplayLargeString as
> >> the component name. It'll handle the value and will
> honor
> >> the length and suffixWhenTrimmed bindings if you
> define
> >> rules for those.
> >>
> >> Fabian
> >>
> >> Am 23.09.2012 um 15:49 schrieb Theodore Petrosky:
> >>
> >>> Why am I having a hard time understanding how
> to
> >> implement this? I thought I could use it on a list
> page
> >> where the attribute was a paragraph and I wanted to
> show a
> >> subset.
> >>>
> >>> would someone point me in the right direction?
> >>>
> >>> --- On Fri, 9/21/12, Theodore Petrosky <email@hidden>
> >> wrote:
> >>>
> >>>> From: Theodore Petrosky <email@hidden>
> >>>> Subject: ERXFixedLengthString ?
> >>>> To: "WebObjects" <email@hidden>
> >>>> Date: Friday, September 21, 2012, 9:45 PM
> >>>> I found this component while digging
> >>>> around. It appears to need appropriate
> rules, so
> >> I:
> >>>>
> >>>> 100 : (pageConfiguration = 'ListAgenda'
> and
> >> propertyKey =
> >>>> 'meetingPurpose') => componentName =
> >>>> "ERXFixedLengthString"
> >>>> [com.webobjects.directtoweb.Assignment]
> >>>>
> >>>> but it requires a value and a length
> binding.
> >>>>
> >>>> I don't understand the rule or rules to do
> this.
> >>>>
> >>>> Ted
> >>>>
> _______________________________________________
> >>>> Do not post admin requests to the list.
> They will
> >> be
> >>>> ignored.
> >>>> Webobjects-dev mailing list   
>   (email@hidden)
> >>>> Help/Unsubscribe/Update your Subscription:
> >>>>
> >>>> This email sent to email@hidden
> >>>>
> >>>
> >>>
> _______________________________________________
> >>> Do not post admin requests to the list. They
> will be
> >> ignored.
> >>> Webobjects-dev mailing list     
> (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>>
> >>> This email sent to email@hidden
> >>
> >>
>
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Re: ERXFixedLengthString ? (From: Fabian Peters <email@hidden>)

  • Prev by Date: Re: ERXFixedLengthString ?
  • Next by Date: Re: ERPDFGeneration problem & best practices
  • Previous by thread: Re: ERXFixedLengthString ?
  • Next by thread: Need some help with Maven
  • Index(es):
    • Date
    • Thread