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 protected]> wrote: > >> From: Fabian Peters <[email protected]> >> Subject: Re: ERXFixedLengthString ? >> To: "WebObjects" <[email protected]> >> Cc: "Theodore Petrosky" <[email protected]> >> 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 protected]> >> wrote: >>> >>>> From: Theodore Petrosky <[email protected]> >>>> Subject: ERXFixedLengthString ? >>>> To: "WebObjects" <[email protected]> >>>> 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 protected]) >>>> Help/Unsubscribe/Update your Subscription: >>>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com >>>> >>>> This email sent to [email protected] >>>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be >> ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com >>> >>> This email sent to [email protected] >> >> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
