Hi Have have this form when I want to Filter the list of Boats in a drop down.
- When the use selected a Charter Start and End date I want the Filter to only show Boats available outside of the Range.
- When a Boat is Not Available for Booking eg (been Repair or On Charter) I want to exclude that Boat from the List
- If a Charter is Deleted or Cancel I want to be able to remove that Boat from the Exclusion, That boat should not be excluded from the List when it is deleted.
This is my filter can you help or is there any suggestion to implement this?
FIND Boat WHERE COUNT Charter WHERE ((((Charter.StartTime>=ThisCharter.StartTime AND Charter.StartTime<=ThisCharter.EndTime) OR (Charter.EndTime>=ThisCharter.StartTime AND Charter.EndTime<=ThisCharter.EndTime)) OR (Charter.StartTime<ThisCharter.StartTime AND Charter.EndTime>ThisCharter.EndTime)) AND Charter.fk_myVessel=Boat AND Charter<>ThisCharter)=0 AND Boat.AvailableForBooking='Yes' AND Boat.BoatDefaultBase=LoggedInRegularUser.myDefaultBase ORDER BY Boat.BoatName
Thanks
Leo