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: Chuck Hill <email@hidden>
- Date: Tue, 17 Jun 2003 16:48:42 -0700
>One of the actual bound values is:
>calllocation.arrivaltransit.fromberth.berth.outerharbor.othrcode
>(rootRec.toOne.toMany.toOne.toOne.fieldValue)
>
rootRec.toOne - returns Objects
rootRec.toOne.toMany - returns NSArray
rootRec.toOne.toMany.toOne - returns NSArray
rootRec.toOne.toMany.toOne.toOne - returns NSArray
rootRec.toOne.toMany.toOne.toOne.fieldValue - returns NSArray
If you know that there is only one element in the array you could try this
binding:
rootRec.toOne.toMany.toOne.toOne.fieldValue.lastElement
Otherwise you are going to have to plan for and deal with (e.g. take into
account in your design) the fact that rootRec.toOne.toMany is going to
return multiple values.
Chuck
At 03:26 PM 17/06/2003 -0700, Nat Fast wrote:
>Thanks for the help by the way, but the situation is a bit more complex
>than I elaborated on at first:
>
>On Tuesday, June 17, 2003, at 02:29 PM, Art Isbell wrote:
>
>> On Tuesday, June 17, 2003, at 10:38 AM, Nat Fast wrote:
>>
>>> I have a string that is being returned as
>>> ("text here")
>>> and I want it formatted to
>>> text here
>>
>> The string returned looks suspiciously like the property list
>> representation of a one-element array. If the key bound to the
>> WOString's "value" key is an NSArray, you can probably deal with the
>> formatting without using a custom formatter.
>>
>>
>Actually the value is from a field value gleaned from a deep
>relationship chain, where there is a toMany relationship in the middle
>of the chain. I am populating a table in a WORepetition. I have not
>been able to figure out how to access the value outside of the
>WOBuilder magic of property gathering.
>
>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?
>
>Slightly Bewildered,
>
>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.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.