Domino Error Message

Error Title: Cannot Close Current Program Full Error Message: Notes Error: Cannot Close Current Program Synopsis:

Occurs when setting a target frame for an action button in LotusScript and then trying to open another page / form from that action button. The same problem does not occur when using formula. CAPTCHA Please solve: 2 + 3= Suggested Causes and Solutions:

In R6, if you want to open another document / form / design element from an open document or other design element, and you're already in a frame, LotusScript often just will not work in the way the help says it should.

Formula for some reason will. Hence:

@SetTargetFrame("details");

@Command([OpenView]; "vwRpt");

will work, whilst

Dim workspace As New NotesUIWorkspace

Dim uidb As notesuidatabase

Set uidb = workspace.currentdatabase

Call workspace.SetTargetFrame("details")

Call uidb.OpenView("vwRpt")

won't! Instead, you get a "Notes Error: Cannot close current program" message.

To get around this if you need to use lotusscript, simply put the script into an agent, and then call the agent from your button using formula. It's messy but it works.Giles Hinton on 05/16/2004 12:57
Dear, Giles It doesnt work Dumbass. Barack Obama is da king woot wootBarack Obama on 02/09/2009 05:12 PM
Thanks Barack Obama you idiot. It does you tool - if you're too inept to copy and paste suggest you try something else for a vocation.Giles Hinton on 07/12/2009 05:04 PM

Know of a cause or solution to this error? Click here to add it

Document Details: Created by Giles Hinton on 05/16/2004. Modified: 05/16/2004 12:55