NotesUIWorkspace.EditDocument with instance parameter not working

Here is the problem.

The user is currently using the domain search in Notes Client. What they want is that when they do a search when the search result opens, the document will open in the same tab. So everytime they search for a string the result will open in the same window.

I tried using the editdocument method with the instance parameter but it is not working.

Please help…anyone?

Florisa