Next version will make the formatter function assignment better.

 

I don’t know off-hand of a way to prevent the selection to null, I assume you could do it by subclassing the DateField and overwriting the selectedDate setter, but I haven’t tried it.

 

Matt

 


From: r0main [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 11:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateField: DateFormatter & noCancel ?

 


Hi folks,
is there a DIRECT way to use a given mx:dateFormatter into a DateField ?
(I know I can do a function that calls the formatter and pass that
function, but a direct link between both controls would be nice isn't
it ?)
For future version: will be nice if we can use it like :
<mx:DateFormatter id="versionFormatter" formatString="YYYY-MM-DD" />
<mx:DateField id="asOfDate" dateFormatter="versionFormatter" />

Also a simple question: Is there a way to avoid allowing the user to
set the date to null by re-selecting the date selected ?
(In some apps, some dates can never be null)

Thanks, r0main





Reply via email to