• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

Lotus Notes Button.

Hello, What is the code in a Lotus Notes button to open a Form or View from a Page? Also I need to restrict certain users to only have access to these Views or Forms when they click on the button from a Page. Thanks.
0
ggetemracing
Asked:
ggetemracing
1 Solution
 
HemanthaKumarCommented:
Actual restrictions can be implied through Readers list. Which is more effective.

@Command([Compose]; server : database ; form ; width : height), will compose a form and

@Command([OpenView] ; viewName ; key ; newinstance ) will open specified view

~Hemanth
0
 
ggetemracingAuthor Commented:
I need this to be in Lotus script. Thanks
0
 
ggetemracingAuthor Commented:
I need this to be in Lotus script. Thanks
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
scottrmaCommented:
Call NotesUIDatabase.OpenView(ViewName,Key,NewInstance)

will open a view and

Call NotesUIWorkspace.ComposeDocument(Server,File,Form,Width,Height)

will open a form.
0
 
hshevitzCommented:
Here's another variation on the LS from scottrma:

For creating a document in the same database

     Dim session As New NotesSession
     Dim db As NotesDatabase
     Dim doc As NotesDocument
     
     Dim ws As New NotesUIWorkspace
     Dim uidoc As NotesUIDocument
     
     Set db = session.CurrentDatabase
     
     Set doc = db.CreateDocument
     doc.Form = "your form"
     
     Set uidoc = ws.EditDocument(True, doc)

For opening a view

     Dim db As NotesUIDatabase
     Dim workspace As NotesUIWorkspace
     
     Set workspace = New NotesUIWorkspace
     
     Set db = workspace.CurrentDatabase
     
     Call db.OpenView("your view")

Restricting the access to the views or form based on clicking the button may be a little trickier. If you restrict the views or forms with their Read/Create access then they may not be able to open these with the code in your buttons.
0
 
HemanthaKumarCommented:
There you go...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now