What about when the data has been changed by the user?  The 
TextInput.text is now the formatted data.  How do I access the raw 
data and keep my model up to date with the raw data? 

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The formatter should just format the display, using a renderer or a
> labelfunction.  The underlying data in the dataProvider will still 
be a
> plain number.
> 
> Tracy
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of darylgmyers
> Sent: Monday, March 19, 2007 11:45 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Date format - internal and external
> 
>  
> 
> Still need help:
> 
> I have to assume that this functionality is needed all the time 
when 
> using Flex with a database application. I must be overlooking the 
> solution.
> 
> I have a currency field which is retrived via a remoting service 
and 
> the data is 123.45. When I display it in a form I need to format it 
as 
> $123.45. I have done that with the currencyformatter. But now when 
I 
> need to return the data to the server I want the raw data 
(unformatted) 
> as 123.45. 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "darylgmyers" <darylgmyers@> 
> wrote:
> >
> > I have a VO which contains a date field formatted as 2007-01-01. 
> This 
> > is how the HTTP service retrieves the data. I want to format the 
> date 
> > as 01/01/2007 in the display but keep the internal date 2007-01-
01 so 
> > that I can send the VO back for update. What is the best way to 
keep 
> > the internal date formatted one way and the external date 
formatted 
> > another.
> > 
> > This same issue will come into play with currency fields, etc.
> >
>


Reply via email to