Hi,
I'm trying to create a pool car booking app where by it forces people to share cars where available.
I have a form which asks for the users:
- collection point
- destination
- collection time
- return time
This then needs to display a gallery which contains a list of available cars (if there are any) which the user can then select.
My entities are:
Pool Car
Registration
Base Site
Available (yes/no)
Pool Car Bookings
Pool Car (related entity)
Start Date(date/time)
End Date (date/time)
destination(text)
I'm struggling to filter the gallery items based on the form.
In SQL I'd look to do something like this:
SELECT * FROM poolCars c WHERE NOT EXISTS( SELECT * FROM
bookings b
WHERE
(DATE_FORMAT(b.startDate, "%Y-%m-%d") = CURDATE()
AND b.passengers >= c.seats
)
AND b.poolCar_id = c.id
)
however I am unsure how to do this in PowerApps. Any ideas?