We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Enabling a capacity for appointments

Thread ID:

Created:

Updated:

Platform:

Replies:

132904 Sep 28,2017 03:16 AM UTC Sep 29,2017 11:54 AM UTC JavaScript 3
loading
Tags: ejSchedule
Shea Belsky
Asked On September 28, 2017 03:17 AM UTC

Is it possible to allow appointments to accept many people at a time? I have a Node.js + Express server which I'd like to use in tandem with ejSchedule to manage time slots with arbitrary (greater than 1) limits to the number of people who can sign up for a current slot. The slot should then "grey out" when it's full, but un-"grey out" if someone wishes to deselect their slot. Does ejSchedule have any embedded or customizable features that would let me do this?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 28, 2017 11:58 AM UTC

Hi Shea, 
 
Thank you for contacting Syncfusion support. 
 
Yes, it is possible to allow appointments to accept many people at a time, kindly visit the below links to know more. 
 
We are not clear about your other requirements, kindly share more details like image/video demo to proceed further. 

Regards, 
Karthigeyan 


Shea Belsky
Replied On September 28, 2017 02:58 PM UTC

Thanks for the fast reply! More specifically, based off of the link you just provided regarding multiple people signing up for an appointment, I want to set a maximum capacity for these appointments. For example, I want to have some sort of internal counter or variable which says that at most 5 people can sign up for this appointment. I have the existing ability to distinguish between users on my server, but I would like to find some meaningful way of ensuring that too many people do not choose one appointment time.

Thank you.


Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 29, 2017 11:54 AM UTC

Hi Shea, 
 
Thanks for your update. 
 
We have prepared the sample to restrict the creation of multiple owners for an appointment which can be viewed from the below link. 
 
<Code> 
appointmentWindowOpen: "OnAppointmentWindowOpen" 
 
function OnAppointmentWindowOpen() { 
    ownerData = this.model.resources[0].resourceSettings.dataSource; 
    this._appointmentAddWindow.find('.owner_' + 0).ejAutocomplete({ 
        focusOut: function (argument) { 
            var owner = argument.value.split(","); 
            if ((owner.length - 1) == 3) 
                alert('Atmost two owner is allowed'); 
        } 
    }); 
} 
</Code> 
 
In the above sample, only 2 owners can be added for any appointment and if 3 owners were selected, an alert will be displayed and appointment can’t be created. 
 
Regards, 
Karthigeyan 




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;