Item_Write fires multiple times on Send

N

Neil Dittmar

Hello All,

I am currently programming some VBScript code to work
behind the scenes on the default calendar/appointment
form. The idea is that when the appointment item is
saved, VBScript code will execute to update a database.
If I merely save the appointement item this works fine.
However, if I invite others (users, resources, etc.) to
the appointment, the Save and Close button changes to
Send. When I click the Send button this results in the
Item_Write event firing multiple times (4 I think),
thereby doing the database accessing 4 times. Also, on
the 4th time the Item_Write event is called some global
variables that I have set (which the code relies on to do
the database update) mysteriously get lost (ie; the value
is wiped from them). I could bind all this code to the
close event (since that appears to only fire once when the
item is closed), but I want the database to be updated to
be updated during other activities as well (such as if the
subject is renamed, the appointment is moved, etc.)

Any suggestions or information would be greatly
appreciated.

Thanks,

Neil Dittmar
Software Developer
Aurora Information Systems
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top