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?
|
 |
 |
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);
|
 |
 |
datadoit
|
| Posted: 04/17/2009, 1:34 PM |
|
http://forums.codecharge.com/posts.php?post_id=60507
|
|
|
 |
|