To restrict document open by double click

Hi all,

can any one suggest me , i want to set document edit mode by the click edit button , not double click on the document . this is for notes application, i am new for notes application.

i want to restrict the user to edit the document only by the edit button which i have provided for them.

with regards

zubair a khan

Subject: To restrict document open by double click

In the view

Sub Queryopendocument(Source As Notesuiview, Continue As Variant)

Continue = False

End Sub

Subject: RE: To restrict document open by double click

That will only affect whether or not the document can be opened and will not affect editing at all (unless the op means they want the edit button in a view actionbar).

I would think the op will need to use the QueryModeChange event, possibly by modifying the backend notesdocument and checking for a field value which the edit button would set.

Subject: RE: To restrict document open by double click

The subject is restrict document open

Subject: RE: To restrict document open by double click

True, but the body of the text discusses editing…

Subject: RE: To restrict document open by double click

But the question is “i want to set document edit mode by the click edit button”.

Subject: To restrict document open by double click

You’ll have to turn it around: execute the same code that is in your button when users doubleclick the document.

Don’t restrict your users options Notes offers. It will frustrate them. They expect to edit the document when they doubleclick it. (by the way: they also expect this behavior when they have the document open in read mode and click CTRL-E)

So put the code in the button and in the postopen event and the querymodechange event of the form. Yes, it is more maintenance for you but it is much much more friendly for the user (who -and always keep that in mind- is the one who has to use the application)

Regards,

René

Subject: To restrict document open by double click

I would add a field in the document and set a default value. Then to the “QueryModeChange” i would check that if the field has the default value, “Continue = False”.Then to the Edit button, add a line to change the field value to something else and then edit the document. Also upon saving, the field should take again the default value.