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 -> ASP

 identify changed rows in editable grid

Print topic Send  topic

Author Message
fmbma

Posts: 58
Posted: 09/10/2007, 11:16 AM

Is there a way to identify which rows have changed? I want to stamp the row with the login ID. I'm using a custom update, but it updates all the rows in the grid, not just those that change.
View profile  Send private message
rho


Posts: 85
Posted: 09/10/2007, 12:34 PM

Simple way: add a hidden field to your row, f.e. OldValue and in the BeforeShowRow event set it to the initial/current value of the value that will be (or will be not) updated, f.e. OldValue = CurrentValue. Then change your SQL so that only those fields will be updated where CurrentValue<>OldValue
View profile  Send private message
fmbma

Posts: 58
Posted: 09/10/2007, 12:41 PM

But with this method, if there are a dozen fields in the row, i would have to create hidden fields for each of them, right?
View profile  Send private message
Benjamin Krajmalnik
Posted: 09/10/2007, 2:06 PM

Add one hidden field containgn am MD% hash of all of the fields concatenated
together.
Before saving, recalc the hash and compare it to the old one.

"fmbma" <fmbma@forum.codecharge> wrote in message
news:646e59dcdc5c11@news.codecharge.com...
> But with this method, if there are a dozen fields in the row, i would have
> to
> create hidden fields for each of them, right?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.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.

MS Access to Web

Convert MS Access to Web.
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.