conflict in public folder

D

daave.net

problem:
i have many items in exchange public folder and custom form for creating and
editing them
when multiple users opens and saves item, a conflict occur

is any way to open item exclusivelly, or warn user that this item is already
opened by another user??

thanks
 
L

Long Nguyen

I do not know the answers for your questions but with my custom form the
fields in an existing form are locked by default and users need to click on
the "Edit fields " button (that I created in the form) to have the fields
unlocked for editing. The vbscript code for the this eld button first checks
if an "edit flag item" for this form exists; it does then it would prompt
user that the form is being edited and no editing is allowed; if it does not
it would create the edit flag item then unlock the fields for editing. When
the user finishes the editing he/she would click on a "Save & Close" button,
and the code for this button deletes the edit flag item and save and close
the form.

Long
 
D

daave.net

could you describe me your "edit flag item"?

i have an idea, that i create new custom field "edit flag" and when i open
item, some value saves to this field
and when i close this item, the value removes
i think, if i enter value to field "edit flag", i must save item to store
this value - and i don't know how
 
L

Long Nguyen

The way I created my edit flag item in vbscript was to use the "Add" method
to create a post item in a public folder.
myFolder.Items.Add(olPostItem)

where myFolder points to a public folder. The edit flag item has the subject
"EDITING <form subject>" where <form subject> is teh subject name of the
current form. So when the "Edit fields" button of a form is clicked I check
in the public folder if an item with subject "EDITING <form subject>"
already exists, and if it does not then aI allow the edit.
strEditFlagTitle = "EDITING " & Item.Subject
Set EditFlagItem = myFolder.Items(strEditFlagTitle)
If EditFlagItem Is Nothing Then
<allow edit>
End If

I did try an edit flag field in the form but it did not work for me. The
problem was that you have to save teh form to have that field value retained
with the form but saving teh form also save all changes to the form which I
do not always want.

Long
 

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