D
Dave Lomas
I've read quite a few messages about how to stop users changing
appointments (based on a custom form in a public folder) by using
Item_Write = False when they don't have the form locked, etc. All that
works fine when they open the item (i.e. display the custom form, make
changes, try to save). However, with appointment items in a
Day/Week/Month view, you can drag appointments to different days, or
just click on them to change the Subject.
If you drag the appointment to a new day, and the code prevents you
saving the changes, the appointment pops back to its original location
- all well and good. However, if you drag the start/end time, or click
on the item and edit the subject 'in place', you still get the warning
about being unable to save changes, but the item _in the view_ looks
like its changed. It hasn't - if you open it up, it has all the right
values, but its display in the Day/Week/Month view (for example) stays
changed. The only way I've found to refresh the view is to open
another folder and then go back to the appointment folder. Simply
changing views within the appointment folder doesn't work - indeed the
other views (e.g. Week, Month) also show the incorrect data. It seems
Outlook is cacheing the values that it was unable to save.
So, in VBScript, is it possible to get Outlook to refresh its view,
once you've cancelled the changes with Item_Write = False?
Thanks,
David.
appointments (based on a custom form in a public folder) by using
Item_Write = False when they don't have the form locked, etc. All that
works fine when they open the item (i.e. display the custom form, make
changes, try to save). However, with appointment items in a
Day/Week/Month view, you can drag appointments to different days, or
just click on them to change the Subject.
If you drag the appointment to a new day, and the code prevents you
saving the changes, the appointment pops back to its original location
- all well and good. However, if you drag the start/end time, or click
on the item and edit the subject 'in place', you still get the warning
about being unable to save changes, but the item _in the view_ looks
like its changed. It hasn't - if you open it up, it has all the right
values, but its display in the Day/Week/Month view (for example) stays
changed. The only way I've found to refresh the view is to open
another folder and then go back to the appointment folder. Simply
changing views within the appointment folder doesn't work - indeed the
other views (e.g. Week, Month) also show the incorrect data. It seems
Outlook is cacheing the values that it was unable to save.
So, in VBScript, is it possible to get Outlook to refresh its view,
once you've cancelled the changes with Item_Write = False?
Thanks,
David.