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

 Editable Grid update problem

Print topic Send  topic

Author Message
Waspman

Posts: 948
Posted: 02/28/2006, 5:27 AM

I'm having problems trying to update a date field when an editable grid is updated.

Using the "Before Build Update" I'm assigning the current date to the field i.e.

Users.LastUpdate.Value = Date()


Simple stuff, but it doesn't work.

Any ideas anyone?


Many thank...Tony
_________________
http://www.waspmedia.co.uk
View profile  Send private message
kevind

Posts: 251
Posted: 03/03/2006, 8:55 AM

I'd have to double check - but I think you can use the 'custom insert' feature with Type=Table for the grid and put Date() as an expression for the grid control LastUpdate. The rest of the fields get their values from their controls - try it out and let me know.

Assuming 'Users' is the editable grid you created.

kd
_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message
Vasiliy

Posts: 378
Posted: 03/04/2006, 8:33 AM

Had similar problem with editable grid, but for control with .Visible = False (ASP VB).
Can not init row fields on "Row Validate" or in "Before Build Update" if .Visible = False.

IMO, even if control is not visible in editable grid, fields init in "Row Validate" or in "Before Build Update" should work same as in CCS update form ... at least for consistency. :-)
_________________
Vasiliy
View profile  Send private message
Waspman

Posts: 948
Posted: 03/06/2006, 1:33 AM

The only way I can get it work is to run an update script in the AfterUpdateExecute function.


Works fine just a bit slow:-)
_________________
http://www.waspmedia.co.uk
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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