Jump to main content
HCL Logo Product Documentation
  • Customer Support
HCL Domino Designer
  • HCL Domino Designer Basic User Guide and Reference
  • XPages User Guide and Reference
  • JavaScript and XPages reference
  1. Home
  2. HCL Domino Designer Basic User Guide and Reference

    Basic product usage information and programming language reference information.

  3. Programming Overview and User Interface

    This section contains general guidelines and examples that show where to use Java, LotusScript, and the formula language.

  4. User Interface
  5. Writing LotusScript in the Programmer's pane

    The Programmer's pane allows you to:

  • HCL Domino Designer Basic User Guide and Reference

    Basic product usage information and programming language reference information.

    • What's new in HCL Domino Designer 11 for developers?

      The following features are new for developers in HCL Domino® Designer 11.

    • Accessibility and keyboard shortcuts

      Accessibility features assist users who have a disability, such as restricted mobility or limited vision, to use information technology content successfully.

    • Application Design

      Welcome to the Application Design section of Domino® Designer Help.

    • Application Management

      Welcome to the Application Management section of Domino® Designer Help.

    • Domino® Query Language

      Domino® Query Language (DQL) is a facility running on a Domino server that provides a terse, shorthand syntax for finding documents. It supports a wide variety and complexity of search terms. It leverages existing design elements, avoiding the need to write detailed code to access them. DQL consolidates all methods in Domino for searching document contents.

    • Composite Applications - Design and Management

      Composite applications are a key element in a service-oriented architecture (SOA) and contextual collaboration strategy. The ability to create and edit composite applications lets you easily integrate different types of components and technologies.

    • DB2® Access views

      Domino® Designer includes two types of design elements to assist you in managing data contained in DB2® enabled Notes® databases:

    • Programming Overview and User Interface

      This section contains general guidelines and examples that show where to use Java, LotusScript, and the formula language.

      • Programming Overview

        This documentation describes how to attach Java, JavaScript, LotusScript, and formula code to Domino design elements. Here are some overview topics:

      • User Interface
        • Accessing the Programmer's pane
        • Exploring the Programmer's pane

          The Programmer's pane is located in Domino Designer following the Work pane, or by itself in some design elements and resources such as agents and shared fields. The Programmer's pane is context-sensitive and may change slightly depending on the programming language you select.

        • Exploring the Java interface in the Programmer's pane

          Java programming can be done in the Programmer's pane of an agent or a script library.

        • Using the Info List

          The Info List appears on the left side of the Programmer's pane and contains the following context-sensitive tabs:

        • Using the Objects tab

          The Objects tab is located in the Info List. It contains a context-sensitive list of objects and events available for the selected programming language. The Objects tab allows you to:

        • Using the Reference tab

          The Reference tab provides you with context-sensitive information for each programming language recognized in the Programmer's pane. You can view this information by clicking the Reference tab and selecting the desired topic from the Reference list.

        • Using the Errors box

          The Errors box is present for Java and LotusScript. Use the Errors box to view error messages that occur during script entry and compilation. The Errors box displays only one error at a time. To view other errors, click on the box and select the error from the list. When you select an error from the list, the line containing the error is highlighted in the Script area.

        • Using the Script area

          The Script area formats LotusScript automatically by indenting and adjusting the case of keywords as needed. There is no automatic formatting for other programming languages in Lotus Domino Designer.

        • Writing Java in an agent
        • Writing JavaScript in the Programmer's pane

          JavaScript allows you to write scripts that function on the Web as well as in the Domino client. The Objects tab provides a list of JavaScript events supported in Lotus Domino Designer. JavaScript is not available for agents. For LotusScript Web agents, you can use Print statements to output HTML to the browser, including script statements. For example, Print "<script>function changeLocation(){...}</script>."

        • Writing LotusScript in the Programmer's pane

          The Programmer's pane allows you to:

          • Defining global variables and subprograms
          • Creating an additional script in LotusScript

            A number of scripts, such as Initialize, Terminate, and Click, are automatically defined as events for the current Domino object. You select them from the Info List. You can create additional scripts and other block structures as shown in the following table. When a new script is added, it appears on the Objects tab.

          • Completing a LotusScript block statement automatically

            For LotusScript the following block structures are automatically terminated and the insertion point is placed in a new, indented line within the block structure.

          • Completing a LotusScript %directive automatically

            If a script contains a %Rem directive without a matching %End rem directive, LotusScript inserts a new line containing %End rem immediately below the %Rem directive when the Script area is closed or saved, or when a different object or script is selected.

          • Compiling LotusScript

            Compilation takes place in two phases:

          • Importing and exporting LotusScript

            You can copy text from any file into the current LotusScript event or object. Click anywhere in the script area then use the File - Import menu command to choose a file. Files with an LSS extension are displayed by default. To see other file types, enter *.* in the File name box. Click Import. If the file you want to import has a LotusScript object with the same name as the current object, the LotusScript Import Options dialog box is displayed. Choose Yes to replace the existing script with the imported script.

        • Exploring the LotusScript Debugger

          The debugger allows you to:

        • Using the Remote Debugger
        • Debugging Java code remotely
        • Using Script Libraries
        • Recompiling all LotusScript
        • Writing formulas in the Programmer's pane
        • Using the Programmer's pane for Simple action(s)
      • XML for Domino

        The following topics cover some general guidelines for using XML in Domino applications and list all the elements, attributes, and entities in the Domino Document Type Definition (DTD):

      • JSP Custom Tag Libraries

        A JavaServer Page (JSP) is a HTML Web page that contains code which executes application logic to generate dynamic content. The page is created at the time it is requested. JSP pages are compiled into servlets; the code they contain is executed by the server. For more information on JSPs, see the Sun Microsystems Web site: http://java.sun.com/products/jsp/.

      • Programming Domino for Web Applications

        You should be aware of certain procedures, restrictions, and enhancements available to you when using Domino Designer to program Web applications. This section describes the following areas:

    • Formula Language

      This section documents the formula language.

    • LotusScript® Language

      Welcome to the LotusScript® Language section of Domino® Designer Help.

    • LotusScript/COM/OLE Classes
    • Java/CORBA Classes

      This section documents the Java/CORBA classes.

    • Connectors

      Connectors provide native access to a wide variety of DBMS products, ODBC, the platform File system, Enterprise Resource Planning systems, and Transaction Processing systems.

    • Javadoc™ for Domino® Designer related APIs

      As part of providing additional Java™ reference documentation, Domino® Designer ships with a help plugin that contains Javadoc™ for additional Domino Designer related APIs.

Writing LotusScript in the Programmer's pane

The Programmer's pane allows you to:

  • Use the placeholder (Globals) to define subprograms and declare variables that are available to all objects in the current document
  • Create an additional script in LotusScript
  • Complete LotusScript class statements automatically
  • Complete a LotusScript block statement automatically
  • Complete a LotusScript %directive automatically
  • Compile scripts
  • Import and export LotusScript to files
Related information
  • User Interface
  • Defining global variables and subprograms
  • Creating an additional script in LotusScript
  • Completing a LotusScript block statement automatically
  • Completing a LotusScript %directive automatically
  • Compiling LotusScript
  • Importing and exporting LotusScript
  • Recompiling all LotusScript
  • Exploring the LotusScript Debugger
  • Using the LotusScript Debugger
  • Incorporating a LotusScript script library
  • Share: Email
  • Twitter
  • Disclaimer
  • Privacy
  • Terms of use
  • Cookie Preferences