We have a job detail page built which has a table listing the users associated with the job thru a junction object job_users. In the list of users we want to add a row action which will clock the user in and one for out. To “clock in” the row action sequence need to add a new log entry to the log entry with the following fields:
type = time
created by = logged in user (log entry object)
user = the user listed in the row (log entry object)
time in = current date/time (log entry object)
job = the job you are on the detail page of (log entry object)
user status = true (for clock in) (user object)
save and update the row
for clock out
find the last log entry for the current job that had a clock in time and a blank clock out time for that user and job
update that log entry setting the time out field to the current time.
set user status to false
save and update the row.
Can you help me thru this? How do I get the data from the current row and job to feed these fields?
Question
Row actions to create logbook entries (clock in and clock out)
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
