Question : Run Actions From Script?

I have been searching for information on how to activate an action from within a script.

I have a navigation bar from which I can view a particular Folder. Is there a way of doing this using script? I want to add it to the "Close" button on another form, so I can view the contents of a folder when the form closes.

I also have an Action which deletes the contents of this folder, but again I want to do this with script.

Honestly, I don't like having to keep asking all these questions, but I just *can't* find the information I need! :)

Thanks,
Andrew.

Answer : Run Actions From Script?

Use this workaround instead, it may not be that pretty.

In the close button of your form
     Dim session As New NotesSession    
     Dim ws As New NotesUIWorkspace
     Dim uidoc, tuidoc As NotesUIDocument
     Set uidoc = ws.CurrentDocument
     Call session.SetEnvironmentvar( "NavToOpen", "test" )
     Set tuidoc = ws.ComposeDocument( "","", "OpenNav" )
     tuidoc.Close
     uidoc.Close
================
Create a form name OpenNav and in the queryclose include this formula:
NavToOpen := @Environment("NavToOpen");
@Environment("NavToOpen"; "");
@PostedCommand([OpenNavigator];NavToOpen)

I am using here some environment to set the value of navigator, so that the form can be used to open any navigator in general.

Hope this helps

~Hemanth
Random Solutions  
 
programming4us programming4us