Re: ERD2WQueryDateRange ignores formatter??
Re: ERD2WQueryDateRange ignores formatter??
- Subject: Re: ERD2WQueryDateRange ignores formatter??
- From: Ramsey Gurley <email@hidden>
- Date: Wed, 04 Feb 2015 09:28:34 -0700
ERD2WQueryDateRange doesn’t use an ajax date picker. ERMD2WQueryDateRange does, but the default on that one is "%m/%d/%Y”
Do you have click-to-open enabled? What does that say the component is? Or maybe do some debug logging on the componentName key to see what component is being used there. It is not ERD2WQueryDateRange if it is using ajax.
My guess is you’re using ERMD2WQueryDateRange if you are using Modern. (By the looks of your screenshot, you are) If it is that component, putting a breakpoint in the formatter() method might be enlightening.
On Feb 4, 2015, at 6:56 AM, Markus Ruggiero <email@hidden> wrote:
> Hi,
>
> I have a problem getting ERD2WQueryDateRange to display the date in proper format.
>
> The following rule
> 120 : propertyKey = requestDate => formatter = "%d-%m-%Y" [com.webobjects.directtoweb.Assignment]
>
> is accepted and when checking with the D2W "debugger" I see the proper formatter:
>
> <PastedGraphic-1.png>
>
> but when accepting the ajax date picker the date is shown in the order Year-Month-Day (eg. 2014-12-23).
>
> Customer is complaining because this is the only place in the whole app where the date format is wrong. All other
> places are ok.
>
> When looking at the bindings of ERD2WQueryDateRange everything looks ok, formatter is properly referenced and bound
> to WOTextField dateformat.
>
> I must be missing something obvious - but WHAT???
>
> Thanks for any help
> ---markus---
>
> CU @ WOWODC15
> _______________________________________________
> 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