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 -> General/Other

 Update with hidden item for actual date

Print topic Send  topic

Author Message
adorni

Posts: 120
Posted: 05/15/2010, 8:54 AM

I have an update box with two labels. The first, singular text label. The another is a "HIDDEN" for update the dato to actual date (is a date field). I put the "CurrentDate" on "Default Value" but not works (works fine in another record for new items but not for update panels.

How i can do it?

Thanks
View profile  Send private message
ckroon

Posts: 869
Posted: 05/15/2010, 11:31 AM

The default value only works on Inserts. Since the record is already there.. the default value doesn't fire.

So...
You have to put some code on the Before Show Event of the Hidden Field.

$Component->Hidden1->SetValue(strtotime(date("Y/m/d H:i:s")));

That should work for you.

_________________
Walter Kempees...you are dearly missed.
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.

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.