CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Editable Grid Issue

Print topic Send  topic

Author Message
VN
Posted: 04/07/2005, 3:55 AM

Hello

I have two pages with an editable grid on each. One the first page, the grid works just fine. I can add and/or edit and/or delete any of the records and it works as intended. (all the fields in the database used for this grid are defined as not null).

One the second page, I can add records but when I try to modify existing records in the grid, it seems to always want to add a new record and brings up a message saying that are required (presumable because they are defined as not null in the database) and the update fails.

The only difference is that the second table has an auto-increment primary key (it's a mysql database).

Are there any special requirements for making an editable grid work properly with auto-increment PKs?

Voya
Nicole

Posts: 586
Posted: 04/07/2005, 6:12 AM

Voya,
Most probably you assigned default value to on of editable controls on editable grid form. You’d rather use Before Build Insert and Before Build Update events to assign default value to input type controls (Hidden, TextBoxes, ListBoxes, etc.). In this case the field that is submitted to the table get the value but if no record should be inserted the input controls located in the blank grid record’s will be blank and thus no additional records are inserted.
This is feature of Editable Grid

_________________
Regards,
Nicole
View profile  Send private message
E43509

Posts: 283
Posted: 04/07/2005, 6:17 AM

Or you may have a checkbox. That will make CCS believe that something is in that row. Change any checkbox to list boxes
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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