CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Editable Grid with validation

Print topic Send  topic

Author Message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.