Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » @MVC(Promblems with decimal with more than 9 digits)
@MVC [message #1005029] Thu, 24 January 2013 10:51
Trond Einar Nilsen is currently offline Trond Einar NilsenFriend
Messages: 36
Registered: December 2011
Member
Hi,
I have not used the MVC framework before now as I needed to control that input is numeric. I did like this:

InvoiceNumberE dojoTextField{ layoutData = new GridLayoutData{ row = 1, column = 2
    	 }};
decimalvar decimal(10);
mySeolrel71_olarnb_controller Controller { @MVC {model = decimalvar, view = InvoiceNumberE}, publishMessageHelper = null};
mySeolrel71_olarnb_errorLabel TextLabel { layoutData = new GridLayoutData { row = 1, column = 3} };

Problem is that "InvoiceNumberE = 1234567891;" (10 digits) produces error, but 0123456789 does not and neither does 123456789. It does not help to change to decimal(11) or (12) or anything bigger.
Changing to "decimalvar decimal(5);" for example, works correct.

If someone has a suggestion for how to check that content of a (dojo)textfield is nummeric with lenght control and maybe even how to do left zero padding, I would be very happy Smile
Rgds Trond
Previous Topic:Connection profile issue in 0.8.2
Next Topic:PhoneGap and Dojo Mobile
Goto Forum:
  


Current Time: Wed Dec 11 10:00:16 GMT 2024

Powered by FUDForum. Page generated in 0.04468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top