Re: help with D2W target
Re: help with D2W target
- Subject: Re: help with D2W target
- From: Jesse Tayler <email@hidden>
- Date: Fri, 18 Jan 2013 11:39:59 -0500
think of it this way --
a rule fires only when it is compared with any rules that have the same specificity and if there are multiple matches, it sorts by priority -- (if priorities match too, you can get unreliable results!)
so, likely in some framework somewhere, there is a model being loaded with a more specific rule, perhaps based on the relationship or something else.
of course be certain your component actually listens to the property key at all, but formatter should be there for date displays so I'd try to make a new rule or more specific rule until you get results.
it's sort of blind and frustrating, but it's as simple as continuing to make more and more specific rules.
get the idea there?
hope that helps you hack at it --
On Jan 18, 2013, at 11:15 AM, Theodore Petrosky <email@hidden> wrote:
> I made the rule 155 and 160 priority and no change.
>
> when there is a to-many, is there a key to target the to-many List? maybe there is something there?
>
> --- On Fri, 1/18/13, Theodore Petrosky <email@hidden> wrote:
>
>> From: Theodore Petrosky <email@hidden>
>> Subject: Re: help with D2W target
>> To: "Jesse Tayler" <email@hidden>
>> Cc: "WebObjects Development" <email@hidden>
>> Date: Friday, January 18, 2013, 10:51 AM
>
>
>> 2013-01-30 00:00:00 Etc/GMT
>>
>> that's what I get on the page. No formatting at all.
>>
>> this rule has a priority of 150
>>
>> I will push it up some more and see.
>>
>> Ted
>>
>>
>> --- On Fri, 1/18/13, Jesse Tayler <email@hidden>
>> wrote:
>>
>>> From: Jesse Tayler <email@hidden>
>>> Subject: Re: help with D2W target
>>> To: "Theodore Petrosky" <email@hidden>
>>> Cc: "WebObjects Development" <email@hidden>
>>> Date: Friday, January 18, 2013, 10:43 AM
>>>
>>> that rule sure looks like anytime you have a timestamp
>> with
>>> a name including the word "Date" in there, you should
>> get
>>> that format.
>>>
>>> did you take note of the format you DID get?
>>>
>>> did you try to raise the priority of this rule?
>>>
>>> there could easily be a rule down under that is more
>>> specific or perhaps higher priority.
>>>
>>> so, if this works in one place but doesn't in another,
>> try
>>> adding to the rule some elements that would make your
>> rule
>>> more specific.
>>>
>>>
>>>
>>>
>>> On Jan 18, 2013, at 10:31 AM, Theodore Petrosky <email@hidden>
>>> wrote:
>>>
>>>>
>>>>
>>>> I have a ProjectWorkOrder to-many pwoMileStones
>>>>
>>>> I have an edit page:
>>>>
>>>> EditProjectWorkOrder
>>>>
>>>> and a rule
>>>>
>>>> 150 : (smartAttribute.className =
>>> 'com.webobjects.foundation.NSTimestamp' and propertyKey
>> like
>>> '*Date*') => formatter = "%m/%d/%Y"
>>> [com.webobjects.directtoweb.Assignment]
>>>>
>>>> this rule is working fine to format the dates on
>>> EditProjectWorkOrder
>>>>
>>>> but I can not seem to target the list of
>> pwoMileStones
>>> on its parent.
>>>>
>>>> Also, on EditEmbeddedPWOMileStone the date formats
>> as I
>>> want.
>>>>
>>>> does this make sense to you?
>>>>
>>>> How do I target the list of pwoMileStones on
>> the
>>> EditProjectWorkOrder so the date will format as I
>> want?
>>>>
>>>> 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