Siipi
■ Domino Design ■ System Solutions ■■ Musical Soundtracks ■ Web Design ■
Siipi Programming Examples

Here you find free examples and solutions for frequently asked questions. If you have an alternative or better way to program, you can post your idea on the feedback page. We include your solution on this page, and give the credits to you.


25
Hide details for LotusScriptLotusScript
1
Hide details for Checking Free Disk SpaceChecking Free Disk Space
This LotusScript routine demonstrates how to determine the free disk space using a Windows API.
1
Hide details for Checking if task is runningChecking if task is running
This function checks if a task is running, and returns True or False. The task name can be a partial name of the task.
1
Hide details for Converting Hex values to numbersConverting Hex values to numbers
Here's quick tip how to convert Hex values (strings) to numbers:
1
Hide details for Copy Notes Documents as pictures to WordCopy Notes Documents as pictures to Word
Using BitBlt operations you can easily copy selected documents from a view as seperate Word documents.
Make sure you have a field called "Subject" in each document, or modify the call to the CopyScreenRectToWord parameters accordingly.
By default the size of the region is set to 600x600, starting from the corner of the Notes Document content, and you can change this size as needed.
2
Hide details for Creating Directory PathCreating Directory Path
This sub creates a complete path to a subdirectory, if it doesn't exist.
This sub creates a complete path to a subdirectory, if it doesn't exist. (By Sam)
1
Hide details for CSV ImportCSV Import
Importing Tab, or any other delimited text files.
1
Hide details for Disabling the user to close a documentDisabling the user to close a document
Sometimes it is not wanted that a user can exit a document, without using a certain button. Put this code in the Form's Queryclose event to avoid unexpected exiting from a document:
1
Hide details for Letting user change internet password via button.Letting user change internet password via button.
This example prompts the user for a new internet password and updates his internet password in the user's person document on his home server.
1
Hide details for Opening random document from a viewOpening random document from a view
This example demonstrates how to get a random document from a view. After you have the document handle you can get a field from that document and show it on another document.
1
Hide details for Passing parameters to an web agentPassing parameters to an web agent
If you want to pass one or several parameters to an web agent, you can use this example.
1
Hide details for Reading Windows registry keys from LotusScriptReading Windows registry keys from LotusScript
Here is how to read registry key values using the windows API
1
Hide details for Rebuild View IndexRebuild View Index
This example shows how to rebuild a view index, which works the same way as pressing Shift-F9 from the Notes Client.
Based on a code snippet from Rod Whiteley on the R4/5 Forum, I came out with this:
1
Hide details for Refreshing all views in databaseRefreshing all views in database
After an agent has updated or created new documents in a database, it's a good idea to let the agent refresh all views of the database, so that the next user who accesses this database doesn't have to wait for a long time when the views are refreshed.
1
Hide details for Round function does not always round correctly, here is a new Round function which works correcly in all casesRound function does not always round correctly, here is a new Round function which works correcly in all cases
Round function of Lotus Notes 5-9 does not always round up where it should, therefore this function
1
Hide details for SendKeys / PressKeysSendKeys / PressKeys
Since the SendKeys does not work in Notes, you can use this replacement for the same purpose.
1
Hide details for Setting computed fields in read mode on a documentSetting computed fields in read mode on a document
It's quite common that documents have to show computed values.
1
Hide details for Setting user preferencesSetting user preferences
Some options from the User preferences (Large Fonts, Monochrome) have been forgotten from the Menus in R5. With LotusScript you can access those missing Menu options, and control also the existing options.
1
Hide details for Signing desing elements with LotusScriptSigning desing elements with LotusScript
This agent signs all design elements of a database by resaving each design document:
1
Hide details for String manipulationsString manipulations
Replace substring in a string
1
Hide details for The beginningThe beginning
Many LotusScript Agents start with the following lines:
1
Hide details for The beginning (UI)The beginning (UI)
Many LotusScript Agents for the User Interface frontend start with the following lines when launched from a button:
1
Hide details for Updating a field on all responses of a documentUpdating a field on all responses of a document
If you want that a field updates on all response documents (including all responses to responses), when you edit the field on the main document and save the document, then you can use this LotusScript routine in the main document's Form's QuerySave method:
1
Hide details for Using arrays beyond the limitsUsing arrays beyond the limits
Normally it is not possible to allocate more than 32767 elements in a linear array. If you use a matrix array you can allocate an linear array which is only limited by the amount of physical memory of your machine. The maximum linear array size using a matrix array is 1.073.676.289 elements, and since the smallest element size is 2 bytes (for Integer elements), you would need 2GB of RAM before the matrix array is at the limits.
1
Hide details for Waiting for an program lauched by Shell to finishWaiting for an program lauched by Shell to finish
This example shows how to wait for a program to finish when it was launched with the Shell statement from Lotus Script.
1
Hide details for Notes Database DesignNotes Database Design
1
Hide details for Creating own database iconsCreating own database icons
Did you know that you can edit any notes database icon with any paint program ?
1
Hide details for Server AdministrationServer Administration
1
Hide details for Speeding up Domino Administrator when reading directory of databasesSpeeding up Domino Administrator when reading directory of databases
This little tip can make the opening of Domino Administrator remarkably faster.
27

© 2008 Siipi
 News   Services   Downloads   Aircraft   Music   Movies   Links   Donate   Feedback   Contact