MartinScott.com > Products > NoteMan
Home
Services
Overview
Notes/Domino
WebSphere
Websites
Performance Tuning
Server Admin
Training
Products
Overview
WirelessMail
NoteMan
SnappShot for SameTime
Selective Replication DLL
Resources
Overview
Code Library
Domino SuperSearch
WebSphere SuperSearch
CLP Practice Tests
Technical Articles
Company
Overview
People
Contact
Client List
News
Federal Contracts
Lotus Notes & Domino
Expertise & Solutions
Search
Tips on converting LotusScript to Java
Originally from Kevin Smith of Lotus, this is the original (March 97) spec. As far as I can tell, all of it still applies. I added the one new method getItemValueString below.
- Jamie
Subject:
Tips on converting LotusScript to Java
Use "null" for checking empty Notes objects, the LotusScript NOTHING constant doesn't exist.
LotusScript properties are Java methods. To convert for java, prefix all property names with Get or Set, and append a set of parenthesis
, (Wayne added: however, property names preceded with
"Is" or "Has" seem not necessarily prefixed with get or set)
.
eg., LotusScript
db.Title
becomes
db.
get
Title()
LotusScript
acl.Uniformaccess = True
becomes
acl.
set
UniformAccess(true)
You can't use the "extended class syntax".
e.g., LotusScript
doc.Subject = "Status Report
"
, is Java
doc.appendItemValue("Subject","Status Report").
Use the following technique to get the array returned from getItemValue.
vector = doc.getItemValue("Field1"); // vector is an array of objects
(String)vector.elementAt(0); // returns the first array element as a string
This has been updated to--
LotusScript:
doc.GetItemValue("CustID")(0)
:: Java:
doc.getItemValueString("CustID") - Jamie
What do you use for constants? Eg., ACL Level names?
Java is case sensitive.
e.g.,
doc.
s
ave(true,false)
<- wrong,
doc.
S
ave(true,false)
<-right
T
rue
<-wrong,
t
rue
<-right
Copyright © 2026 MartinScott Consulting, LLC. All rights reserved.