Re: Using a text formatter on a WOBuilder WOString object
Re: Using a text formatter on a WOBuilder WOString object
- Subject: Re: Using a text formatter on a WOBuilder WOString object
- From: Alan Ward <email@hidden>
- Date: Tue, 17 Jun 2003 16:18:16 -0700
On Tuesday, June 17, 2003, at 04:06 PM, Nat Fast wrote:
One of the actual bound values is:
calllocation.arrivaltransit.fromberth.berth.outerharbor.othrcode
(rootRec.toOne.toMany.toOne.toOne.fieldValue)
So what am I missing that would allow me to format it?
Something's wrong with this implementation then. Because a to-many
relationship is involved, multiple values can be returned yet you've
bound the returned array to a WOString. If the returned value is an
array, a WOBrowser, WOPopupButton, or a WORepetition of WOStrings
would be examples of ways to display the values with no need for
formatting.
The return fieldValue is a string that I guess is being translated
into an array because of the toMany relationship in the center,
correct?
no, the return value is an array (due to the to-many) but it can be
coerced into a string (which is
why you see the output that you do).
I am attempting to format for printing, so an alternate component is a
poor choice if it has visible display elements. Would constructing my
own component to parse the text be easier than using the formatter
binding on the WOString component?
Thanks again,
Nat
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.