Would this possibly be easier to do through a lookup field with conditional formatting? I have tried playing around with that but I seem unable to get it to select only the “most recent” entry
Would this possibly be easier to do through a lookup field with conditional formatting? I have tried playing around with that but I seem unable to get it to select only the “most recent” entry
I’m assuming you have a field for {Check Out Date}
and a field for {Check In Date}
(or a some other means of noting when someone checked the device back in). If that’s the case you can do a Lookup field displaying the {Owner}
field in the eLog]
table with the condition that only records which have {Check In Date}
empty.
I’m assuming you have a field for {Check Out Date}
and a field for {Check In Date}
(or a some other means of noting when someone checked the device back in). If that’s the case you can do a Lookup field displaying the {Owner}
field in the oLog]
table with the condition that only records which have {Check In Date}
empty.
Hmm, I do have a check in date, but it is currently not part of the same record as we use a form to allow checking devices back in too. Is there any way to have a form search for and append a record?
Okay, so you have one form submission to check out, and one form submission to check in?
In that case, you should be able to use a Count field to get the total number of logged form submissions, and a Formula field to analyze if that number is even or odd: if the count is odd, the item has not been checked in. `IF(AND({Count} > 0, MOD({Count}, 2)), “Out”, “In”)}
In your Log table add a Lookup field called “Status” that brings in the formula field described above.
In your Devices table add a Lookup field displaying the {Owner}
field in the nLog]
table with the condition that only records which have the {Status}
field = “Out”
Okay, so you have one form submission to check out, and one form submission to check in?
In that case, you should be able to use a Count field to get the total number of logged form submissions, and a Formula field to analyze if that number is even or odd: if the count is odd, the item has not been checked in. `IF(AND({Count} > 0, MOD({Count}, 2)), “Out”, “In”)}
In your Log table add a Lookup field called “Status” that brings in the formula field described above.
In your Devices table add a Lookup field displaying the {Owner}
field in the nLog]
table with the condition that only records which have the {Status}
field = “Out”
Ok, so this all is working up until the final step. The problem is that when a new log gets created, say to check the device out, all the old logs also update with the new ‘out’ status and we still display every owner who ever there was. So is there a field or automation I can do so that when a new record is created, the value of the status field gets copied across into a separate cell which never changes?
What I am thinking is I will turn this into a type of auto number where each device’s associated logs are enumerated separately. A count field is keeping track of how many logs are tied to it, and on the log side when the record is made its count at that moment is saved.
Then i will have the device page pull the ownership record from the checkout log where the number is = to the count. If the device is out i get a return, and if it is in i get a blank
You could do this with an automation, but I’m going to continue down the Formula/Lookup rabbit hole:
If you add a Rollup field using MAX(values)
to the Device table pulling in the {Date}
field from the Log table, you could then add a Lookup field to the Log table that pulls in the latest date recorded for that device. Then adda Formula field called {Latest?}
using IF({Date field} = {Max Date lookup field}, "latest"
Adjust your conditional lookup field in the Devices table to include {Status}
= “Out” AND {Latest?}
is not empty.
You could do this with an automation, but I’m going to continue down the Formula/Lookup rabbit hole:
If you add a Rollup field using MAX(values)
to the Device table pulling in the {Date}
field from the Log table, you could then add a Lookup field to the Log table that pulls in the latest date recorded for that device. Then adda Formula field called {Latest?}
using IF({Date field} = {Max Date lookup field}, "latest"
Adjust your conditional lookup field in the Devices table to include {Status}
= “Out” AND {Latest?}
is not empty.
Excellent! this did indeed work, thank you