How to select most recent value for a group
I need to add Employee Other Information to Payroll Slip. Right now there are three lines of information for this value, but user needs to pick the most recent one. I have added this logic to the template:<?for-each:EMPLOYEE_OTHER_INFORMATION?> <?VALUE?> <?end for-each?>
and I am able to see all three lines of comment, I wonder how to pick the most recent one?
Can anyone help? I can send you the template and data file if you need. Thanks,
Yan