If I leave the dateField objects enabled: <mx:DateField id="dtCmplxStartDate" enabled="true" />
then from the function: dtCmplxStartDate.selectedDate = tempStrtDt; the gui shows the date in the textInput part of the dateField component. All I have to change is <mx:DateField id="dtCmplxStartDate" enabled="false"/> and dtCmplxStartDate.selectedDate = tempStrtDt; does not show date in gui. Mic. --- In [email protected], "Tracy Spratt" <tr...@...> wrote: > > What happens? How are you sure the dates are not being set? What happens > if you do this after setting a date: > > Trace(dtCmplxStartDate.toDateString(0); > > > > Tracy Spratt, > > Lariat Services, development services available > > _____ > > From: [email protected] [mailto:[email protected]] On > Behalf Of Mic > Sent: Thursday, April 23, 2009 10:47 PM > To: [email protected] > Subject: [flexcoders] Setting dateField.SelectedDate when component is > disabled? > > > > > > > > > In a modal View state the dateFields are disabled but I need to populate > them for the current record. I can stick my proc values in when they are > enabled, but not when disabled. I tried > > dtCmplxStartDate.enabled = true; > dtCmplxStartDate.selectedDate = tempStrtDt; > dtCmplxStartDate.enabled = false; > dtCmplxEndDate.enabled = true; > dtCmplxEndDate.selectedDate = tempEndDt; > dtCmplxEndDate.enabled = false; > > but no go. TIA, > > Mic. >

