Submit a Code Fragment... |
Category | Name | Description | Source | Date | |||||
---|---|---|---|---|---|---|---|---|---|
5 |
| ||||||||
4 |
| ||||||||
240 |
| ||||||||
6 |
| ||||||||
15 |
| ||||||||
130 |
| ||||||||
1 |
| ||||||||
43 |
| ||||||||
2 |
| ||||||||
375 |
| ||||||||
Date/Time Handling | day difference | to find difference between two dates and find the day difference | Rajiv Menon | 02/04/2001 | |||||
Date/Time Handling | Fetching Docs within a Date Range Dynamically | There exists a set of documents in a databse. Inorder to retrieve the documents that exists within a given Date Range,the following code will be helpful.(if there is any simple code than this please inform the same) | rkdravid@yahoo.com | 10/25/2000 | |||||
Date/Time Handling | How to Set Time Zone for a Date with the NotesDateTime Class in Notes R4 | Append the time zone after the time. | Rlatulippe@romac.com | 04/19/2000 | |||||
Date/Time Handling | How to compare date/time fields using Lotuscript. | This example will compare two date fields in document: | Rlatulippe@romac.com | 04/19/2000 | |||||
Date/Time Handling | dates comparisons | Just a tip to compare 2 dates in lotusScript | Francois | 09/21/2001 | |||||
Date/Time Handling | Force British Date Format | Sometimes a client/server will work to the American date format even though the regional settings are set to British. This function will convert any date format to the British format(as a string) | guy@soberskin.co.uk | 12/17/2001 | |||||
Design Configuration | LotusScript manipulation of Design notes | Use API routines exposed in Notes client DLLs to do just about anything to Design notes or other Notes objects. | Bill Ernest | 12/15/1998 | |||||
Design Configuration | Rename a Notes view with LotusScript? | Rename a Notes view with LotusScript? The following example will rename a Notes view. IMPORTANT NOTE: The following is a sample script, provided only to illustrate one way to approach this issue. In order for this example to perform as intended, the script must be laid out exactly as indicated below. Notes Support will not be able to customize this script for a customer's own configuration. 1. Define an agent with the following script: 2. Launch the agent. 3. Close all windows related to the database. 4. Reopen the database. The view is now renamed. | Rlatulippe@romac.com | 04/19/2000 | |||||
Design Configuration | Change a view name with LotusScript | Use API routines exposed in Notes client DLLs to change the name of a view. | Bill Ernest | 12/15/1998 | |||||
Design Configuration | Design Object Maintenance | builds an array of DESIGNOBJECTS which returns the noteid of a design note | Don Bechtold (bettndon@flash.net) | 02/04/1999 | |||||
Design Configuration | Private view deletion | The best way to remove all of a user's private views on a db | Jamie Magee | 04/11/1999 | |||||
Design Configuration | Converts a view to a design list of folders | Modifies a view so it that displays the names all the folders in the database | Mackie | 02/24/1999 | |||||
Design Configuration | View Name change | Anonymous | 02/19/1999 | ||||||
Design Configuration,Diagnostics/Analysis/Debugging,Documentation (System),File Input/Output,List Processing/Sorting,Printing/Faxing,RDBMS Integration,Reporting/Searching,Security,String Handling,Website Tools,Workflow,(Misc) | voxqtishh | HH69YV <a href="http://gqfsgqfqlsnx.com/">gqfsgqfqlsnx</a>, [url=http://jhwrhornaown.com/]jhwrhornaown[/url], [link=http://fvnqhajnjakl.com/]fvnqhajnjakl[/link], http://lzrueecqicro.com/ | Anonymous | 11/02/2014 | |||||
Design Configuration,Diagnostics/Analysis/Debugging,Security | Role and Group Membership routines | Adds persons to roles, checks membership in Groups | Marcus Laubli | 12/15/1998 | |||||
Design Configuration,Diagnostics/Analysis/Debugging,(Misc) | Memory leak checking for LotusScript | Code that you can place at beginning and end of an agent to see if it is leaking memory | john@dalsgaard-data.dk | 10/20/1999 | |||||
Design Configuration,Replication | Autorefresh all view indexes | Automatically refreshes all view indexes each night. | Jamie Magee | 07/22/1999 | |||||
Design Configuration,(Misc) | Change all scheduled Agents to Run on different Server name | R5 - Administrator Assist Moved/replicated countless databases from old servers to new. Servers were named differently. Had to fix all scheduled agent to set correctly to run on new server. | Suzy@viperss.com | 01/21/2002 | |||||
Diagnostics/Analysis/Debugging | Make the loser the winner | Agent to promote the loser of a replication conflict to be the winner | Kcpauli@usa.net | 02/13/1999 | |||||
Diagnostics/Analysis/Debugging | getopenfilename | Anonymous | 04/12/2001 | ||||||
Diagnostics/Analysis/Debugging,Email/PIM | Removes file attachments from Notes documents | Removes file attachments from Notes documents that are older than X days old. | Jamie Magee | 10/20/1999 | |||||
Email,Workflow | Mail-in agent | Script agent shell to process newly arrived mail documents. Just plug in your own processing code. | Jamie Magee | 12/15/1998 | |||||
Email/PIM | Remove Attachments from Selected Docs | Anonymous | 10/17/1999 | ||||||
Email/PIM,Website Tools,Workflow | getQualifiedHostName(serverName) | Given a serverName, finds the server doc and returns the HTTP_HostName field for use in the prefix to any URL related to that server. | Jamie Magee | 10/01/2001 | |||||
Error Handling | Debug Web Agents with useful error messages | Displays exact error and line number on browser for QSA and QOA | Jamie Magee | 12/15/1998 | |||||
File Input/Output | Text Exporter | haughton@ifrc.org | 05/12/2000 | ||||||
File Input/Output | export to text | Exports a view to a textfile which can be used in Excel | brigitte | 06/08/2002 | |||||
File Input/Output | Import from Excel | Import excel Spreadsheet into a view and will update the phone number is the document already exists | Anonymous | 08/17/2000 | |||||
File Input/Output | File Import Agent | imports attachments at once | kamil.isik@domco.de | 05/10/2002 | |||||
File Input/Output | Export to Excel | Will export view to excel and format excel sheet | Anonymous | 08/17/2000 | |||||
File Input/Output,Reporting/Searching | Export to text file | Mackie | 01/15/1999 | ||||||
File Input/Output,Reporting/Searching | ExportView | Anonymous | 03/04/1999 | ||||||
List Processing/Sorting | Sorting and searching routines | Selection sort, binary search, and merge-sort routines | Les Szklanny | 12/15/1998 | |||||
List Processing/Sorting | QuickSort | Sorts any array via a combination of Insertion Sort and Quicksort. | Lotus | 12/15/1998 | |||||
List Processing/Sorting | Array Manipulation functions | Commonly used functions for array manipulations: Explode, Implode, AddValues, RemoveEntries, RemoveNthEntries | Joseph Francis/IBM | 12/17/1998 | |||||
List Processing/Sorting | isInArray function in LotusScript | Returns true if string is contained in the array | Jamie Magee | 12/15/1998 | |||||
List Processing/Sorting,Numeric Processing | Queue, stack and enumerator | The very-most-basic functions of an object queue, stack and enumerator. | Paul Everett/IBM | 12/17/1998 | |||||
List Processing/Sorting,Numeric Processing,(Misc) | Array functions - complete set | 68 functions for sorting, searching, hashing, moving, copying, adding, deleting arrays | http://philippe.lord.md/ | 09/21/2001 | |||||
List Processing/Sorting,RDBMS Integration,Reporting/Searching,User Interface (Web),Website Tools | Matrix class for DBMS/Web table data | Allows retrieval, collation, cross-tabbing, sorting, normalization, HTML conversion, etc. of tabular data from RDBMS or Notes view. | Jamie Magee | 12/29/1998 | |||||
List Processing/Sorting,User Interface (Notes) | Extract text from Notes table cells | Programatically searches for the tab and line feed characters that separate the cells of a Notes table. | Lotus | 12/15/1998 | |||||
Numeric Processing | extensive numeric value | Alexsandre - aandrade@arboll.com.br / Samantha - samantha@arboll.com.br | 05/12/1999 | ||||||
Numeric Processing,Security | Credit card validation function (ROT13) | Returns true if a string is a valid credit card number. | Jamie Magee | 12/15/1998 | |||||
OLE/ActiveX Integration | Automate Outlook Mail From Notes | Rlatulippe@romac.com | 01/27/1999 | ||||||
OLE/ActiveX Integration | Word Doc Create | Creates a MSWord doc with header block from Notes field data | Mackie | 03/19/1999 | |||||
OLE/ActiveX Integration | OLE/ActiveX | We have used "Olectra" as an Embeded Object to get a graphical display of charts. The values are passed to the properties of the object. The graph is displayed by calling the form containing the embeded object using ws.composedocument. | jaideep_pv@yahoo.com | 07/10/2001 | |||||
OLE/ActiveX Integration,User Interface (Notes) | Prevent large attachments | Since I couldn't prevent a person from attaching a large file before the document is saved, I ended up putting this code into the PostSave event. I say, let the person save the doc, then interrogate the data, and if the file is too large, oh well, see ya..... I give them a message. I found that I have to close the UI instead of allowing users to stay in edit mode, as there's some residual pointer left over. Sometimes the pointer or image shows up as if there is an attachment, but errs out when you click on it. This also takes into account multiple attachments, and removes only the ones that are over the limit. Enjoy, Keith Blankenship | k1blankenship@charter.net | 09/13/2002 | |||||
RDBMS Integration | Notes R4.5 LotusScript functions for synching an ODBC source with a Notes view. | Notes R4.5 LotusScript functions for synching an ODBC source with a Notes view. | Eric Koeler ekoeler@panix.com | 04/19/2000 | |||||
Replication | Prevent save conficts | ssaavedra@anp.gov.br / pmello@anp.gov.br | 06/15/1999 | ||||||
Reporting/Searching | Create new Data Source for text file | Put in button to create new data source automatically | Mackie | 01/31/1999 | |||||
Security | Copy ACL | Anonymous | 12/31/2001 | ||||||
Security | Detecting Roles in Script | Ben Vander Veen | 11/10/1999 | ||||||
Security,User Interface (Web),Workflow | ACL adjustment from browser | Zvonko.Paunoski@icn.siemens.de | 10/07/1999 | ||||||
Security,Workflow | Check roll in QueryDocumentDelete to prevent deletions | Checks to see if the current member has the DBManager Roll and can therefore delete documents. | Rlatulippe@romac.com | 08/26/2000 | |||||
String Handling | Word | Just like @word | mni | 09/10/2002 | |||||
String Handling | How to generate a random password for notes or web users. | Jannan | 02/14/2001 | ||||||
String Handling | ReplaceSubstring | jpotts@navsystems.com | 06/11/2001 | ||||||
User Interface (Notes) | Luhn credit card algorithm | Validates a credit card number | lotusnotes@mailcity.com | 04/19/2000 | |||||
User Interface (Notes) | Table generation (RTF) in LotusScript | Dynamically create a RTF table with user defined rows, columns, column width, font, size, center, italic and/or bold text attributes | Carlos Matos, Fusion Systems Japan | 12/15/1998 | |||||
User Interface (Notes) | Attach doclinks to all children | Attach links to all "children docs" in parentdoc automatically | Mackie | 01/31/1999 | |||||
User Interface (Notes) | Progress Bar class | Class file implementation of the code to control a Progress Bar. | Ian Sherwood | 03/26/2001 | |||||
User Interface (Notes) | Progress bar | Displays and controls the Notes progress bar from LotusScript | Mark Dixon/Ives | 12/21/1998 | |||||
User Interface (Notes) | Percent complete in status bar | Displays a percent complete progress indicator in the print area at the bottom of users screen | Jared Knapp | 02/13/1999 | |||||
User Interface (Notes) | Anonymous | 10/19/2004 | |||||||
User Interface (Notes),User Interface (Web),Workflow,(Misc) | Non-Notes Doc Links | jawsct@home.com | 05/17/1999 | ||||||
User Interface (Notes),Workflow | Lock a document that is being edited? | How do you lock a document that is being edited? Eric Koeler has written a set of functions for doing this in Notes 4.x. You can grab the code and a code sample at his web site. The Lotuscript code works by adding a lock field to the document the user wishes to edit and then immediately saving the document; when other users try to open the document, they will see that there is a lock field so they cannot edit the document. This technique will only work if the database is on a single server (no replication). There is also a small chance for a race condition if two users manage to read a document simultaneously without the lock. Finally, if the user's system crashes while editing this locked document, the document will remain locked unless you implement some sort of emergency unlock mechanism. | Rlatulippe@romac.com | 04/19/2000 | |||||
User Interface (Web) | Get paramter value from query string | Niels Ull Harremoes | 02/03/1999 | ||||||
User Interface (Web),Website Tools | Image dimensions | Gets dimensions of a JPEG or GIF image | John Toton | 02/12/1999 | |||||
Website Tools | hit counter | Domino servers die native Notes hit counter | Anonymous | 09/08/2001 | |||||
Website Tools | Suppress Domino agent HEAD tags | Allows your agents to insert your own HEAD element tags such as TITLE and META. | Bruce Elgort (BruceElgort@PalmBuilder.com) | 12/03/1999 | |||||
(Misc) | Adding a Variable into String for LotusScript Search Method | Adding a Variable into String for LotusScript Search Method | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Set a dialog box to "always on-top" | Editor's Note (11/30/95): This example uses 16 bit Windows API calls and will not work in the 32 bit. For the same functionality in the 32 bit version of Word Pro, change the Declare statements to the appropriate 32 bit Window API call. Place the following declarations in the Globals, and the Dialogevent code in your dialog box object, and the dialog box will be set to be always on top, even when you switch to another application. Note: this will probably not work with dialog bars, since they are child windows of Word Pro, not top level windows like normal dialogs. Note2: This will be slighly easier (and more robust) when the GetHwnd method is implemented for CustomDialog. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Use FrontEnd Classes to pass Current Document to Backend classes! | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Factorial of n using recursion | Returns the factorial of a number n using recursion | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesDocumentCollection class | The example below uses GetFirstDocument and GetNextDocument to display the title of documents in the Intermediate view that contain the word "NotesDocumentCollection". | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Move Orphans to Folder | Finds orphan documents and moves them to a folder | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Subtracts one array from another! | This script takes two arrays and subtracts the smaller array from the larger array. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | QueryDocumentDelete script to prevent deletion of a document marked as Permanent | After I accidentally deleted an important document in one of our databases, I wrote this little script to prevent it from happening again. This script will disable deletion of any document (even by managers)marked as "Permanent" in a keyword, checkbox field on the document form. This agent runs in the QueryDocummentDelete event of the database. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Check for down servers | Checks for Down Servers | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to WIN32 to Utilize Windows Get File dialogbox. (Win95 Version) | Brings up the Win95 get file dialog and allows you to select a file. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Build a Table in Excel from Lotus Notes. | Simple code that builds a pivot table in an existing Excel spreadsheet | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Five Reusable LotusScript Functions for Working with Lists | When working with lists, the same functions seem to come up time and time again. We thought that it would be useful to group some of these LotusScript functions together so that you could find them in a single resource. Here are the basics that are covered: 1. Remove from List 2. Add to List 3. Remove Item from List 4. Entry in List 5. Remove Range from List | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Auto Refreshing a UI document from a back end document. | The original goal was to open a UI doc, and keep it open while periodically refreshing the fields from the back end doc. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | PostOpen Code to check we have correct Parent document | Checks the selected document from which we are creating reponse to ensure we have the correct parent form. If not Display error message and close response document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent for Encrypting Documents | Agent for Encrypting Documents | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sampling of SQL Statements that Can Be Used with Notes | SQL commands that can be used with Notes? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Code for calculating business days in LotusScript. | Calculates the business days | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to access the Clipboard in Notes? | This function (thanks to Manfred_Doerwald@IDG.DE) calls Win32 functions to put a field in the clipboard: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Mail a Lotus Notes document link through MS Outlook. | Mails Link Through Outlook. This action button will create a link on the fly that will be saved to the users C:Drive as link.ndl then it will call the Subroutine AutomateOutlook. This routine will display the outlook mail modal with the link embedded in the body of the mail template. The user then fills in the To: field on the modal and sends the link. The Recipients of the mail must have Lotus Notes on their machine. When they click on the link in their Outlook mail. It will then launch Notes and the link. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a database from a template | Creating a database from a template | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using the LotusScript Data Object (LS:DO) Error Methods | The following information explains how to use the LotusScript Data Object (LS:DO) error methods. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Conditional Branching: The ForAll Statement | The ForAll statement was made especially for arrays. It has the ability to operate on all the elements in an array without you knowing how many elements are in the array. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you operate on the currently selected documents in LotusScript? | The ... part in the code below marks where you can put code to access the active document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Accessing Notes Session Properties | Using the object.property syntax, you can access all the session properties. Let’s look at an example: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Limit deletes in QueryDocumentDelete to response documents only | Checks to ensure that only response documents are being deleted. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Add together two one-dimensional arrays! | Takes two arrays and builds them into one. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Performing a Search | Performing a Search | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Notes R4, you are attempting to add a user's name to an Access Control List (ACL) via LotusScript. When you add the user's hierarchical name to the ACL via the NotesACL New method, however, the user is still unable to access the database. | Add names to the ACL via LotusScript | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesACL Class | This example will ask you for the name of a role. Once the role name has been entered, all of the names in the role will be displayed. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Display a Document, that Isn't the Current Document, w/ LotusScript | Illustrates one way to get a handle to a particular document (via a backend method) and then make the document the new UI document that displays on the screen. Specifically, the application performs the following actions: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | AlphaQuickSort function which sorts the elements in the array. | This example asks the user for input of names and assigns each name to an element in the array. On NULL input it calls the AlphaQuickSort function which sorts the elements in the array. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Open word and run one of the Macros. | Opens Resume.doc on c:\ and runs a macro called macro1. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Export a Lotus Notes document to excel (creating the excel spreadsheet) | We use the following code to export a lotus notes document to excel (creating the excel spreadsheet). | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Directing New Users to a Special View | In R4.5 you can write a script that executes whenever a user opens the database. For example, you might want to direct new users to a special view, while letting old users proceed straight to the default view. To do this, write a script for the database object's Postopen event, as follows: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Search for a Date Value When Using the GetDocumentByKey Method | Using the Format function, you can store the date in a mm/dd/yy format, which zero-fills the date and allows for proper searching. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Display Help Dialog Box | Displays a Help Form, use with button and hotspots | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determining the End of a File with LotusScript | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Update a field in all the response documents from a field that has changed in the parent document. | The following LotusScript which will take a value in the parent document and push it down into all the response documents. Place the script in the Querysave event of your parent form. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a New and Modified | Creating a New and Modified | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Inport From ODBC (Tech Incident Database Example) | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Directing New Users to a Special View | This script executes whenever a user opens the database and directs new users to a special view, while letting old users proceed straight to the default view. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using LotusScript for Unattended File Import in a Notes View | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | This script imports information from documents in another database. | This script imports information from documents in another database. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | MS Excel Import, using OLE | Here's an excel import, using OLE, that can be fairly easily modified to import anything that has OLE classes registered (it can be easily adapted to read every MS Project file in a directory, and pull out each task separately as a Notes document). | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Quicksort one less recursive call | Does a quicksort on an array! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Create a Document with "Store Form in Document" via LotusScript Back-End | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Generate Response Docs in LotusScipt | This view action will call a LotusScript agent to generate response documents on an entire database (all it's parent docs, that is). This formula can be found in the World Wide Country Database as a view action called "Add Fund To Countries". This view action first does a lookup on the Fund Library database. The user selects a new fund fromn this library and VIOLA! All the country documents will have a new fund doc (this is the response doc). This action calls the agent to do the actual creation of the response docs. The agent is hidden and is set to run on all docs in the view. The agent name is called Add Fund and it's event is set to INITIALIZE. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a Search Agent - Challenge* | Creating a Search Agent - Challenge* | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API call to NNOTESWS.DLL to display Windows Browser | Uses a call to a function in the notes DLL to display the windows browser | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Compare Dates Using LotusScript | It seems as though comparing dates would be a straight-forward task; however, it is actually rather complicated. A quick, easy approach is to use simple comparison operators, but via this approach - the question remains of how you get the dates from Notes into the back-end and then manipulate it once it is in the script. The following instructions and sample code, however, demonstrate how you can do this: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Update a field in response documents after it is changed in the parent document? | How do you update a field in response documents after it is changed in the parent document? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | 16 bit free resources and available memory | Returns Free Resources on 16 Bit System | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Calls to NNOTESWS.DLL to Display Progress Bar Along the bottom. | Displays Notes Progress Bar. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Low-level, self-contained, LotusScript functions, | This file contains somewhat low-level, self-contained, LotusScript functions, as well as some global constants used by these Functions. To use these Functions, add the following line to the Declarations section of your script module: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API calls and declarations to access the Win Registry | This will return the path of the Notes Data directory | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | GetTarget Function: Gets target db as current db. | Given the current database and a new filename will return that filename as the new current database if it is on the same server and path. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Equivalent Rightback and Leftback functions in LotusScript | Equivalent Rightback and Leftback functions in LotusScript | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Open a Navigator in Notes R4 via LotusScript | How to Open a Navigator in Notes R4 via LotusScript Product Release: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Inport from a Word Document! | This script imports information from a Word document into a Notes document while standardizing the doc's formatting. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | FTSearch | This example will find any documents in the Beginning view that contain the string Method* using the view method FTSearch . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Searching the Web | Searching the Web | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Exchanging items values between documents. | EKIPUSH.LSS Function Library Notes R4 LotusScript functions for exchanging items values between documents. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Open a Freelance Presentation via Automation | This routine puts up a common dialog that prompts the user to select a Freelance presentation to open. If the user selects a file then it creates a Freelance automation session and opens the requested doc. It chops up the name returned from the dialog into file name and path parts for the open command. There may be a more standard way to do this but I couldn't find it. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Pushing changes down the hierarchy | The following LotusScript which will take a value in the parent document and push it down into all the response documents. Place the script in the Querysave event of your parent form. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Removing an Item from All Documents in the Database | Removing an Item from All Documents in the Database | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Something to watch out for with Str$ | This is documented, but I totally missed it, and I figure others might as well. In Ami Pro, we didn't really have to worry about data types; it was all handled internally for us. But with LotusScript, we sometimes need to do some conversions. An example is changing a number over to it's string representation. For this, you usually use Str$. But watch out! Str$ returns a leading space. So, Str$(1) actually returns " 1". Usually this won't matter, but in some cases it can come back to bite you. Here's some example code where Str$ doesn't work as expected because of the leading space... | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Refresh Authors or Readers Fields Updated via LotusScript Back-end | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Force form check on creation of response doc. | This checks the current form you are on and ensures that it is viable for the response form to be created | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you remove an element from a Textlist field? | How do you remove an element from a Textlist field? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | FTP Mirror | Created By: Teresa Deane on 02/07/96 at 03:59 PM Category: Miscellaneous Minimum required Notes: Notes 4.0 Author: Teresa Deane Company: Iris Associates E-Mail Address: InterNotes@iris.com Description of the Agent: This agent refreshes pages with attachments. It should be run in the background preferably after the refresh agent has run. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retrieving the Names of all the Columns in a View using NotesView property, Columns | The example below will retrieve each column in the Intermediate view. The column title will be displayed if it exists, otherwise the user will be notified on the lack of a column title. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Building a Searchformula$ using several fields amd @IsMember | Builds a search where Form = "ServerAdmin" and either of the DefaultClass field or OtherClassNames list field = the variable sClass | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Lotus Notes OLE Automation with MS Excel | This demo uses OLE automation to create Notes mail from within Microsoft Excel, sending cell values in the body of the mail message. This is a great and easy-to-write example of how to use the Notes client with MS Office products, using the best of both products. You can cut and paste this VBA code example into Excel. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Create error handling class | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | NotesUIDocument method, Save | Save the on screen document that is set to a NotesUIDocument variable, use the NotesUIDocument method, Save . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determine the number of seconds, hours, minutes, days and weeks between now and a particular date? | The following sample script determines and displays the numbers of seconds, minutes, hours, days and weeks between now and both the start of the next year and the start of the current year. You can modify the script to compute the difference between the current date and any user-defined date. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to User32 to get and Set Active Window Title | Gets the Active Windows Title using WIN32 library calls. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesDocument property .Authors | Retrieves the authors of a given document in a Notes document by using the NotesDocument property . Authors . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Factorial Function | Receives nFact as the user input plus additional parameters for displaying each factorial between zero and nFact as well as the number of recursive calls. The function returns the factorial of nFact . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Social Security Format | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | How to Delete Profile Documents | he only way to delete a profile document we've been able to find is to use the remove method in the NotesDocument class. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a Domino agent to count the number of hits on a web page | Creating a Domino agent to count the number of hits on a web page | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Accessing Notes View Properties | You can access Notes view properties using the NotesView class properties. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to Retrive Local Time (Win95 & WinNT) | Uses the function GetLocalTime in the Kernel32.DLL to retrive Time. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Examples: EnableRole method for a single user | This script enables the Auditor role for Bill Ehrhardt, in the database DISCUSS.NSF. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | AlphaQuickSort Function | Sorts an array of alphanumeric elements. The function returns an array of the elements sorted alphanumerically. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Date Routines in LotusScript | This routine returns the first date a specificed weekday falls in the year when passed a year and weekday. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Calls in Script Library to write to and from Windows Clipboard | Script to write to the windows clipboard. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Update the parent document from response doc. | It will check the document is being saved and if a field exist called $Ref (which is on reponse docs) it will look at the parent and change the "Status" field to "Updated" | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent to copy all documents from a Target Db to your Db | Copies all documents from another database to the current database | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to use LotusScript to Mail a Memo with a Doclink to the Original Document. | How to use LotusScript to Mail a Memo with a Doclink to the Original Document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Auto-launching attachments in Win32 | Launches an attachement. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | LotusScript Notes AppendRTItem Method - Copy RichtextItem Font Information | LotusScript Notes AppendRTItem Method - Copy RichtextItem Font Information | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Documentation and implementation notes. | Documentation and implementation notes. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Flat file import | The routine demonstrates flat file importing with LotusScript. It shows how to read a comma separated file. To make it more interesting it then merges the results into existing records in the database. These records are keyed on a unique id. You should be able to easily modify this routine to create instead of merge or perhaps do both depending on if the record already exists or not. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determine the Number of Rows in a LS:DO Result Set in Notes R4 | Fetch all the rows using the LastRow method and then use the NumRows property to return the number of rows in the result set. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to View on the Screen a Rich Text Item Added via LotusScript | How to View on the Screen a Rich Text Item Added via LotusScript | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Updating the backend NotesDocument in the QueryOpen Event. | When the QueryOpen event is triggered, the Notes document is already loaded into the memory but nothing is displayed on the screen yet. You can take this chance to change the values of some of the fields. For example, you can count how many times a document has been opened (or who opened it) without having to put the document into edit mode. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Use LotusScript to Prevent a User from Opening a View | How to Use LotusScript to Prevent a User from Opening a View | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Simple Test for Reading from an ODBC Data Source Using LotusScript | The following test script will evaluate whether you can read from an ODBC source using LotusScript | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call, How to Make Windows API Calls, Taking the Windows Version into Account | Windows API calls usually differ, depending upon the Windows version that is in use when the call is made. The following example illustrates how to call the Windows API GetPrivateProfileString function while taking into account the Windows version in use: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Conditional Branching: The Select Case Statement | The Select Case statement allows a program to conditionally execute statements based on any number of conditions. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Automated Outlook Mail agent! | This agent takes the e-mail field from selected documents and displays the MS Outlook mail template with the To: Field populated with those addresses. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Move Orphan documents to Orphans Folder | Moves all Orphan Documents to a folder called Orphans | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you do a data import/merge using Lotuscript? | How do you do a data import/merge using Lotuscript? This function can be placed in an action button in a database: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Script Libraries - Examples | Script Libraries - Examples | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using LotusScript to Write to a Non-Notes Database | Using LotusScript to Write to a Non-Notes Database | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Check to see if this is an existing ID to allowing user to continue | Check ID field to ensure that the ID being eneterd does not already exist. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Delete all orphaned response documents | Deletes all Orphaned response documents | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | What are Properties in LotusScript? | Properties in LotusScript? How are they used? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Import information from a Word document into a Notes document | This script imports information from a Word document into a Notes document while standardizing the doc's formatting. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Importing text file into notes using Lotus Script | Create a price list in notes from a comma separated file. Each line was one document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Function GetParentDocument( doc As NotesDocument ) | This is a recursive function. It returns the main document at the top of a thread. An example of a thread is a main topic with multiple response documents. Passing the NotesDocument object reference variable to this function would return the main topic at the top of the thread. Call this function using GetParentDocument(doc). | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Hierarchical ReaderNames Lookup Implementing control of hierarchical ReaderName relationships in Notes R3/4 | Hierarchical ReaderNames Lookup Implementing control of hierarchical ReaderName relationships in Notes R3/4 | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Moving file attachments added via the web to a RT field using $$QuerySaveAgent | Moving file attachments added via the web to a RT field using $$QuerySaveAgent | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Fibonacci Sequence of n using recursion | Returns F ibonacci Sequence of n using recursion | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Refresh a View from within a Document Using Script in Notes R4 | To refresh a view from within a document, you must perform both the backend NotesView Refresh and the frontend NotesUIDocument ViewRefresh methods (before exiting out to the view) | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a Search Agent to Search the Internet | Creating a Search Agent to Search the Internet | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Working with the Windows API | In developing advanced applications, it's often important to access functions of the operating system. This is an example of calls to the registry. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retrive one level of Child Documents from Parent Documenst using GetChild. | The example below will demonstrate how to retrieve information from a parent document, along with any child (response) documents associated with the parent document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Select Case with Enum values | You can get this to work by treating the Enums as strings. In particular, see the modified script below. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Update Oracle records via LotusScript agent | This database keys on a record in Oracle and then updates the record from the notes Document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Displaying Domino hit Counter Values in Profile DocumentsAuthor | The profile documents are a new feature requiring Notes 4.5 to use, set, display, etc. There is no way I know of to select profile documents for use in a view. However, it was fairly simple to write an agent that displays all the counter fields in a profile doc ument. The agent can also be used from the web. Here is the sample agent I have been using (long lines wrapped and you must "unwrap" them to try the agent: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | EKDOCLOC.LSS - Function Library | EKDOCLOC.LSS - Function Library | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Pulling a Value From Current Table Cell With LotusScript | The following script retrieves the contents of the currently selected cell, rounds it to two decimals, and then writes is back to same cell. This assumes that the data in the cell is numeric. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Can you start a program in Notes and wait for it to finish? | Starts a program in Lotos Notes | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | QueryDocumentDelete Event. When a document is selected for deletion delete all response and response to response documents as well. | If a document selected for deletion has response it warns the user that those will also be deleted. It then pushes all response documents and response to response into a delete folder. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Change the Caption on a Multi-line LotusLabel in LotusScript | The following sample script places the caption "This is a test. This is only a test." on two lines. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Conditional Branching: The WHILE Statement | While loops execute code conditionally. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Check via LotusScript Whether a Document is Open in Preview Pane | How to Check via LotusScript Whether a Document is Open in Preview Pane | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Share scripts among elements in a database | Share scripts among elements in a database | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Selection Formula for document collection used in db.search | This formula will be used by db.search method to select documents by form and by fields that are equal to some variable sPrimary. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Reference other databases | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Error 4000 | Notes Error.No mail sent. | Anonymous | 03/12/2002 | |||||
(Misc) | Validate Social Security | Try the following code to validate your social security number. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retriving Parent and Child Documenst from a View | This example demonstrates how to retreive a parent document from a view, and then proceed to retreive information from all of the Parent's child documents. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesDBDirectory class | The example below retrieves all databases included in the data directory and any directories below the data directory, and displays their titles. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesUIDocument property, EditMode | Forces the on screen document into edit mode, using the NotesUIDocument property, EditMode . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determine if a document is a profile document | With the advent of profile documents in Notes 4.5, it will become neccessary to determine if a document is a profile document or not. A new NotesDocument property, IsProfile, will return True if a document is a profile document, and False if it is not. To use IsProfile, set the document in question to a NotesDocument object, and retrieve the value in the property. Syntax variablename = notesdocument.IsProfile The example below will determine if this document is a profile document or not, and display a message with the result. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent to set Readers field security using IsReaders property. | This agent is used to reset a readers field once it has been changed to a type text. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retriving Parent Documents with Child and Grandchild Documents | This example demonstrates how to retrieve information from a parent document in a view, and all of the Parent's child and grandchild documents. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Delete a default zero after a form is opened when the field is being calculated in another field | This code is used to to delete a default zero after a form is opened when the field is being calculated in another field. This code should go in the Postopen mode of the form. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a Search Agent | Creating a Search Agent | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Credit Card Verification Formula | A Luhn formula (Mod10) for credit card number verification, The main purpose of this algorithm is to avoid data entry errors, but it can also be used as a security tool. But BEWARE, it's a very weak security tool, that anybody can crack ! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you do a data import/merge using Lotuscript? | How do you do a data import/merge using Lotuscript? This function can be placed in an action button in a database: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating Newsletters | Creating Newsletters | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a database | Creates a database | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Arrays and Redim | Arrays, like variables, hold values of a single data type. Unlike variables, however, arrays can hold multiple elements of the same data type. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to make the "loser" of a replication/save conflict be the "winner"? | When you select the "loser" document and run this agent, it will be promoted to be a replication "winner". You can then delete the original "winner" document. Put this code into an agent that runs on selected documents: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | What are the Unix syntaxes for calling DLLs from LotusScript? | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | If you use the LotusScript Evaluate statement with certain @functions, the result is not what you expected. | The Evaluate statement is designed to work with non-UI @functions only. The following @functions cannot be used with the Evaluate statement: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to NNOTESWS.DLL to get and Set Active Window Title | This example demonstrates the declaration of the NEMSetWindowText function located in NNOTESWS.DLL file: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Adding an Item to All Documents Using AppendItemValue of NotesDocument | Adding an Item to All Documents Using AppendItemValue of NotesDocument | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | 16 bit GetPrivateProfileString function call to get ScreenSaver and WallPaper in Windows. | Returns Screen Saver and Wallpaper settings on Windows system. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Implode Function | This function takes in a Notes Item in the signature line and returns the item as a string value the values are separated by a comma but that can be changed to any delimiter the user wishes to use. Additional checks for author and such may also be incorporated if the developer so feels. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Phone # Lookup | Users are prompted for a first and/or last name to lookup. The script searches local and public address books and returns each name found in it's own window displaying the full name, department, and office phone number. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Mail notification that a new document was created from a web client. | Web mail notification that a new document was created from the web. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Purge Agent | Created By: Teresa Deane on 02/07/96 at 03:58 PM Category: System Minimum required Notes: Notes 4.0 Author: Teresa Deane Company: Iris Associates E-Mail Address: InterNotes@iris.com Description of the Agent: This agent manages the database size based on selections in the administration note. It is set to run at 1:00AM nightly. It is a system agent which ships with the Web Navigator template. Please refer to the Web Navigator Administration Guide for more information. Agent Script: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Compute With Form | This agent runs on a selected document. When run it "recomputes" the form. I use this a lot when I need to change something like a reader field that is computed when composed. Instead of adding an additional readers field to a form and then modifying each form this will allow you to recompute the values of such fields after you have changed the field formula. This is handy especially if you forget to give yourself access to certain fields (in which case you have to run this at the server) but it can save a lot of time and heartache. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | What's the date of the Last Thursday in November? | In the following function getdateByWeekDayFromBack(1998,11,1,5) returns the last Thursday of Nov. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Windows directory | Returns the Windows directory | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sort - QuickSort, IBMs | The following is an example of how to use LotusScript code within NotesViP to sort an array. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Add Rich Text thru the UI | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | How to Append One RTItem to Another via LotusScript Without a Save Prompt | How to Append One RTItem to Another via LotusScript Without a Save Prompt | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Prevent deletion of document if response exist | Checks document to be deleted and prevents the deletion if a response exist | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Conditional Branching: The FOR Statement | The For statement gives you the ability to execute a block of code a certain number of times. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Equivalent LotusScript Explode function | Here is an example I use for explode: Lineinput is the string to be parsed out. Sep is the separator (unfortunately this version only supports one character separators) Linearray is the array which is where you want your values. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | ODBC using LS:DO to push to an Oracle database. | Pushes LotusNotes data to an Oracle database! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sort - Quicksort Algorithm recursive | Sorts an array of data using the recursive Quicksort Algorithm | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Updating Oracle database from Lotus Notes | You can use the ODBC (Open Database Connectivity) Version 2.0 standard to access data in non-Notes databases. Using formulas or scripts embedded in Notes objects, you can integrate the data from many external databases into Notes applications. For example, a customer call-tracking application in Notes can access customer financial data from an ODBC-compliant relational database management system. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Create and send mail | In LotusScript, to send a message in Notes requires the following type of code: Sub Click (source as Button)' a button to send info with... | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | In one form, the user can select as many as three subforms from the list of all available subforms. | Where do we get a list of subforms when we don't know from one minute to the next how many there are or what they are called? Simple, we use this LotusScript routine | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Determine if Optional Arguments Have Been Provided for a Method. Product Release: LSX Toolkit 2.0 | How to Determine if Optional Arguments Have Been Provided for a Method. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Doing a DBLookup using LotusScript | Notes support services has one....it uses a dummy form that has a field for each of the parameters in a @dblookup...the dblookup field is a computed field, and you should do the following: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to Add Shortcuts to the Win95 Desktop | This script sample will add Shortcuts to the Win95 Desktop. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Fibonacci Sequence of n using iteration | Returns Fibonacci Sequence of n using iteration | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Update IsReader or IsAuthor agent when the field has been changed to a text field. | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | API call to NNOTESWS.DLL to display Progress Bar | makes API calls to display progress bar | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Copy one Richtext field to another | Copies richtext field from docA and writes it to docB | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using UnprocessedDocuments on all newly created and modified documents, to modify the Status item of each document it processes. | This agent script runs on all newly created and modified documents, and its purpose is to modify the Status item of each document it processes. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sending an e-mail message to the author of the current document | Sends and E-mail to author of current document! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Check and set a File's Attributes | You can check a file's attributes and then set an attribute using LotusScript. For example, the following code checks whether a file is Hidden, and if it is, sets its Hidden attribute | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent that prints mail as soon as it arrives | Agent that prints mail as soon as it arrives | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Setting values in several documents without opening them depending on a change in a different document | checks docs created with a second form and does a collection depending on a field value then sets the status field of teh collected docs to closed. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determine whether a particular field in a form contains an object? | HasItemObject checks whether the field that is passed to this function contains an Object and then returns either True (hasObject) or False. A sample script is provided below. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Finding the Amount of Free Space on a Drive Using LotusScript | Listed below is a LotusScript that makes the necessary API call. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Check specified server until is responds | Checks for server response | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using LotusScript to Read from Non-Notes Databases | Using LotusScript to Read from Non-Notes Databases | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using UnprocessedDocuments on all unread documents, to put unread documents into a folder. | This agent script runs on all unread documents, and its purpose is to put unread documents into a folder. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | What is the Difference Between Type and Class in LotusScript? | A detailed description of both Types and Classes is below. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Converting C Strings To Lotusscript Strings | When calling Windows API functions, you usually have to pass in a fixed length buffer in which the API call returns a null-terminated (C style) string. To convert this string back to a normal LotusScript string, use the Instr function to search for Chr$(0). | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Updating a UIdoc in Read Mode with a DialogBox | For a variety of reasons, such as formatting, you want to keep a document in read mode, but you need to collect input from a user and update the document they are currently reading. In this example, we want to keep the user in read mode but update the document | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating Newsletters - Challenge* | Creating Newsletters - Challenge* | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sleep or Wait code | 'Puts the app to sleep for the given number of milliseconds | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you find out what Roles a user has in the current database? | This function will give you a list of all roles a user is in, even if the user is in nested groups which are listed in the ACL. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to NNOTES.DLL to get User Name | Makes an API call to retrive the Current User Name | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | ODBC Connection With Message Box to ask for ODBC DATA Source. | During ODBC Connection gets Data Source from User. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Working with Embedded Objects and Environment Variables | Working with Embedded Objects and Environment Variables | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How do you change the new mail tune under NT? | How do you change the new mail tune under NT? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | OLE from Notes to Excel via LotusScript | Copies data from Notes to Excel using OLE automation | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using UnprocessedDocuments to iterate through a view and , if the Approver item contains the current user's name, it sets the Approved item to "Yes." | This view action script allows a user to approve multiple requisitions at once by processing the currently selected documents in the Requisitions view. UnprocessedDocuments returns the documents currently selected in the view. The script iterates over each document and, if the Approver item contains the current user's name, it sets the Approved item to "Yes." | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | EKDOCLOC.LSS - Documentation and Sample Usage | EKDOCLOC.LSS - Documentation and Sample Usage | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a New and Modified - Challenge* | Creating a New and Modified - Challenge* | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to update a field on parent when a reponse doc has been deleted | It will check the documents that are being deleted and if a field exist called $Ref (which is on reponse docs) it will look at the parent and change the pro field to "" | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | When Looping Through a ResultSet, While.NextRow Is Not Recommended | Instead of While.NextRow, use Do at the beginning of the loop and the condition at the end, with a statement such as "Loop Until res.IsEndOfData." | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Refresh Agent | This agent refreshes non-private http pages nightly at 3:00 AM provided that they have not been brought in already that day. This is a system agent which ships with the Web Navigator template. Please refer to the Web Navigator Administration Guide for more information. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Scheduled agent that attaches file to documents. | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | How to Add Carriage Returns to a Text Field via LotusScript in Notes R4.5x | How to Add Carriage Returns to a Text Field via LotusScript in Notes R4.5x | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | One time push of Notes Documents to Oracle Database | This agents write notes document into an Oracle database using ODBC | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesUI classes | You can use the NotesUI classes to create a document on the fly . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Examples: EnableRole method for multiple users. | This sub enables one role for multiple people in an ACL. Its parameters are a NotesACL object, the name of the role to enable, and an array of strings that represent user names. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Factorial of n using iteration | Returns the factorial of a number n using iteration | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Manipulating Rich Text | Manipulating Rich Text | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using LotusScript to Read from Non-Notes Databases - Challenge* | Using LotusScript to Read from Non-Notes Databases - Challenge* | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Queydocumentdelete event | Will warn user of deletion of seleted documents | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Add Rich Text thru the UI no views used in code! | Refresh the current UI doc when an attachment is added. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a Rich Text Field | Creating a Rich Text Field | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent used to create User Profile Documents From Office Profile Documents | Build a set of documents from information gathered from a different set of documents. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Button adds attachments RTF | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | Use LotusScript to handle ordinary text files | The following example script opens the lotus.ini file and prints out its contents to screen: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using a dialog box allow a manager to assign roles to a readers field on the fly to various documents | This code allows a db Manager to assign various roles on the fly to a readers field on the document. The roles are called from a (GetRoles) form that is used as a dialog box to allow th euser to select various roles in the ACL. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Average the elements in a one-dimensional array of integers | This Subroutine will take and array of integers and give you the average, sum and difference from average of the integers. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sort - Bubble Sort for a Document Collection | Sorts a Document Collection | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Filling Items with Dialog Box on Open of Document! | Filling Items with Dialog Box on Open of Document! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Find the Parent Document to a Child Document | In the script below, the child document is found using GetFirstDocument and GetNextDocument . You might ask yourself `Why not use GetNthDocument instead?'. The reason is GetNthDocument only works in documents in a collection, and we are working in a view! | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Using Lists in LotusScript | Lists are very powerful in LotusScript. You can use a list to get a multi-value field from a document and add the values to a list (thus ensuring uniqueness). You can then process many documents against the same list and when you are done, you will have a list of all of the values which appeared at least once in the set of documents you processed. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Error handling with Open | Error handling with Open | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | LotusScript Agent to Recalculate Documents on a Schedule | LotusScript Agent to Recalculate Documents on a Schedule | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Creating a document with Authors field using LotusScript | Here's some sample code showing how to set the appropriate properties on the field. This code is run from an agent in the initialize event. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to use @Formula in LotusScript. | How to use @Commands in LotusScript. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | 32 bit free disk space funtion call In Windows to check Freespace on Disk. | Returns Freespace on C: Drive | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Via LotusScript, Insert a Computed Subform Based on Preview Pane Status? | It is not possible to accomplish this completely in LotusScript, since LotusScript does not manipulate subforms. You must use of a formula in a computed subfield in addition to a LotusScript in the QueryOpen event of the form. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Use the backend class to manipulate the data exchange between a dialog box and the underlying document. | When NotesUIWorkspaceDialogBox brings up a dialog box, the backend class is always there whether or not the underlying document is saved to the disk or not. When you click OK on the dialog box, the Querysave event will not be called, but the Queryclose event is called. For example, you want to do some calculations based on user's input and passed the result to the underlying document or determine which field not to pass. You can use [ noNewFields ] , [ noFieldUpdate ] to accomplish this to a certain degree, but here a way to mix saved and unsaved items. This function performs SomeComplicatedCalculation( ) on the item "Year" and then removes it so it is not passed back to the document. In this example, year is set as a default value on the underlying document and may be changed in the dialog box; however, when the dialog box is saved the original default shouldn't be modified. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | This button script displays the sum of all OrderTotal fields in a database for one day. | Each record in the database has OrderNumber, Date, and OrderTotal fields. The script finds all the documents in the database, then uses a loop and a comparison of dates to limit processing to today's documents. For each document, the script adds the OrderTotal to a dailyTotal variable. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Handling a specific error | Handling a specific error | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | DeflateArray Function will remove all duplicate elements in an alphanumeric array (@Unique) | This example will take an array of elements containing duplicate names. The function DeflateArray will remove all duplicate elements and pass back the array as a variant. The array will then be formated into a string variable for display in messagebox. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Use the LotusScript NotesItem CopyItem Method | How to Use the LotusScript NotesItem CopyItem Method | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesACL and NotesACLEntry classes | The NotesACL class is used to give you access to a database's access control list (ACL). Once the ACL is accessible, NotesACLEntry can be used to retrieve all of the individual entries in the ACL using it's methods GetFirstEntry and GetNextEntry . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Get Data from an OLE Object via Notes LotusScript Front-End Methods | How to Get Data from an OLE Object via Notes LotusScript Front-End Methods | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Dialogbox calls a Form! | This script displays a document in a dialog box using the policy form whenever a user clicks the action button. The first layout region on the policy form is sized to fit in the dialog box. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Compact all local databases < 90% utilized | Checks all databases Locally and Compacts those that are less than 90% utilized. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | LotusScript substitute for @DBLookup | Ever wanted to do a simple @DBLookup in LotusScript? Here's the code to do it | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How can you tell if a view is Private? | There is no property in the view thtat lets you do this, but you can look at the design note for the view via this function: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | QueryDocumentDelete Event to prevent deletion of any document that contains response documents. | Disallows deletion of any documents that contains a response document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Preventing Orphan Responses | When you delete a main document, its response documents are not automatically deleted They become "orphan response" documents. To prevent users from creating orphan responses, have the database object's Querydocumentdelete event trigger the following script: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Add Roles To ACL | This formula uses LotusScript to add roles to the ACL of a database. Event = "Initialize". No other subroutines are used. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Determining if a Notes View is a View or a Folder using the NotesView property, IsFolder. | Determine if the object you are dealing with is an actual view, or a folder. To do this, use the NotesView property, IsFolder . IsFolder returns a value of 1, (True) if the object represents a folder, or 0, (False) if the object represents an actual view. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Doclinking Parent to Child A Notes formula for doc-linking a parent to a child in Notes R3/4 | Doclinking Parent to Child A Notes formula for doc-linking a parent to a child in Notes R3/4 | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Conditional Branching: The IF Statement | The IF statement is used to execute other statements based on one or more conditions. Some of the logic used for an IF statement is demonstrated in the following pseudo-code examples: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | A WAIT FUNCTION??? | Yes, you'll need to use script and set up a NotesTimer in the form initialize event, when the timer expires it can check the field in the UIDoc and close the whole lot down if there is nothing there.... | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | 32 bit GetPrivateProfileString funtion call to get Screen Saver and Wallpaper | Returns Screen Saver and Wallpaper used on Windows system. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | GetAllviews Sub Routine | When called GetAllviews will list all the views and folders in the current database, using the Views method of NotesDatabase Class. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Daily Dilbert Agent | This agent is hardcoded to the specific URL to retrieve the daily dilbert page that is available and send it to a user. It should be run in the background on the server. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesView method FTSearch | Using the NotesView method FTSearch , documents can be located and added to a document collection. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Simple Test for Writing to an ODBC Data Source Using LotusScript | The following test script will evaluate whether you can write to an ODBC source using LotusScript. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Reloading Rich Text | A common problem encountered by Notes developers is the limitation of the NotesUIDocument Reload() method. When you open a document and make changes to its back-end version, you can call the Reload method to display the updates in the front-end version. Changes to rich text fields, however, won't show up. As a workaround, you can close and reopen the current document automatically. For example, the following form action button script takes the current document, appends text to its Body field, closes it, then reopens it. This example assumes there is a view named "AllByUNID" which contains all the documents in the database sorted by UNID. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Searching Notes Databases | Searching Notes Databases | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | NotesUIDocument method, Document | Retrieves item values through the `back-end' document that corresponds to the currently open uidocument using the NotesUIDocument method, Document . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Create a New Database and Replicate it via LotusScript | Using LotusScript, you can create either a local replica of a server-based database or a server replica of a local database. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent to Lookup and update another database | With a scheduled agent, go through database A and match a field on a document with a field from another document in a different database B. If there is a match, update a couple of fields in database B from information on the document from database A. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Removing a View from a Database using the NotesView method, Remove. | It is possible to remove a view entirely from a database. To accomplish this, use the NotesView method, Remove . | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to Get a filename from the user in Lotuscript? | This example illustrates how Lotuscript can be used to call a Win32 API Common File Dialog to get a file. Similiar techniques can be used on other operating systems: | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API to load Windows browser | Uses a call to a function in the NNOTESWS.DLL | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Update the full text index of the current database. | This script updates the full text index of the current database if the database has been modified since the time the index was updated. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Access Win32 registry keys in LotusScript? | Access Win32 registry keys in LotusScript? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Percent Complete in script | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | How can you display the text of individual table cells using LotusScript in Notes R4? | How can you display the text of individual table cells using LotusScript in Notes R4? | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | mci Lib | detlef.janssen-seegert@europe.eds.com | 10/25/1999 | ||||||
(Misc) | How do you do @Explode in LotusScript? | Breaks a delimited string into its component elements and returns the elements in a string array | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retrieve the Names of all the Views in a Database using the NotesView property, Name | Retrieves the names of all the views in a database, use the NotesView property, Name in conjunction with the NotesDatabase View property and the ForAll statement. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | This button script is useful in a mail message to a group of persons. | 1. When the recipient clicks the button, the script sends a mail message indicating "Yes" or "No" for the "RSVP." For testing, the name of the current user is used--in practice, you would use your name. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Quoted Reply | Rlatulippe@romac.com | 04/19/2000 | ||||||
(Misc) | IsPrime Function | Given a positive integer, determines if that integer is a prime number (A number is considered to be prime if it has no factors other than plus or minus itself and plus or minus one). Returns a Boolean value of True or False. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to Retrive Windows System Directory! | Uses the function GeSystemDirectoryA in the Kernel32.DLL to retrive the Windows System directory. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Agent to change $Ref to new parent document | Takes a given document ID and makes all selected documents responses to that document. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Calling Windows Registery APIs to locates Notes executable path | Calling Windows Registery APIs to retrieve registery values from Lotus Scrip | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Check RichText Field for NULL | When in Edit mode checks RichText Field for NULL. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Fill a Reader Field with Multiple Names via LotusScript | Use the AppendToTextList method of the NotesItem field to Fill a Reader Field with Multiple Names via LotusScript | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Function to remove excess spaces from a string | Remove all excess spaces from the string s | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Retrieve the name of the Default View in a Database using the NotesView property, IsDefaultView. | It is possible to retrieve the name of the default view in a database using the NotesView property, IsDefaultView . Since IsDefaultView is a property of each individual view in the database, it is necessary to test each view in a database until the default view is found. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Rules for Creating LotusScript Agents that Execute from a Web Browser | Below are a list of items to keep in mind while creating LotusScript agents that will be executed from a web browser. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Interdatabase Access (LotusScript) | Sets up connectivity amoung an application suite set in same path. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Checking Validity of Pasted Documents | The following script checks to make sure the pasted document uses the correct form and passes all the form's validation formulas. If not, the document is deleted. Use this script with a view's Postpaste event. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | How to Have a Script in Notes R4 Pause for Some Time and then Continue | Below are two examples illustrating how to have a script pause for a specified amount of time and then continue. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Perform a full text search on the current database. It sends the user a newsletter with links | This action script allows the user to perform a full text search on the current database. It sends the user a newsletter with links to the top ten documents found in the search. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Function String Explode | This function takes a string and converts it to an array, based on a delimiter | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | LotusScript Classes - Examples | Demonstrates how to create and use a class called DisplayMsg | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Sort - Bubble Sort Algorithm | Sorts an array of data using the Bubble Sort Algorithm | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Script changes the an item on each document selected in a view | This view action script changes the Status item on each document selected in a view. If someone else edits one of the documents at the same time, the document is not saved. Instead, a response document that contains the change to the Status item is created and saved. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Who can edit a field is determined by reading a group of users from view and comparing them to the current user | Upon entering a field, a view is read to determine if the person can edit that field. The view that is read is created from a form that has the key eEngine value and the persons in the aTest_Eng (test engineers) field. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Evaluate to determine a users role. | Use evaluate to determine users role and only then execute block of code. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | API Call to reference functions in Dynamic Link Libraries ? | Calls a C function exported from Windows DLL to get WinDir | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Create a new class to display objects | A very simple example might be to create a class to display a message. We’ll do this in LotusScript by creating a class called DisplayMsg. In the following listing, the DisplayMsg class is shown, where you will see a property called Text and a method called Display. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Error handling using IsOpen | Error handling using IsOpen | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Import a Text File into a Rich Text Item via LotusScript | Imports a text file (c:\temp\sample.txt) into a rich text Item named "Body". | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Showing different Subforms on the Web | Sometimes a document might be to big or to confusing to fill out as one document on the web. One way to break up this document is to create multiple subforms, and on the submit of the form change the subform and reload the page. This method will involve a computed subform, the webquerysave or $$ querysaveagent event, and a field called ChangeSubForm. The Agent will assume that is the ChangeSubForm field equals SubForm2 then the document is finished and it should be submitted. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Open a document in edit mode if it exists. | Open a document in edit mode if it exists. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Count the number of documents in a view | Counts documents in the view "By Author" in the learning.nsf database. | Rlatulippe@romac.com | 04/19/2000 | |||||
(Misc) | Error handling with On Error | Error handling with On Error | Rlatulippe@romac.com | 04/19/2000 | |||||
GetHTMLFromRTF | Gets an HTML string from a RTF field using undocumented methods in Lotus notes for version 5.02 onwards. | Shane Hollis | 11/30/2000 | ||||||
Anonymous | 09/04/2007 | ||||||||
MailStuff Library | Don Bechtold (beck@eki-consulting.com) | 06/30/1999 | |||||||
Anonymous | 02/03/2004 | ||||||||
Mail by WEB Agent - From Field | Solution to the "From" Field problem in Web Agent | flashlr@hotmail.com | 06/22/2000 | ||||||
API | Anonymous | 07/19/2019 | |||||||
API | API | Anonymous | 07/19/2019 | ||||||
3 |
| ||||||||
2 |
| ||||||||
2 |
| ||||||||
41 |
| ||||||||
869 |
|