URLOpen does not work in QueryOpen

I am trying to use URLOpen in the QueryOpen of a notesdocument. Does not seem to be working right… Getting error “Property or Method not available during QueryOpen: URLOpen”. But I do not see any such notes in the Designer help. Here is the code…

Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)

Dim s As New NotesSession

Set sourceDB = s.CurrentDatabase

Set server = New Notesname(sourceDB.server)

serverstr = server.Common + ".duke-energy.com"

dbpath = sourceDB.FilePath	

Set doc = Source.Document

unid = doc.UniversalID

docURL = "http://" & serverstr & {/} & dbpath & "/FERCEmployee/" + unid + "?opendocument&login"

'Print {<script language="JavaScript"> top.location.href (" http://} & serverstr & {/} & dbpath & {/FERCEmployee/} + unid + {?opendocument&login"); </script>} --> Did not work either



Set w = New NotesUIWorkspace

continue = False

Call w.URLOpen(docURL)	

End Sub

Subject: URLOpen does not work in QueryOpen

Are you trying to force a document to be open from the web when clicked on it from the Notes Client view?

If so, try creating a Notes only form that doesn’t display any information, but simply opens the URL in the PostOpen… just a thought don’t know if you can actually do that.