@MVC [message #1005029] |
Thu, 24 January 2013 05:51 |
Eclipse User |
|
|
|
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 
Rgds Trond
|
|
|
Powered by
FUDForum. Page generated in 0.03458 seconds