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