NetTalk Central

Author Topic: Set field when download done  (Read 3680 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Set field when download done
« 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.
Brian

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Set field when download done
« Reply #1 on: September 05, 2014, 01:57:02 PM »
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.
Brian

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Set field when download done
« Reply #2 on: September 06, 2014, 02:44:07 AM »
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]

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Re: Set field when download done
« Reply #3 on: September 08, 2014, 09:24:42 AM »
Thank you very much for replying - I love your handle name, my brain often feels like that.
Will try as you suggested.

Brian.
Brian