Enabling a capacity for appointments
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?
SIGN IN To post a reply.
3 Replies
KK
Karthigeyan Krishnamurthi
Syncfusion Team
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.
Online sample: http://js.syncfusion.com/demos/web/#!/bootstrap/schedule/multipleresources/verticalview
We are not clear about your other requirements, kindly share more details like image/video demo to proceed further.
Regards,
Karthigeyan
SB
Shea Belsky
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.
KK
Karthigeyan Krishnamurthi
Syncfusion Team
September 29, 2017 11:54 AM UTC
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
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
SB Shea Belsky
- Sep 28, 2017 03:16 AM UTC
- Sep 29, 2017 11:54 AM UTC