Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Best way to cancel modified appointments? (Read 1446 times)
Michael Hopkins
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Apr 5th, 2022
Best way to cancel modified appointments?
Sep 7th, 2023 at 11:12pm
Print Post  
We are starting to add support for modifying appointments. What is the best way to revert/cancel a modified item?

Imagine a certain type of item that does not apply to the resource that you try to drag it to. What is the best way to go about cancelling the item modification?

An example might be that the logged in user drags a personal TODO item to another user. We would not want to allow them to put their personal TODO items into another person's calendar. But we do want to allow them to move them around on their calendar.

Is there a way to cancel the modification if they try to drop an item in the wrong spot?

Right now, this is for dragging and dropping inside the calendar timetable view that has multiple resources on the calendar.

Thanks in advance for any advice.

Michael
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3419
Joined: Oct 19th, 2005
Re: Best way to cancel modified appointments?
Reply #1 - Sep 8th, 2023 at 9:25am
Print Post  
Handle the itemModifying event:

Code
Select All
public void itemModifying(ItemModifyConfirmEvent e)
{
    if (...)
        e.setConfirm(false);
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Michael Hopkins
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Apr 5th, 2022
Re: Best way to cancel modified appointments?
Reply #2 - Sep 8th, 2023 at 3:38pm
Print Post  
That works! Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint