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

 Intercept rows before insert and change their values

Print topic Send  topic

Author Message
cabrera

Posts: 10
Posted: 04/17/2009, 9:48 AM

I have an editable grid where I need to change the value of one of the input fields in each row before it gets inserted in the database.

I can do this easily for records, but not for editable grids. For regular forms I am using the following code successfully in the Before Build Insert event:

$my_form_name_here->Last_Update_Time->SetValue($current_timestamp);

I tried the same for editable grids, and it obviously didn't work, I guess I need to address each row for that case, but I don't know how. (each row contains Last_Update_Time field too).

Does anybody know how to change the value of the user's input for each row before it gets inserted?
View profile  Send private message
smokingguns


Posts: 51
Posted: 04/17/2009, 12:19 PM

Try this in the before build insert event:

$my_form_name_here->ds->Last_Update_Time->SetValue($current_timestamp);
View profile  Send private message
datadoit
Posted: 04/17/2009, 1:34 PM

http://forums.codecharge.com/posts.php?post_id=60507

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.