I have a document containing a button with following functionality:
Sub Click(Source As Button)
uidoc.EditMode = True
Call uidoc.fieldsettext ("State","Processing")
uidoc.EditMode = False
When I hit the button in the document preview or when the document is in read mode after being opened from a view, it works find. But when the document is in read mode after being opened from my incoming mail box using a document link, the "uidoc.EditMode = False" causes the errormessage "Document command is not available". (EditMode = True works fine).
(I'm using client version 5.0.9a).
Thanx in advance,