The drop-down Lookup fetches from
Employees.
The
Employees form has an
Employee Holiday subform within.
I'm looking to perform the following, however, I'm stumped!
1) Look at the date required
2) Look at the employee holiday dates
3) If the employee has a holiday date booked off on the same day as date required, do not show the employee in the drop-down employee selection list.
This is what I have, below:
- if(input.primary_requirement != null || input.primary_requirement.tostring() != "")
- {
- // Date Required
- DateReq = input.diary_date_required;
- //
- // Put logic here?
- //
- // Fetch employees that are active
- Employee = Employees[ID != 0 && system_status == "Active"] sort by combined_name;
- input.diary_tog_employee:ui.add(Employee.combined_name.getall());
- }