What did the trace show?

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Mic
Sent: Friday, April 24, 2009 2:41 AM
To: [email protected]
Subject: [flexcoders] Re: Setting dateField.SelectedDate when component is
disabled?

 






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 flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"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: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
On
> Behalf Of Mic
> Sent: Thursday, April 23, 2009 10:47 PM
> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> 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.
>



Reply via email to