DB Version V.4.5-2021.06.12.00, Files Version V.4.5-2021.06.14.00
I'm looking to add to new records fields to record who created them
Code: Select all
sri_creator
Code: Select all
sri_created
Code: Select all
sri_updater
Code: Select all
sri_updated
I can create the when by modifying the SQL record for Created On to be a timestamp on creation. Not sure how too add the user name for who created the record? I guess it will be something to do with hash cookies but not sure how to achieve it.
I've been trying to impliment Janusz's fantastic solution on record simulataneous record blocking to add that feature for who and when a record was updated but each time I try to add the code the Save button no longer works.
I've tried adding the code (adjusting field names as required) as in the video (CheckEditStatus procedure, JS in form, and php in BS section) but to no avail.
I tried recreating the spices demo from the code on demo.nubuilder.cloud but no luck.
I downloaded the nutestCloud_timerecording.ver.2.2.sql file but it doesn't seem to have the CheckEditStatus procedure and nothing in the BS section? But this demo still manages to capture who created/edited the record and when.
I've also tried exporting the working spices table and forms from nutestCloud_timerecording.ver.2.2.sql into my own db, it no longer works
So a bit confused as to where to start. Have tried a good few things and a bit stuck, and suggestions would be most welcome.
Thanks,
Paul