How to find if item change/add event for all copied appoinments in All Appointments view is completed
Posted on 2009-05-14
I have created an addin in outlook 2007. I want to show a form to a user to take a decision whenever a new appointment is created or any existing appointment is changed. This works fine . However when I have two calendars say Test and actual calendar and I go to View All appointment in test calendar, copy say around 20 to 30 appointments and paste them in actual calendar's "All Appointment items view", the form created by me start coming up once for each item. I introduced a global varibale to ensure that the form comes only once for this kind of bunch handling, however the variable is not gettting initialized for the next bunch. i.e. once the first bunch is over if I copy in the same fashion another bunch the application just behaves depending upon the decision I took for the first bunch. I want that global variable should be re-initilized for the next bunch but not clear where exactly I should do this.
In bunch copy operation the form pops up , asking if a particular operation needs to be performed for that appointment item. The answer to this question can be yes, yes to all, no , no to all . Yes perform the operation and asks me again for the next item in the same bunch Yes to all means,apply the operation for each item in that bunch and do not show form again. No means, do not apply operation for that appointment item and form to come up again for the next item in the same buch No to all means do not perform the operation for any item, The form should not popup again
However for the second bunch the decision I am taking is just carried forward , so if first time I said no to all, the form is not cmong up at all for the next bunch also
I want that question of yes, yes to all, no , no to all should be applied to each bunch of appointment item separately. i.e. one bunch should not be mixed with other. I presume the problem is which place to use to re-initalize the global variable that I have set during first bunch