This topic is locked
[SOLVED]

 Display Last Date Saved On List Page

2/14/2013 9:24:23 AM
PHPRunner General questions
H
herb200mph author

We have an event that shows the Last Date Saved on the LIST page after a document is EDITED.
However, when a record is ADDED via the ADD page and saved, the date does not display.
The date does display if that same record is EDITED and saved.
The LIST page will henceforth display the date.
The problem is = the LIST page does not display the Last Date Saved information when first created.
Anyone have any idea or event code that will resolved this problem?
Thanks in advance for the help.

Sergey Kornilov admin 2/14/2013

How do you populate 'Last Date Saved' field on the Edit page?

My guess is that you need to do the same thing with the Add page.

H
herb200mph author 2/14/2013

We have this code in the _edit.php page:
// processing DateLastSaved - end

$evalues["DateLastSaved"] = "".now()."";

//$evalues["DateLastSaved"] = date("Y-m-d h:i:s");

foreach($efilename_values as $ekey=>$value)

$evalues[$ekey] = $value;
We are unsure as to where similar code would go in the _add.php page.
Also, do not know what code string to add nor where.

Sergey Kornilov admin 2/14/2013

Do you use events or do modify ..._edit.php file directly?
If you use events (you should) simply add the same code to similar Add page event.