I used the auto-code generator to generate a grid. I copied some of the code from the ticket manager example to double click on the grid to bring up a form to edit the details. I noticed the form kept causing a MSGW when we specified a numeric value greater than what the database field can hold (makes sense). I searched through the ExtJS documentation and found a maxvalue method. My code looks like this:
I also tried it this way:
I was under the impression that this configuration would perform some sort of UI validation so that the ajax call would not fire when the user presses the save button. However, I can repeatedly save (without error) when I enter 9999999, which will trigger a chain of MSGW's in the VALENCE30 QHTTPSVR jobs.
How should "front end" validation be performed in this scenario?
Code:
{ xtype:'numberfield', id:'add_LPIPRICE1', autoCreate:{ tag:'input', maxlength:'9', maxvalue:'999999.99' }, fieldLabel:'LEVEL 1 PRICE' },
Code:
{ xtype:'numberfield', id:'add_LPIPRICE1', autoCreate:{ tag:'input', maxlength:'9' }, maxvalue:'999999.99', fieldLabel:'LEVEL 1 PRICE' },
How should "front end" validation be performed in this scenario?
Comment