Re: ERXFixedLengthString ?
Re: ERXFixedLengthString ?
- Subject: Re: ERXFixedLengthString ?
- From: Fabian Peters <email@hidden>
- Date: Sun, 23 Sep 2012 17:19:05 +0200
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