I’m building a scheduling program that books appointments.
I need to create an enormous list of available appointments for each employee that looks like the attached.
There are 2 hour appointments, full hour and half hour. That’s what those huge columns are. All available times for a single employee. There are half a dozen employees and they are Things in my app. So, this data will be attached to an employee Thing. It’s the individual employee’s schedule, so that makes sense.
Questions:
-
How do I add all these times to my employee Thing? Is this a case where I create a new field in the database for my employee Things and select the “multiple entries” checkbox because I have many of these appointment times to create?
-
I need to work through this table. with an algorithm. As users select appointments from the huge table of available appointments, I have to calculate ranges of times where the appointment occupies several items on this list of open times. You can see in the attachment on the far top right, there is a “Booked Appointments” list. See #1 in the “Booked Appts” list? That was someone clicking on the 12:00-2:00 entry in the 2HR Times column in the attachment. Then, I have to parse the columns and knock out available appointment times this #1 appointment runs over. In the attachment, everything with a #1 in a circle next to it is knocked out by the #1 appointment. Then I have to re-save the lists with only available appointments in them for the next round. #2 under Booked Appointments list would be the next one booked that repeats the process of knocking out availability as you can see by all the times with a #2 in a circle next to them… and so on until no more availability.
WITH ALL THAT IN MIND…
I need to do some pretty complicated algorithms that I can do in other programming languages without too much trouble. How can I do this in Bubble? Is there a way to integrate a script or some code into a bubble project so I can call it to manipulate this data? Or is there some other way to do this that would work best in Bubble?
Thank you !!!




