Developing a Code in Lotus Note

Developing a Code in Lotus Note

To write your first program using Lotus Notes, you can use the following steps:

1. Open Lotus Notes.
2. Click on the “Create” tab.
3. Click on the “Application” button.
4. Select the “Agent” template.
5. Enter a name of your agent.
6. Click on the “Create” button.
7. In the “Agent Designer” window, click on the “Code” tab.
8. Enter the following code:


function onOpen() {
// This function is called when the agent is opened.

// Use the command to get the current date and time
var now = new Date();

// Create a new note.
var note = new NotesDocument();

// Set the subject of the note to the current date and time.
note.Subject = now.toString();

// Save the note.
note.save();
}

9. Click on the “Run” button.
10. The agent will be executed and a new note will be created with the current date and time as the subject.

You can also use the Lotus Notes documentation to learn more about how to write programs using Lotus Notes. This would be provided shortly.

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading