@Dan: Nice idea, although I am a little late in the day on this
project to implement it this time. I don't have control over the db
and I have just noticed that the columns are straight integers and
ignore any decimals anyway!!
@Brian: I though NumberFormat() would do the job but it throws an
error if i pass a number like this: 380,508.53 saying that it couldn't
convert to number - very odd.
@Tom: I already have a thin service layer in place so this is probably
what I will try and do.
I thought there might be a nice function out there that I had missed
which sort of reversed the formatting done by DecimalFormat so
380,508.53 would get converted to 380508.53 - I guess Replace() is the
way to go!!
Cheers,
Dave
On 8 Jul 2008, at 16:39, Tom Chiverton wrote:
On Tuesday 08 Jul 2008, David Phipps wrote:
the form value to display the correct format however when I submit
this to reactor to setCost() it doesn't like it because of the comma.
Your service layer (the interface between the world and Reactor)
should take
care of changing whatever formats come into it into what Reactor
expects.
In your case a very thin service tier would do - no need for
anything scary
like AOP.
--
Tom Chiverton
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square,
Spinningfields, Manchester, M3 3EB. A list of members is available
for inspection at the registered office. Any reference to a partner
in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by The Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit www.halliwells.com.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- --
_______________________________________________________________________
David Phipps
Director, Chapel Studios
T +44 (0)20 7100 6980 F +44 (0)20 7100 6981 M +44 (0)7765 240899
New Broad Street House, 35 New Broad Street, London, EC2M 1NH, UK
http://www.chapel-studios.co.uk
_______________________________________________________________________
The Chapel Studios group of companies are registered in England.
'Chapel Studios' and the Chapel Studios logo are registered trademarks
of Chapel Studios. The information in this email is confidential,
intended solely for the addressee, and may be legally privileged. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based
upon this message or any information herein. If you have received
this message in error, please advise the sender immediately by reply e-
mail.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --