tengo un problema en mi aplicacion Punto de venta (POS)
les comento, los articulos se cargan mediante un textbox que toma lo ingresado con el lector de barra estos se cargan en un grid.
el ejemplo reproduce el posible error que les comento para que puedan reproducirlo.
el array aItems carga el producto con un nombre y una cantidad (en este caso una unidad) que despues se puede modificar con un spinner , si modifico esta cantidad superior a 1 este muestra la nueva cantidad y es validado con COLUMNVALID
Code: Select all
COLUMNVALID { Nil , {|| if ( This.CellValue > 1 , msgbox( This.CellValue ) , nil ) } }

en que fallo ?

Hello everyone :
I have a problem in my Point of Sale (POS) application
I comment, the articles are loaded through a textbox that takes what was entered with the bar reader, these are loaded into a grid.
The example reproduces the possible error that I am telling you so that you can reproduce it.
the array aItems [/ b] loads the product with a name and a quantity ( in this case a unit [/ b]) that can later be modified with a spinner [/ b], if I modify this quantity higher than 1 this shows the new quantity and is validated with COLUMNVALID [/ b]
Code: Select all
COLUMNVALID { Nil , {|| if ( This.CellValue > 1 , msgbox( This.CellValue ) , nil ) } }
in what fault?
