Lotus Notes Button.

Posted on 2003-03-27
Medium Priority
Last Modified: 2013-12-18
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.
Question by:ggetemracing
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 24

Expert Comment

ID: 8219318
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


Author Comment

ID: 8219770
I need this to be in Lotus script. Thanks

Author Comment

ID: 8219776
I need this to be in Lotus script. Thanks
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 8220298
Call NotesUIDatabase.OpenView(ViewName,Key,NewInstance)

will open a view and

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

will open a form.

Accepted Solution

hshevitz earned 225 total points
ID: 8220434
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.
LVL 24

Expert Comment

ID: 8220586
There you go...

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question