I have an action hotspot located inside a page which is also embedded in a frame called “Left” and the default target for the frame is “Right” (the other frame in the frameset. The action command is as follows:
@SetTargetFrame(“Right”);
@Command([EditProfile]; “(Database Configuration)”)
Is there a way that the profile document can be opened in a dialogbox instead of the typical layout which is the whole window?
Thanks,
Dan
Subject: How do I launch a dialogbox from an action hotspot inside a frame?
Set up your hotspot using LotusScript instead of formula. @DialogBox doesn’t allow you to specify a document other than the currently-selected document in a view, but NotesUIWorkspace.DialogBox does.
Sub Click(Source As Button)
On Error Goto errhand
Dim w As New notesuiworkspace
Dim s As New notessession
Dim db As notesdatabase
Dim doc As notesdocument
Set db = s.currentdatabase
Set doc = db.getprofiledocument("(Database Configuration)")
Call w.DialogBox( "(Database Configuration)" , true , true ,true , true , false , false , "Edit Configuration" , doc , true , false , false )
Exit Sub
errhand:
Msgbox "Error at line " & Erl & ": " & Error
Exit Sub
End Sub
Subject: RE: How do I launch a dialogbox from an action hotspot inside a frame?
Thanks Esther,that worked out great.
Dan