CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Accessing control value of editable grid checkbox

Print topic Send  topic

Author Message

Posts: 39
Posted: 08/02/2010, 2:35 PM

I'm trying to do something very similar to a previous poster - post was here:

I am using an editable grid to update a table, and only want to update the rows where a checkbox (regstatus) changes value. I seem to be having trouble accessing the value of this checkbox.
Here is my code that I have put into the BeforeExecuteUpdate area of the editable grid:

if registrations_Students.regstatus.value = ccdlookup(regstatus, registrations, RegID=registrations_Students.Hidden1.value) then   
registrations_Students.DataSource.CmdExecution = false   
end if

I get an error that variable regstatus is undefined, so it seems I'm not getting that value. I've tried going through the various suggestions from this page: but couldn't seem to get the value.
View profile  Send private message

Posts: 53
Posted: 08/03/2010, 8:15 PM

Shoud the regstatus value in the ccdlookup command be: registrations_students.regstatus.value rather than just regstatus?
View profile  Send private message

Posts: 948
Posted: 08/06/2010, 1:30 AM

I do this by using a hidden holder. Populate it with the original value when page loads.
Compare it with the field that populated it in the before update event. Then proceed as required. ;-)
View profile  Send private message

Posts: 39
Posted: 08/06/2010, 6:06 AM

Thanks - the hidden holder idea seems like it will work. Will give it a try.
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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login

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