jQWidgets Forums

jQuery UI Widgets Forums Scheduler Prevent multiple appointment in same time slot

This topic contains 8 replies, has 3 voices, and was last updated by  rahul6473 8 years, 11 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author

  • rahul6473
    Participant

    Hello Everyone,

    Can you please advice me how i can prevent to add appointment in one slot if we have already an appointment in that slot.

    Currently in this case it creates multiple appointments for that same slot i just want to prevent to create multiple appointment.

    Please suggest.


    Peter Stoev
    Keymaster

    Hi rahul6473,

    I do not think that this is possible option unless you disable editing, dragging and moving of appointments in your scheduler and ensure that at creation time you have no appointments in collision.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    rahul6473
    Participant

    Hi Peter,

    Thanks for reply.

    Can we display an error message if someone try to create one appointment in used slot (i.e if appointment already exist).

    For ex. if someone already have an appointment on 20-09-2016 8PM- 9PM and other user is trying to create recurring appointment for one month from 8PM-9PM.

    I just want to display an alert box so user can see his all appointments created except one that is already booked.

    Please suggest.

    Kind Regards,
    Rahul


    admin
    Keymaster

    Hi Rahul,

    I suppose that using events of scheduler and checking all appointments from and to for intersection with other appointments you will be able to achieve that.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    rahul6473
    Participant

    Hello Peter,

    Thanks for reply.

    how can i get all the appointments on renderAppointment event.

    Or is there any way i can check that appointment is already added for this particular slot.

    Thanks & Regards,
    Rahul


    admin
    Keymaster

    Hi Rahul,

    It is very wrong to get the appointments in the renderAppointment event as the event’s purpose is entirely different.
    I suggest you to look at the Scheduler’s API for methods.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    rahul6473
    Participant

    Hi Peter,

    I checked the API docs. Can you please help me reg. one query. i.e How we can prevent appointment to be created.

    Ex. If one appointment is already created then we don’t want allow to user create another appointment in same slot.

    Can you please let me know which function is responsible for creating appointment.

    Regards,
    Rahul


    Peter Stoev
    Keymaster

    Hi Rahul,

    I think I already posted that you’re trying to achieve something which we do not support as built-in feature. You can disable editing, dragging and moving of appointments in your scheduler and ensure that at creation time you have no appointments in collision i.e when you create the scheduler, you may check your appointments data or do that in your server if you load appointments from there.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    rahul6473
    Participant

    Can we ask jqxScheduler system through it’s API’s if a particular time slot is free and available for booking or if the slot is already occupied by a previous booking.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.