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