Reservation system

Hello, so I’m working on a Reservation system similar to the one I “developed” on Bubble.

Basically, the calendar shows me the current reservations and when you click on the date you want to book a modal is shown and complete the reservation.

The main problem is: how do I make the calendar get the data from the query and then put the data in the calendar? Is there any tool inside wappler for this (as there was in bubble)? Should I give up (really I wouldn’t be able to make it using a plugin such as fullcalendar)?

This is the current reservation system:

This is the same Date Picker that is available in Wappler:

Have a look at the first video at the bottom of the page.

As there isn’t a calendar module in Wappler you will need to either build your own or use one like FullCalendar. I think @s.alpaslan has successfully integrated it before. Perhaps he could tell us more? I would be interested in this too.

Hello ,

I have already written the integration steps.
But it is easy

1 Like



1 Like

Thanks, I’ve read the topic but I couldn’t make it work on my page. It’s very complicated to create a booking system using wappler in comparison to

This is something that the team should consider, an interactive calendar that can retrieve information from a query.

Wappler is not complex .
If you checked my code. Just create 1 database table in your mysql service ( you have to make same process in buble ! )

Then copy paste other codes ! Thats it


My tip would be get your database created and then create a blank page with only the necessary Fullcalendar files included, get this working, then use Wappler to build around it.

Pouco a pouco :slight_smile:


Ok, I managed to implement it on the page and change the event color, get the data, etc.

Now I want to know how to:

  • On click on the event, see more information

  • Show other information (than the title) on the event shown in the calendar

  • On click on the date, open a modal

And a plus one that I believe it will be more complex: to change the event color depending on the state of that event (if it’s approved or not).


Event Color :

Add new new table field ( name must be color )
Then write color code or name ( white or #f2f2f2 )

You can use fullcalender onclick events …

This is actually very easy just use a hex value in the color column of your database for example #587ca3.

Fullcalendar will interpret this and set the background of the event to represent this color.

I’ve already read the docs on the fullcalendar webpage. I couldn’t make it work.

Could you show me how would you add to the on click of the calendar the: dmx on click

El El lun, 16 sep. 2019 a las 08:11, Dave via Wappler Community escribió:

You can not use Wappler to do this for you. Will require some custom coding.

Simply use the java onclick event listener within the Fullcalendar script, likewise with event selection, we set a cookie on click with the events unique reference, again using java.

I am currently working on the project / tasks. If this is urgent for you.
Maybe the @patrick or @Teodor could help.

You can use dmx.parse to evaluate App Connect expressions, you can also use it to call the actions on App Connect components.

Lets say your events come from a database query and you want to display an modal with the details from the clicked event. The code would look something like:

var calendar = new Calendar(calendarEl, {
  events: dmx.parse(''),
  eventClick: function(info) {
    dmx.parse('' + + ');');

dmx.parse('') will fill the calendar with the events retrieved from the database, make sure the format is correctly according to the calendar documentation.

dmx.parse('' + + ');') will select the correct record for the dataview and display the modal.

See a tutorial on how to create a data detail here:


Thanks!! It worked perfectly.

Now I’m having trouble using de dateClick action.

This is mi code:

  dateClick: function(info) {
		dmx.parse('fechaParaReservar.setValue('+ info.dateStr +') +;');

Basically, I created a variable to contain the date that is selected (I will use it afterwords) and open the modal. But surprisingly (or not…), nothing happend.

I tried changing de info.dateStr to but the code retrieved me this error:

Any help? Thanks :slight_smile:

I solved it, I was missing some " before de info.dateStr value.

The code is:dmx.parse('fechaReservar.setValue("'+ info.dateStr +'")')

1 Like

Ok, so… Now I’m having other problem.

I have different types of calendars (each for one room). So, when you change the place, the query updates and the calendarStar() function re-renders. The problem? It creates other new calendar…

So, I’ve read everything I could and even tried to create a function named calendarStop() that contained the fullcalendar delete function, so on every query update the calendar would be deleted and a new one is created. I couldn’t make work (the function was bad written)…

Any help on this? I’m quite bad writing js.


As the solution is 7 years old check that those methods mentioned are still valid in fullcalendar’s current API.

So, as I said before, I’m not a js coder. Yet… I created a function (on the same script where the calendar is rendered and named it “calendarRefetch”).

The complete code is the following (the calendarStart function works correctly):

      function calendarStart() {
    var calendarEl = document.getElementById('calendar');
    var calendar = new FullCalendar.Calendar(calendarEl, {
      plugins: [ 'interaction', 'dayGrid' ],
      locale: 'es',
      defaultDate: dmx.parse('hoy.datetime.formatDate("yyyy-MM-dd")'),
      editable: false,
      eventLimit: false, // allow "more" link when too many events
      events: dmx.parse(''),
      eventTextColor: 'white',
      selectable: true,
      unselectAuto: true,
      eventClick: function(info) {
        dmx.parse(';'+ +')');
      dateClick: function(info) {
    		dmx.parse('fechaReservar.setValue("'+ info.dateStr +'");');
      **function calendarRefetch() {**
    var calendarEl = document.getElementById('calendar');
    var calendar = new FullCalendar.Calendar(calendarEl, {

spoiler alert: IT DOESN’T WORK (lol).

So, every time the query changes (and the serverconnect reloads), it supposed to invoke the calendar.refetchEvents() -I’m using fullcalendar v4- and reload (no recreate) the calendar…

I’m having the same problem, and it creates as many calendars as times I update the query…