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: Nat Fast <email@hidden>
- Date: Tue, 17 Jun 2003 16:35:24 -0700
On Tuesday, June 17, 2003, at 04:18 PM, Alan Ward wrote:
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).
So given that the to-many relationship is returning my single text
field as an array, I am populating a WORepetition and there is some EO
magic that is actually traversing the relationships; then what is the
best way to format the field and do you know where can I find an
example?
Thanks,
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.