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

 Accessing control value of editable grid checkbox

Print topic Send  topic

Author Message
netsys

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

I'm trying to do something very similar to a previous poster - post was here: http://forums.yessoftware.com/posts.php?post_id=98821&s_keyword=update+row

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: http://forums.codecharge.com/posts.php?post_id=60507 but couldn't seem to get the value.
View profile  Send private message
lboeldt

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
Waspman

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. ;-)
_________________
http://www.waspmedia.co.uk
View profile  Send private message
netsys

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