CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Editable Grid - Only Update Rows With Specific Value

Print topic Send  topic

Author Message
subgang

Posts: 9
Posted: 02/11/2008, 8:21 AM

I've read a lot of suggestions on the common issue of Codecharge updating all rows in an editable grid. I wonder if:

a) Does the newest version of Codecharge offer a simpler way to do this

or

b) How would I go about this if I use a checkbox on each row, and only want to update rows with that checkbox selected? There must be a way to do this that is in line with the Codecharge architecture, since delete statements are executed conditionally for rows with the delete checkbox selected...

View profile  Send private message
subgang

Posts: 9
Posted: 02/11/2008, 12:27 PM

I might be getting close -- I've added a column to the db table called editFlag and set default value for all rows to 0. Then I added a checkbox to the editable grid, unchecked value is 0 and checked value is 1.

Then I set the Custom Update type to table, and added a "where" parameter of:

editFlag <> editFlag (type: control)

But unfortunately if I set the type to anything other than 'database column', then I get the error that parameters are missing for the update to work.

Any help or suggestions would be greatly appreciated!
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.

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.