Launch First Attachment

If I have a form that has a launch property of “Launch First Attachment”, I can’t get it to launch the attachment when I open the document with lotuscript. It only works from a uiview. Does anyone know a work around?

Subject: What’s in your LotusScript code?

We use LotusScript to open a form with launch first attachment and it works ok. Can you post your code for review?

Alex

Subject: Re: Launch Attachment

The code is just a simple hotspot to open a document:

Sub Click(Source As Button)

Dim s As New NotesSession

Dim db As NotesDatabase

Dim doc As notesdocument

Set db = s.CurrentDatabase

Dim view As NotesView

Set view = db.GetView("Att")

Set doc = view.GetFirstDocument



Dim ws As New NotesUIWorkspace

Call ws.EditDocument(True, doc)

End Sub