Set selectedDate, not text?

On 6/2/10 1:08 PM, "Goutham" <goldensu...@yahoo.co.in> wrote:






Hi

I have a date stored in the database along with other details.
have a datagrid that shows all the details, clicking on a row pops up a 
titlewindow showing all the details of that row which can be editable as in a 
form.

the problem is, I am not able to fill the datefield from the value in the 
dataobject

<mx:DateField id="date" selectedDate="{new Date()}" formatString="MM-DD-YYYY" />

as code:

tried
date.text = selectedRow.Date (date value from the database)

doesn't give any errors, but the datefield is not filled with the date






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to