Hi all,
I have a CreateDate field in a table. I have set it to be ew_CurrentDate() for "Add Page". But when I hit "Copy" button, it shows the saved date of the record that is being copied. How to set it to be the current date when copying?
Hi all,
I have a CreateDate field in a table. I have set it to be ew_CurrentDate() for "Add Page". But when I hit "Copy" button, it shows the saved date of the record that is being copied. How to set it to be the current date when copying?
Simply insert the following code into your "Row_Rendered" server event:
if (CurrentPageID() == "add") {
$this->CreateDate->EditValue = ew_CurrentDate(); // change to the current date
}
Similar to this topic/post: http://www.hkvforums.com/viewtopic.php? ... 693#p93693