How I may help
LinkedIn Profile Email me!
Call me using Skype client on your machine

Reload this page LotusScript Programming

Here are my notes and comments about programming Domino server using the LotusScript language.

Take the Brainbench certification test on LotusScript R5 Programming Lotus Domino R5 Programming

 

Topics this page:

  • Database Elements
  • Access Control Lists
  • Replication
  • Agents
  • Tools
  • Views & Folders
  • Forms
  • Formulas
  • LotusScript
  • Get Yourself Certified
  • Resources
  • Your comments???

  •   Site Map List all pages on this site 
    About this site About this site 
    Go to first topic Go to Bottom of this page


    Related Topics:

  • Notes Architecture
  • Javascript Coding
  • Free Training!
  • Technical Support
  • Set this at top of window. Database Design Elements

      LotusScript to obtain a reference to the current database:
        Dim session As New NotesSession
        Dim dbCur As NotesDatabase
        Set dbCur = session.CurrentDatabase
        

      LotusScript to obtain a reference to the current database:

        sServer = dbCur.Server
        

      LotusScript to identify the directory path to the current database (by stripping out the database name at the end):

        Dim sDirectoryPath As String
        sDirectoryPath = Left( dbCur.FilePath, Len(dbCur.FilePath) - Len(dbCur.FileName) )

      LotusScript to open a new database:

        Dim dbOther As New NotesDatabase( sServer, sDirectoryPath & "otherdatabase.nsf" )

      Database Metadata In Domain Catalog

      Field Name Field value describes
      $Type Type of document.
      $Title Title of the document. This field may already be populated for you by Notes.
      $Creator Name of the person who created the document. This field may already be populated for you by Notes.
      $Categories Keywords specified on the Meta tab; the keywords help in categorizing the documents.
      $Description Additional information about the document.

     
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set this at top of window. Internal Notes Fields

      Field Name Description
      Form Contains the name of the form that was used to create the document or the most recent form used to save the document.
      Posted Date Displays the date and time the document was mailed.
      $Anonymous Indicates that the form has been set as an Anonymous form (the Anonymous Form property has been selected on the Basics tab of the Form Properties InfoBox). A value of 1 indicates that the form is anonymous and will not contain an $UpdatedBy field.
      $File Indicates that an attachment is contained in the document (each $File field represents one attachment).
      $Links Indicates that the document contains links (each link is stored as an individual entry in one $Links field).
      $Readers Contains a list of authorized readers. This field is typically created by setting security for authorized readers on the form.
      $Revisions Contains the date and time of each editing session.
      $Title, $Info, $WindowTitle, $Body Identify a document in which a form is stored. The form is stored in the document by setting the Store Form in Document property on the Basics tab of the Form Properties InfoBox.
      $UpdatedBy Contains the document authors and editors from each editing session.

      Be aware that the document could become corrupted by changes to the value of these internal fields.

      LotusScript to change ACLs ???


    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set this at top of window. Predefined Fields

      Predefined Notes fields are provided for developers to place on forms.

      Field Name Description Comment
      $VersionOpt Controls version tracking for the document. The field can contain the following values:
      0 No versioning.
      1 New versions become responses when saved with File > Save as New Version.
      2 New versions automatically become responses when saved.
      3 Prior versions become responses when saved with File > Save as New Version.
      4 Prior versions automatically become responses when saved.
      5 New versions become siblings when saved with File > Save as New Version.
      6 New versions automatically become siblings when saved.
      FolderOption Puts new documents in a folder. A value of 1 prompts the user to select a folder; a value of 2 saves the document to the current folder.
      BlindCopyTo Sends a blind copy to those listed in the field, which can be a person, group, or mail-in database.
      CopyTo Sends a copy to those listed in the field, which can be a person, group, or mail-in database.
      SendTo Sends mail to those listed in the field, which can be a person, group, or mail-in database. This is required for all forms that mail documents.
      MailOptions Automatically mails the document when a value of 1 is specified.
      $AutoSpell Automatically spell-checks the document before it is mailed when a value of 1 is specified.
      Encrypt Encrypts mailed documents when a value of 1 is specified.
      Sign Adds an electronic signature of the creator to the document when a value of 1 is specified.
      DeliveryPriority Delivers mail as high (H), normal (N), or low (L) priority.
      DeliveryReport Returns a report when mail is delivered to the mail recipient.
      ReturnReceipt Returns a receipt when the user reads the mail message.
      SaveOptions Controls whether or not a document is saved. When a value of 1 is specified, the document is saved; when a value of 0 is specified, the document is not saved.
      $$ViewBody Contains the name of a view to embed (this is for backward compatibility); only applicable in Web applications.
      $$ViewList Displays a Folder pane (this is for backward compatibility); only applicable in Web applications.
      $$NavigatorBody Contains the name of a Navigator to embed (this is for backward compatibility); only applicable in Web applications.
      $GroupScheduleRefreshMode Contains a numeric value specifying the frequency for refreshing an embedded group scheduling control.
      $GroupScheduleShowLegend Displays the color legend for an embedded group scheduling control when a value of 1 is specified.
      $ChargeRead Creates a billing record whenever a user opens a document.
      $ChargeWrite Creates a billing record whenever a user creates, copies, edits, or saves a document.
      Categories Contains the list of categories for a document.
      HTML Passes HTML directly to the server.
      $$HTMLHead Passes HTML information that is to be placed between the <html> and </html> head tags.
      $$Return After a Web user submits a document, overrides the default confirmation when a customized confirmation is specified in this computed field.


    Go to Top of this page.
    Previous topic this page
    Previous topic this page
    Next topic this page

    Set this at top of window. Agents

      Java Applets require the Domino Inernet Inter-Orb Protocol (DIIOP) task and the IIOP protocol to access a Domino ORB listener program which processes requests.

     
      .
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set screen Tools

      tool Team Studio

      Domino Files — The Ultimate Download Site for Notes Professionals

      IntelliPRINTPLUS from Cybernet Software integrates with the Notes Workspace to allow the end user to design reports and produce sophisticated output based on Notes data. It enables easy and accurate printing of labels, envelopes, calendars, bar codes, pre-formatted documents, forms and reports.

      Netwell doclib

      Bakbone Application Plugin Module for online backup and recovery automatic, unattended backups for local or remote domino servers across the network — administered via a central location,

      Create a B2B Web Presence with Domino tutorial includes sample databases.

     
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set this at top of window. Forms

      Types of fields: reserved, conditional/unconditional, hidden, keyword, signed, mail enabled, workflow related form attributes

      Put into a Script Library file the functions used by several forms within a database. In the Options event of each form's Globals area, declare (if “mylib” is the name of the script library):

        Use "mylib

      To call “my_function” from the library


    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set this at top of window. LotusScript Programming

      LotusScript is used to access complex datatypes:

    • specify entry and exit actions
    • validation and translation of rich text
    • Lookup files and SQL databases external to the Notes application (instead of embedding values in formulas)
    • Change ACL values
    • Access Java and JavaScript classes

      LotusScript syntax is based on BASIC:

      • Comments ignored by the interpreter begin with a single quote mark ' or the word REM
      • The scope is defined with Option public
      • No semicolons at the end of each statement.
      • Code Dim to declare variables.
      • subroutines are called

      Instead of using formula @Command([FilePrint]), this LotusScript:

        Dim ws As NotesUIWorspace
        Dim uidoc As NotesUIDocument
        Set ws = new NotesUIWorkspace
        Set uidoc = ws.UIDocument
        Call uidoc.Print

     
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set this at top of window. Formulas

      @Commands and @Functions such as @Now for the current date and time.

      Hide elements from display by setting “Hide-When” formulas to evaluate to true when the database is opened or refreshed.

      Hotspot formulas are not evaluated until the user clicks them.

      Internal field names (such as $Revisions and $UpdatedBy for each editing session) begin with a dollar sign ($).

     
       
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Set screen Resources for LotusScript Programmers

     
     
    Go to Top of this page.
    Previous topic this page
    Next topic this page

    Portions ©Copyright 1996-2010 Wilson Mar. All rights reserved. | Privacy Policy |


    How I may help

    Send a message with your email client program


    Your rating of this page:
    Low High




    Your first name:

    Your family name:

    Your location (city, country):

    Your Email address: 



      Top of Page Go to top of page

    Thank you!