jccondor2
|
| Posted: 01/26/2005, 1:02 PM |
|
I have a grid that is being used to place orders into the system.
The grid has to tables.
product_master -< order
once you add aproduct to the order, the grid is updated and has
productname, productinventory as lables
and a textbox for orderquantity.
how can I validate that orderquantity is > 0 and < inventory.
I'm usign a custom code in onValidate.. I have it running but don't know how to pickup the invetory value... which I guess should be easy. (did't want to add a hidden field) but will while I get an answer.
|
|
|
 |
Damian Hupfeld
|
| Posted: 01/29/2005, 4:40 AM |
|
in your grid properties you will need to ensure that the inventory_number is
selected (in Data Source) and then you can query it.
regards
Damian Hupfeld http://www.nexthost.com.au/services.php
"jccondor2" <jccondor2@forum.codecharge> wrote in message
news:541f8054f27a4c@news.codecharge.com...
>I have a grid that is being used to place orders into the system.
> The grid has to tables.
>
> product_master -< order
>
> once you add aproduct to the order, the grid is updated and has
> productname, productinventory as lables
> and a textbox for orderquantity.
>
> how can I validate that orderquantity is > 0 and < inventory.
>
> I'm usign a custom code in onValidate.. I have it running but don't know
> how to
> pickup the invetory value... which I guess should be easy. (did't want to
> add a
> hidden field) but will while I get an answer.
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|