NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on September 04, 2014, 02:12:32 PM
-
Hi,
Browse with download on one of the fields (Calling ServeDocument)
What embed can I use to update the record with a date and time stamp for the download?
Brian.
-
Anyone any ideas on this one please?
The customer wants to know who downloaded the file the first time, so I put three fields in the record
Loggedinusername
DownloadDate
DownloadTime
Want to update these fields in the record when the customer clicks on the filename to download it.
Thanks.
-
Hi Brian, this is something I had to do next week, but your post enthused me to do it now
Please find attached an app (Web30) modified to log the downloads, I have made an ini that serves as a log file, and commented out using a tps file if that will help you
Attached is an APP that sets the logged in person as 'Daisy the moo cow'
When you browse the customers, the last field (see attached) is for the pdf, you click on that - it hits ServeDocument, which sends the requested file and logs its dispatch
Unfortunately I am new top this site, and it will not allow me to upload the APP, so I have renamed it as a text file, so save it and change the .txt to .app
Hope this helps
K
This is the log file, holds the Qty of requests, the ip address and logged in person
[doc1.pdf]
QTY=4
1= 6/09/14 20:21:24 On=127.0.0.1 By=Daisy the cow
2= 6/09/14 20:21:26 On=127.0.0.1 By=Daisy the cow
3= 6/09/14 20:21:30 On=127.0.0.1 By=Daisy the cow
4= 6/09/14 20:22:46 On=127.0.0.1 By=Daisy the cow
[attachment deleted by admin]
-
Thank you very much for replying - I love your handle name, my brain often feels like that.
Will try as you suggested.
Brian.