Re: D2W and date/time picker
Re: D2W and date/time picker
- Subject: Re: D2W and date/time picker
- From: Theodore Petrosky <email@hidden>
- Date: Sun, 13 Jan 2013 05:51:38 -0800 (PST)
That would be the easiest solution. force them to type in the whole thing.
But, I want to learn more D2W at the same time so, I created my own component by copying ERMDDatePicker and added a popup wrapped in an AJAX observe field.
My idea is that if you click on the textfield for the date part, the user gets the normal date picker. Then they choose the time from the popup. As these are normal business hour meetings, I can limit the list to half hours from 9 am to 6 pm.
I am stuck. At what point does the component know about the bound attribute? Not in the constructor :( What I thought I would do is update the time portion of the dateTime when the action if fired in the ObserverField.
If this works, this component would only be usable in this project as it would refer to entities and attributes that only live here.
So knowing that there is a two part goal:
1. create the interface that limits the user's ability to put in bad data and
2. Learn more about D2W.
will this work? where in the life of the component can I get a handle on the 'object' that is being displayed (objectPropertyValue) so I can munge together my date and time?
Ted
--- On Sun, 1/13/13, Paul Hoadley <email@hidden> wrote:
> From: Paul Hoadley <email@hidden>
> Subject: Re: D2W and date/time picker
> To: "Theodore Petrosky" <email@hidden>
> Cc: "WebObjects Development" <email@hidden>
> Date: Sunday, January 13, 2013, 3:36 AM
> On
> 12/01/2013, at 2:25 AM, Theodore Petrosky <email@hidden>
> wrote:
> How are youse guys creating a date picker that
> allows the user to then type in the time? I was thinking of
> two textfields. one for the date picker and a second where
> the user types in the time.
>
> If I put two copies of the date time attribute with
> displayPropertyKeys, how do I target them so the first is
> for the date and the second is for the time. Or do I need to
> create a new component? Does one exist?
>
> I've never found a satisfactory solution to
> this. I tend to just use a text field and require the
> whole timestamp to be typed out in full: '2013-01-13
> 19:05'.
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
>
>
>
>
>
>
_______________________________________________
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