Relative Content

Tag Archive for mendix

How to fix overbooking in a Mendix reservation app?

I am trying to set up a decision which checks all reservations in the database and compares those times to the times the user wants to use. So the attributes are StartTime and EndTime, both date-time attributes and the attributes the user puts in are PickedStartTime and PickedEndTime. Now I don’t know how to compare this, so that no reservation can be made if the timebetwen my picked start and endtimes is filled in by any reservation’s start or endtimes, meaning also the timebetween.

How to fix overbooking in a Mendix reservation app?

I am trying to set up a decision which checks all reservations in the database and compares those times to the times the user wants to use. So the attributes are StartTime and EndTime, both date-time attributes and the attributes the user puts in are PickedStartTime and PickedEndTime. Now I don’t know how to compare this, so that no reservation can be made if the timebetwen my picked start and endtimes is filled in by any reservation’s start or endtimes, meaning also the timebetween.