I am trying to pull a terminate action reason to show on a form.
I have this for the derived field
FHTermReasonCode is a DerivedField
type is Alpha size 80
for each(AuditLog) audit log records
if (not each.audit period.Future
and each.TerminationDate entered
and (each.action = "Terminate"
or each.action = "HRISTerminate"))
return each.reason code
on the form I put in first FHTermReasonCode
The employee had an action of HRISTerminate, then was rehired and then had an action for Terminate.
The form only shows the HRISTerminate reason which was before the Terminate reason.
Any Suggestions?
Thank you