Java Security Domino
Java Security Domino
iii
Using AgentRunner . . . . . . . . . . . . . . . . . . . . 45 Using variables . . . . . . . . . . . . . . . . . . . . . . . 63
Creating a project for AgentRunner . . . . . 45 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Generating an AgentContext document . . . 46 Temporary variables . . . . . . . . . . . . . . . . . 65
Debugging a Java agent with Using constants . . . . . . . . . . . . . . . . . . . . . . . 66
AgentRunner . . . . . . . . . . . . . . . . . . . . 46 Text constants . . . . . . . . . . . . . . . . . . . . . . 66
Writing JavaScript in the Numeric constants . . . . . . . . . . . . . . . . . . 67
Programmer’s pane . . . . . . . . . . . . . . . 47
Time-date constants . . . . . . . . . . . . . . . . . 67
Writing JavaScript in a page header . . . . . 48
Using operators . . . . . . . . . . . . . . . . . . . . . . . 68
Compiling JavaScript . . . . . . . . . . . . . . . . 48
Operator overview and precedence . . . . . 69
Writing LotusScript in the
Programmer’s pane . . . . . . . . . . . . . . . 48 Order of evaluation for operations . . . . . . 70
v
@DbLookup (ODBC) . . . . . . . . . . . . . . . . . . . 214 FIELD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
@DbManager . . . . . . . . . . . . . . . . . . . . . . . . . 220 @Fontlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
@DbName . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 @GetDocField . . . . . . . . . . . . . . . . . . . . . . . . 259
@DbTitle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 @GetPortsList . . . . . . . . . . . . . . . . . . . . . . . . 260
@DDEExecute . . . . . . . . . . . . . . . . . . . . . . . . 223 @GetProfileField . . . . . . . . . . . . . . . . . . . . . . 261
@DDEInitiate . . . . . . . . . . . . . . . . . . . . . . . . . 225 @Hour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
@DDEPoke . . . . . . . . . . . . . . . . . . . . . . . . . . 227 @If . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
@DDETerminate . . . . . . . . . . . . . . . . . . . . . . 228 @Implode . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
DEFAULT . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 @InheritedDocumentUniqueID . . . . . . . . . . . 266
@DeleteDocument . . . . . . . . . . . . . . . . . . . . . 229 @Integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
@DeleteField . . . . . . . . . . . . . . . . . . . . . . . . . 230 @IsAgentEnabled . . . . . . . . . . . . . . . . . . . . . 267
@DialogBox . . . . . . . . . . . . . . . . . . . . . . . . . . 230 @IsAvailable . . . . . . . . . . . . . . . . . . . . . . . . . 268
@Do . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 @IsCategory . . . . . . . . . . . . . . . . . . . . . . . . . . 269
@DocChildren . . . . . . . . . . . . . . . . . . . . . . . . 234 @IsDocBeingEdited . . . . . . . . . . . . . . . . . . . . 270
@DocDescendants . . . . . . . . . . . . . . . . . . . . . 236 @IsDocBeingLoaded . . . . . . . . . . . . . . . . . . . 270
@DocFields . . . . . . . . . . . . . . . . . . . . . . . . . . 238 @IsDocBeingMailed . . . . . . . . . . . . . . . . . . . . 271
@DocLength . . . . . . . . . . . . . . . . . . . . . . . . . 238 @IsDocBeingRecalculated . . . . . . . . . . . . . . . 272
@DocLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 @IsDocBeingSaved . . . . . . . . . . . . . . . . . . . . 273
@DocMark . . . . . . . . . . . . . . . . . . . . . . . . . . . 240 @IsDocTruncated . . . . . . . . . . . . . . . . . . . . . . 274
@DocNumber . . . . . . . . . . . . . . . . . . . . . . . . 240 @IsError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
@DocParentNumber . . . . . . . . . . . . . . . . . . . 241 @IsExpandable . . . . . . . . . . . . . . . . . . . . . . . 275
@DocSiblings . . . . . . . . . . . . . . . . . . . . . . . . . 242 @IsMember . . . . . . . . . . . . . . . . . . . . . . . . . . 276
@DocumentUniqueID . . . . . . . . . . . . . . . . . . 243 @IsModalHelp . . . . . . . . . . . . . . . . . . . . . . . . 277
@Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 @IsNewDoc . . . . . . . . . . . . . . . . . . . . . . . . . . 278
@EditECL . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 @IsNotMember . . . . . . . . . . . . . . . . . . . . . . . 278
@EditUserECL . . . . . . . . . . . . . . . . . . . . . . . . 247 @IsNumber . . . . . . . . . . . . . . . . . . . . . . . . . . 280
@Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 @IsResponseDoc . . . . . . . . . . . . . . . . . . . . . . 280
@EnableAlarms . . . . . . . . . . . . . . . . . . . . . . . 248 @IsText . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
@Ends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 @IsTime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
ENVIRONMENT . . . . . . . . . . . . . . . . . . . . . . 249 @IsUnavailable . . . . . . . . . . . . . . . . . . . . . . . 282
@Environment . . . . . . . . . . . . . . . . . . . . . . . . 250 @IsValid . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
@Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 @Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . 284
@Exp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 @LanguagePreference . . . . . . . . . . . . . . . . . . 285
@Explode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 @Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
@Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 @LeftBack . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
@False . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 @Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
vii
@True . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368 AdminCrossCertifyKey . . . . . . . . . . . . . . . . . 403
@Unavailable . . . . . . . . . . . . . . . . . . . . . . . . . 369 AdminDatabaseAnalysis . . . . . . . . . . . . . . . . 403
@UndeleteDocument . . . . . . . . . . . . . . . . . . . 369 AdminDatabaseQuotas . . . . . . . . . . . . . . . . . 404
@Unique . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370 AdminIDFileClearPassword . . . . . . . . . . . . . 404
@UpperCase . . . . . . . . . . . . . . . . . . . . . . . . . 370 AdminIDFileExamine . . . . . . . . . . . . . . . . . . 404
@URLGetHeader . . . . . . . . . . . . . . . . . . . . . . 371 AdminIDFileSetPassword . . . . . . . . . . . . . . . 405
@URLHistory . . . . . . . . . . . . . . . . . . . . . . . . 373 Administration . . . . . . . . . . . . . . . . . . . . . . . 405
@URLOpen . . . . . . . . . . . . . . . . . . . . . . . . . . 374 AdminNewOrganization . . . . . . . . . . . . . . . . 405
@UserAccess . . . . . . . . . . . . . . . . . . . . . . . . . 377 AdminNewOrgUnit . . . . . . . . . . . . . . . . . . . 406
@UserName . . . . . . . . . . . . . . . . . . . . . . . . . . 379 AdminOpenAddressBook . . . . . . . . . . . . . . . 406
@UserNameLanguage . . . . . . . . . . . . . . . . . . 381 AdminOpenCatalog . . . . . . . . . . . . . . . . . . . 406
@UserNamesList . . . . . . . . . . . . . . . . . . . . . . 382 AdminOpenCertLog . . . . . . . . . . . . . . . . . . . 407
@UserPrivileges . . . . . . . . . . . . . . . . . . . . . . . 383 AdminOpenGroupsView . . . . . . . . . . . . . . . 407
@UserRoles . . . . . . . . . . . . . . . . . . . . . . . . . . 383 AdminOpenServerLog . . . . . . . . . . . . . . . . . 407
@V2If . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 AdminOpenServersView . . . . . . . . . . . . . . . . 408
@V3UserName . . . . . . . . . . . . . . . . . . . . . . . 385 AdminOpenStatistics . . . . . . . . . . . . . . . . . . . 408
@ValidateInternetAddress . . . . . . . . . . . . . . . 386 AdminOpenUsersView . . . . . . . . . . . . . . . . . 408
@Version . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 AdminOutgoingMail . . . . . . . . . . . . . . . . . . . 409
@ViewTitle . . . . . . . . . . . . . . . . . . . . . . . . . . 389 AdminRegisterFromFile . . . . . . . . . . . . . . . . 409
@Weekday . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 AdminRegisterServer . . . . . . . . . . . . . . . . . . 409
@Wide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390 AdminRegisterUser . . . . . . . . . . . . . . . . . . . . 410
@Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391 AdminRemoteConsole . . . . . . . . . . . . . . . . . 410
@Year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392 AdminSendMailTrace . . . . . . . . . . . . . . . . . . 410
@Yes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393 AdminStatisticsConfig . . . . . . . . . . . . . . . . . . 411
@Yesterday . . . . . . . . . . . . . . . . . . . . . . . . . . 393 AdminTraceConnection . . . . . . . . . . . . . . . . 411
@Zone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394 AgentEdit . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
AgentEnableDisable . . . . . . . . . . . . . . . . . . . 412
6 Formula Language
AgentLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
@Commands A–Z . . . . . . . . . . . . 397
AgentRun . . . . . . . . . . . . . . . . . . . . . . . . . . . 413
Using @Commands . . . . . . . . . . . . . . . . . . . . 397
AgentSetServerName . . . . . . . . . . . . . . . . . . 413
@Commands with ECL security . . . . . . . . . . 397
AgentTestRun . . . . . . . . . . . . . . . . . . . . . . . . 413
AddBookmark . . . . . . . . . . . . . . . . . . . . . . . . 400
AttachmentDetachAll . . . . . . . . . . . . . . . . . . 414
AddDatabase . . . . . . . . . . . . . . . . . . . . . . . . . 400
AttachmentLaunch . . . . . . . . . . . . . . . . . . . . 414
AddDatabaseRepID . . . . . . . . . . . . . . . . . . . . 401
AttachmentProperties . . . . . . . . . . . . . . . . . . 414
AdminCertify . . . . . . . . . . . . . . . . . . . . . . . . 402
AttachmentView . . . . . . . . . . . . . . . . . . . . . . 415
AdminCreateGroup . . . . . . . . . . . . . . . . . . . . 402
CalendarFormat . . . . . . . . . . . . . . . . . . . . . . 415
AdminCrossCertifyIDFile . . . . . . . . . . . . . . . 403
ix
EditLinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444 FileFullTextDelete . . . . . . . . . . . . . . . . . . . . . 460
EditLocations . . . . . . . . . . . . . . . . . . . . . . . . . 445 FileFullTextInfo . . . . . . . . . . . . . . . . . . . . . . . 460
EditMakeDocLink . . . . . . . . . . . . . . . . . . . . . 445 FileFullTextUpdate . . . . . . . . . . . . . . . . . . . . 461
EditNextField . . . . . . . . . . . . . . . . . . . . . . . . 445 FileImport . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
EditOpenLink . . . . . . . . . . . . . . . . . . . . . . . . 445 FileNewDatabase . . . . . . . . . . . . . . . . . . . . . . 463
EditPaste . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446 FileNewReplica . . . . . . . . . . . . . . . . . . . . . . . 463
EditPasteSpecial . . . . . . . . . . . . . . . . . . . . . . 446 FileOpenDatabase . . . . . . . . . . . . . . . . . . . . . 464
EditPhoneNumbers . . . . . . . . . . . . . . . . . . . . 446 FileOpenDBRepID . . . . . . . . . . . . . . . . . . . . . 466
EditPrevField . . . . . . . . . . . . . . . . . . . . . . . . . 447 FilePageSetup . . . . . . . . . . . . . . . . . . . . . . . . 467
EditProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . 447 FilePrint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468
EditResizePicture . . . . . . . . . . . . . . . . . . . . . . 448 FilePrintSetup . . . . . . . . . . . . . . . . . . . . . . . . 470
EditRight . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 FileSave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
EditSelectAll . . . . . . . . . . . . . . . . . . . . . . . . . 449 FileSaveNewVersion . . . . . . . . . . . . . . . . . . . 470
EditSelectByDate . . . . . . . . . . . . . . . . . . . . . . 450 FindFreeTimeDialog . . . . . . . . . . . . . . . . . . . 471
EditShowHideHiddenChars . . . . . . . . . . . . . 450 Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
EditTableDeleteRowColumn . . . . . . . . . . . . . 450 FolderCollapse . . . . . . . . . . . . . . . . . . . . . . . 473
EditTableFormat . . . . . . . . . . . . . . . . . . . . . . 451 FolderCustomize . . . . . . . . . . . . . . . . . . . . . . 473
EditTableInsertRowColumn . . . . . . . . . . . . . 451 FolderExpand . . . . . . . . . . . . . . . . . . . . . . . . 474
EditTop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 FolderExpandAll . . . . . . . . . . . . . . . . . . . . . . 474
EditUndo . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452 FolderExpandWithChildren . . . . . . . . . . . . . 474
EditUntruncate . . . . . . . . . . . . . . . . . . . . . . . 452 FolderMove . . . . . . . . . . . . . . . . . . . . . . . . . . 475
EditUp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453 FolderProperties . . . . . . . . . . . . . . . . . . . . . . 475
EmptyTrash . . . . . . . . . . . . . . . . . . . . . . . . . . 453 FolderRename . . . . . . . . . . . . . . . . . . . . . . . . 475
ExchangeUnreadMarks . . . . . . . . . . . . . . . . . 454 FormActions . . . . . . . . . . . . . . . . . . . . . . . . . 476
Execute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454 FormTestDocument . . . . . . . . . . . . . . . . . . . . 476
FileCloseWindow . . . . . . . . . . . . . . . . . . . . . 455 GoUpLevel . . . . . . . . . . . . . . . . . . . . . . . . . . 476
FileDatabaseACL . . . . . . . . . . . . . . . . . . . . . . 455 Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
FileDatabaseCompact . . . . . . . . . . . . . . . . . . 455 HelpAboutDatabase . . . . . . . . . . . . . . . . . . . 477
FileDatabaseCopy . . . . . . . . . . . . . . . . . . . . . 456 HelpAboutNotes . . . . . . . . . . . . . . . . . . . . . . 477
FileDatabaseDelete . . . . . . . . . . . . . . . . . . . . 456 HelpFunctions . . . . . . . . . . . . . . . . . . . . . . . . 477
FileDatabaseInfo . . . . . . . . . . . . . . . . . . . . . . 456 HelpIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
FileDatabaseRemove . . . . . . . . . . . . . . . . . . . 457 HelpKeyboard . . . . . . . . . . . . . . . . . . . . . . . . 478
FileDatabaseUseServer . . . . . . . . . . . . . . . . . 457 HelpMessages . . . . . . . . . . . . . . . . . . . . . . . . 478
FileExit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457 HelpRelease3MenuFinder . . . . . . . . . . . . . . . 478
FileExport . . . . . . . . . . . . . . . . . . . . . . . . . . . 458 HelpReleaseNotes . . . . . . . . . . . . . . . . . . . . . 478
FileFullTextCreate . . . . . . . . . . . . . . . . . . . . . 460 HelpTableOfContents . . . . . . . . . . . . . . . . . . 478
xi
ShowHideParentPreview . . . . . . . . . . . . . . . 506 ToolsMarkSelectedRead . . . . . . . . . . . . . . . . 521
ShowHidePreviewPane . . . . . . . . . . . . . . . . . 506 ToolsMarkSelectedUnread . . . . . . . . . . . . . . 521
ShowProperties . . . . . . . . . . . . . . . . . . . . . . . 506 ToolsRefreshAllDocs . . . . . . . . . . . . . . . . . . . 522
SmartIconsFloating . . . . . . . . . . . . . . . . . . . . 507 ToolsRefreshSelectedDocs . . . . . . . . . . . . . . . 522
SmartIconsNextSet . . . . . . . . . . . . . . . . . . . . 507 ToolsReplicate . . . . . . . . . . . . . . . . . . . . . . . . 522
StyleCycleKey . . . . . . . . . . . . . . . . . . . . . . . . 507 ToolsRunBackgroundMacros . . . . . . . . . . . . 523
TextAlignCenter . . . . . . . . . . . . . . . . . . . . . . 508 ToolsRunMacro . . . . . . . . . . . . . . . . . . . . . . . 523
TextAlignFull . . . . . . . . . . . . . . . . . . . . . . . . 508 ToolsScanUnreadChoose . . . . . . . . . . . . . . . . 524
TextAlignLeft . . . . . . . . . . . . . . . . . . . . . . . . 508 ToolsScanUnreadPreferred . . . . . . . . . . . . . . 524
TextAlignNone . . . . . . . . . . . . . . . . . . . . . . . 509 ToolsScanUnreadSelected . . . . . . . . . . . . . . . 524
TextAlignRight . . . . . . . . . . . . . . . . . . . . . . . 509 ToolsSetupLocation . . . . . . . . . . . . . . . . . . . . 525
TextBold . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 ToolsSetupMail . . . . . . . . . . . . . . . . . . . . . . . 525
TextBullet . . . . . . . . . . . . . . . . . . . . . . . . . . . 510 ToolsSetupPorts . . . . . . . . . . . . . . . . . . . . . . . 525
TextCycleSpacing . . . . . . . . . . . . . . . . . . . . . 510 ToolsSetupUserSetup . . . . . . . . . . . . . . . . . . 526
TextEnlargeFont . . . . . . . . . . . . . . . . . . . . . . 511 ToolsSmartIcons . . . . . . . . . . . . . . . . . . . . . . 526
TextFont . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511 ToolsSpellCheck . . . . . . . . . . . . . . . . . . . . . . 526
TextItalic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512 ToolsUserLogoff . . . . . . . . . . . . . . . . . . . . . . 527
TextNormal . . . . . . . . . . . . . . . . . . . . . . . . . . 512 UserIDCertificates . . . . . . . . . . . . . . . . . . . . . 527
TextNumbers . . . . . . . . . . . . . . . . . . . . . . . . . 513 UserIDClearPassword . . . . . . . . . . . . . . . . . . 527
TextOutdent . . . . . . . . . . . . . . . . . . . . . . . . . 513 UserIDCreateSafeCopy . . . . . . . . . . . . . . . . . 528
TextParagraph . . . . . . . . . . . . . . . . . . . . . . . . 514 UserIDEncryptionKeys . . . . . . . . . . . . . . . . . 528
TextParagraphStyles . . . . . . . . . . . . . . . . . . . 514 UserIDInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
TextPermanentPen . . . . . . . . . . . . . . . . . . . . 514 UserIDMergeCopy . . . . . . . . . . . . . . . . . . . . 529
TextReduceFont . . . . . . . . . . . . . . . . . . . . . . . 515 UserIDSetPassword . . . . . . . . . . . . . . . . . . . . 529
TextSetFontColor . . . . . . . . . . . . . . . . . . . . . . 515 UserIDSwitch . . . . . . . . . . . . . . . . . . . . . . . . 529
TextSetFontFace . . . . . . . . . . . . . . . . . . . . . . . 516 V3EditNextField . . . . . . . . . . . . . . . . . . . . . . 530
TextSetFontSize . . . . . . . . . . . . . . . . . . . . . . . 517 V3EditPrevField . . . . . . . . . . . . . . . . . . . . . . 530
TextSpacingDouble . . . . . . . . . . . . . . . . . . . . 517 ViewArrangeIcons . . . . . . . . . . . . . . . . . . . . . 531
TextSpacingOneAndAHalf . . . . . . . . . . . . . . 518 ViewBelowFolders . . . . . . . . . . . . . . . . . . . . 531
TextSpacingSingle . . . . . . . . . . . . . . . . . . . . . 518 ViewBesideFolders . . . . . . . . . . . . . . . . . . . . 531
TextUnderline . . . . . . . . . . . . . . . . . . . . . . . . 518 ViewCertify . . . . . . . . . . . . . . . . . . . . . . . . . . 531
ToolsCall . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519 ViewChange . . . . . . . . . . . . . . . . . . . . . . . . . 532
ToolsCategorize . . . . . . . . . . . . . . . . . . . . . . . 519 ViewCollapse . . . . . . . . . . . . . . . . . . . . . . . . 533
ToolsHangUp . . . . . . . . . . . . . . . . . . . . . . . . 520 ViewCollapseAll . . . . . . . . . . . . . . . . . . . . . . 533
ToolsMarkAllRead . . . . . . . . . . . . . . . . . . . . 520 ViewExpand . . . . . . . . . . . . . . . . . . . . . . . . . 534
ToolsMarkAllUnread . . . . . . . . . . . . . . . . . . 520 ViewExpandAll . . . . . . . . . . . . . . . . . . . . . . . 534
xiii
Deleting an entry from a view Accessing rich-text paragraph
entry collection . . . . . . . . . . . . . . . . . . . 591 style properties . . . . . . . . . . . . . . . . . . 643
Searching for entries in a view Working with tabs . . . . . . . . . . . . . . . . . . 645
entry collection . . . . . . . . . . . . . . . . . . . 591 Accessing sessions . . . . . . . . . . . . . . . . . . . . . 646
Retrieving entries from a view Accessing session properties . . . . . . . . . . . 646
entry collection . . . . . . . . . . . . . . . . . . . 592
Using environment variables . . . . . . . . . . 649
Removing documents from a view
entry collection . . . . . . . . . . . . . . . . . . . 593 Accessing agents . . . . . . . . . . . . . . . . . . . . 650
xv
FolderReferencesEnabled property . . . . . . . . 802 GetDocumentByURL method . . . . . . . . . . . . 842
Forms property . . . . . . . . . . . . . . . . . . . . . . . 804 GetForm method . . . . . . . . . . . . . . . . . . . . . . 844
IsDirectoryCatalog property . . . . . . . . . . . . . 804 GetOutline method . . . . . . . . . . . . . . . . . . . . 845
IsFTIndexed property . . . . . . . . . . . . . . . . . . 805 GetProfileDocument method . . . . . . . . . . . . . 845
IsMultiDbSearch property . . . . . . . . . . . . . . . 807 GetProfileDocCollection method . . . . . . . . . . 847
IsOpen property . . . . . . . . . . . . . . . . . . . . . . 807 GetURLHeaderInfo method . . . . . . . . . . . . . 847
IsPrivateAddressBook property . . . . . . . . . . 808 GetView method . . . . . . . . . . . . . . . . . . . . . . 849
IsPublicAddressBook property . . . . . . . . . . . 809 GrantAccess method . . . . . . . . . . . . . . . . . . . 850
LastFTIndexed property . . . . . . . . . . . . . . . . 810 Open method . . . . . . . . . . . . . . . . . . . . . . . . . 852
LastModified property . . . . . . . . . . . . . . . . . 810 OpenByReplicaID method . . . . . . . . . . . . . . . 854
Managers property . . . . . . . . . . . . . . . . . . . . 811 OpenIfModified method . . . . . . . . . . . . . . . . 854
MaxSize property . . . . . . . . . . . . . . . . . . . . . 813 OpenMail method . . . . . . . . . . . . . . . . . . . . . 855
Parent property . . . . . . . . . . . . . . . . . . . . . . . 813 OpenURLDb method . . . . . . . . . . . . . . . . . . . 856
PercentUsed property . . . . . . . . . . . . . . . . . . 814 OpenWithFailover method . . . . . . . . . . . . . . 857
ReplicaID property . . . . . . . . . . . . . . . . . . . . 815 QueryAccess method . . . . . . . . . . . . . . . . . . . 858
ReplicationInfo property . . . . . . . . . . . . . . . . 815 Remove method . . . . . . . . . . . . . . . . . . . . . . 860
Server property . . . . . . . . . . . . . . . . . . . . . . . 816 Replicate method . . . . . . . . . . . . . . . . . . . . . . 861
Size property . . . . . . . . . . . . . . . . . . . . . . . . . 817 RevokeAccess method . . . . . . . . . . . . . . . . . . 861
SizeQuota property . . . . . . . . . . . . . . . . . . . . 817 Search method . . . . . . . . . . . . . . . . . . . . . . . . 862
TemplateName property . . . . . . . . . . . . . . . . 818 UnprocessedFTSearch method . . . . . . . . . . . 864
Title property . . . . . . . . . . . . . . . . . . . . . . . . . 819 UnprocessedSearch method . . . . . . . . . . . . . 869
UnprocessedDocuments property . . . . . . . . . 820 UpdateFTIndex method . . . . . . . . . . . . . . . . 874
Views property . . . . . . . . . . . . . . . . . . . . . . . 824 NotesDateRange class . . . . . . . . . . . . . . . . . 876
Compact method . . . . . . . . . . . . . . . . . . . . . . 825 EndDateTime property . . . . . . . . . . . . . . . . . 877
Create method . . . . . . . . . . . . . . . . . . . . . . . . 826 StartDateTime property . . . . . . . . . . . . . . . . . 878
CreateCopy method . . . . . . . . . . . . . . . . . . . 827 Text property . . . . . . . . . . . . . . . . . . . . . . . . . 878
CreateDocument method . . . . . . . . . . . . . . . . 829 NotesDateTime class . . . . . . . . . . . . . . . . . . 879
CreateFromTemplate method . . . . . . . . . . . . 830 DateOnly property . . . . . . . . . . . . . . . . . . . . 883
CreateOutline method . . . . . . . . . . . . . . . . . . 831 GMTTime property . . . . . . . . . . . . . . . . . . . . 884
CreateReplica method . . . . . . . . . . . . . . . . . . 832 IsDST property . . . . . . . . . . . . . . . . . . . . . . . 885
EnableFolder method . . . . . . . . . . . . . . . . . . 833 IsValidDate property . . . . . . . . . . . . . . . . . . . 886
FTDomainSearch method . . . . . . . . . . . . . . . 834 LocalTime property . . . . . . . . . . . . . . . . . . . . 887
FTSearch method . . . . . . . . . . . . . . . . . . . . . . 835 LSGMTTime property . . . . . . . . . . . . . . . . . . 887
GetAgent method . . . . . . . . . . . . . . . . . . . . . 838 LSLocalTime property . . . . . . . . . . . . . . . . . . 888
GetDocumentByID method . . . . . . . . . . . . . . 839 TimeOnly property . . . . . . . . . . . . . . . . . . . . 889
GetDocumentByUNID method . . . . . . . . . . . 841 TimeZone property . . . . . . . . . . . . . . . . . . . . 889
xvii
Sign method . . . . . . . . . . . . . . . . . . . . . . . . . 974 Field class . . . . . . . . . . . . . . . . . . . . . . . . . . 1007
NotesDocumentCollection class . . . . . . . . . 974 Entering event . . . . . . . . . . . . . . . . . . . . . . . 1007
Count property . . . . . . . . . . . . . . . . . . . . . . . 977 Exiting event . . . . . . . . . . . . . . . . . . . . . . . . 1007
IsSorted property . . . . . . . . . . . . . . . . . . . . . . 977 NotesForm class . . . . . . . . . . . . . . . . . . . . . 1008
Parent property . . . . . . . . . . . . . . . . . . . . . . . 978 Aliases property . . . . . . . . . . . . . . . . . . . . . 1009
Query property . . . . . . . . . . . . . . . . . . . . . . . 979 Fields property . . . . . . . . . . . . . . . . . . . . . . 1010
AddDocument method . . . . . . . . . . . . . . . . . 980 FormUsers property . . . . . . . . . . . . . . . . . . 1011
DeleteDocument method . . . . . . . . . . . . . . . . 980 IsSubForm property . . . . . . . . . . . . . . . . . . . 1012
FTSearch method . . . . . . . . . . . . . . . . . . . . . . 981 Name property . . . . . . . . . . . . . . . . . . . . . . 1013
GetDocument method . . . . . . . . . . . . . . . . . . 982 ProtectReaders property . . . . . . . . . . . . . . . 1014
GetFirstDocument method . . . . . . . . . . . . . . 983 ProtectUsers property . . . . . . . . . . . . . . . . . 1015
GetLastDocument method . . . . . . . . . . . . . . . 984 Readers property . . . . . . . . . . . . . . . . . . . . . 1016
GetNextDocument method . . . . . . . . . . . . . . 984 Remove method . . . . . . . . . . . . . . . . . . . . . 1017
GetNthDocument method . . . . . . . . . . . . . . . 985 NotesInternational class . . . . . . . . . . . . . . . 1018
GetPrevDocument method . . . . . . . . . . . . . . 987 AMString property . . . . . . . . . . . . . . . . . . . 1019
PutAllInFolder method . . . . . . . . . . . . . . . . . 988 CurrencyDigits property . . . . . . . . . . . . . . . 1020
RemoveAll method . . . . . . . . . . . . . . . . . . . . 989 CurrencySymbol property . . . . . . . . . . . . . . 1020
RemoveAllFromFolder method . . . . . . . . . . . 989 DateSep property . . . . . . . . . . . . . . . . . . . . . 1021
StampAll method . . . . . . . . . . . . . . . . . . . . . 990 DecimalSep property . . . . . . . . . . . . . . . . . . 1022
UpdateAll method . . . . . . . . . . . . . . . . . . . . . 991 IsCurrencySpace property . . . . . . . . . . . . . . 1023
NotesEmbeddedObject class . . . . . . . . . . . . 992 IsCurrencySuffix property . . . . . . . . . . . . . . 1023
Class property . . . . . . . . . . . . . . . . . . . . . . . . 994 IsCurrencyZero property . . . . . . . . . . . . . . . 1024
FileSize property . . . . . . . . . . . . . . . . . . . . . . 995 IsDateDMY property . . . . . . . . . . . . . . . . . . 1024
FitBelowFields property . . . . . . . . . . . . . . . . 996 IsDateMDY property . . . . . . . . . . . . . . . . . . 1025
FitToWindow property . . . . . . . . . . . . . . . . . 997 IsDateYMD property . . . . . . . . . . . . . . . . . . 1025
Name property . . . . . . . . . . . . . . . . . . . . . . . 998 IsDST property . . . . . . . . . . . . . . . . . . . . . . 1025
Object property . . . . . . . . . . . . . . . . . . . . . . . 999 IsTime24Hour property . . . . . . . . . . . . . . . . 1026
Parent property . . . . . . . . . . . . . . . . . . . . . . . 999 PMString property . . . . . . . . . . . . . . . . . . . . 1026
RunReadOnly property . . . . . . . . . . . . . . . . 1000 ThousandsSep property . . . . . . . . . . . . . . . 1027
Source property . . . . . . . . . . . . . . . . . . . . . . 1000 TimeSep property . . . . . . . . . . . . . . . . . . . . 1027
Type property . . . . . . . . . . . . . . . . . . . . . . . 1001 TimeZone property . . . . . . . . . . . . . . . . . . . 1027
Verbs property . . . . . . . . . . . . . . . . . . . . . . 1002 Today property . . . . . . . . . . . . . . . . . . . . . . 1028
Activate method . . . . . . . . . . . . . . . . . . . . . 1003 Tomorrow property . . . . . . . . . . . . . . . . . . . 1028
DoVerb method . . . . . . . . . . . . . . . . . . . . . . 1005 Yesterday property . . . . . . . . . . . . . . . . . . . 1028
ExtractFile method . . . . . . . . . . . . . . . . . . . 1005 NotesItem class . . . . . . . . . . . . . . . . . . . . . . 1029
Remove method . . . . . . . . . . . . . . . . . . . . . 1006 DateTimeValue property . . . . . . . . . . . . . . . 1033
xix
GetLSDOMasterRevision property . . . . . . . 1101 FieldID method . . . . . . . . . . . . . . . . . . . . . . 1153
SilentMode property . . . . . . . . . . . . . . . . . . 1101 FieldInfo method . . . . . . . . . . . . . . . . . . . . . 1154
CommitTransactions method . . . . . . . . . . . 1102 FieldName method . . . . . . . . . . . . . . . . . . . 1158
ConnectTo method . . . . . . . . . . . . . . . . . . . 1103 FieldNativeDataType method . . . . . . . . . . . 1159
Disconnect method . . . . . . . . . . . . . . . . . . . 1105 FieldSize method . . . . . . . . . . . . . . . . . . . . . 1161
GetError method . . . . . . . . . . . . . . . . . . . . . 1106 FirstRow method . . . . . . . . . . . . . . . . . . . . . 1162
GetErrorMessage method . . . . . . . . . . . . . . 1106 GetError method . . . . . . . . . . . . . . . . . . . . . 1164
GetExtendedErrorMessage method . . . . . . . 1106 GetErrorMessage method . . . . . . . . . . . . . . 1164
IsConnected method . . . . . . . . . . . . . . . . . . 1106 GetExtendedErrorMessage method . . . . . . . 1164
IsSupported method . . . . . . . . . . . . . . . . . . 1107 GetParameter method . . . . . . . . . . . . . . . . . 1164
ListDataSources method . . . . . . . . . . . . . . . 1109 GetParameterName method . . . . . . . . . . . . 1166
ListFields method . . . . . . . . . . . . . . . . . . . . 1110 GetRowStatus method . . . . . . . . . . . . . . . . . 1167
ListProcedures method . . . . . . . . . . . . . . . . 1111 GetValue method . . . . . . . . . . . . . . . . . . . . . 1169
ListTables method . . . . . . . . . . . . . . . . . . . . 1112 HasRowChanged method . . . . . . . . . . . . . . 1171
RollbackTransactions method . . . . . . . . . . . 1113 IsBeginOfData method . . . . . . . . . . . . . . . . 1173
ODBCQuery class . . . . . . . . . . . . . . . . . . . . 1114 IsEndOfData method . . . . . . . . . . . . . . . . . . 1175
Connection property . . . . . . . . . . . . . . . . . . 1115 IsResultSetAvailable method . . . . . . . . . . . . 1176
QueryExecuteTimeOut property . . . . . . . . . 1117 IsValueAltered method . . . . . . . . . . . . . . . . 1177
SQL property . . . . . . . . . . . . . . . . . . . . . . . . 1118 IsValueNull method . . . . . . . . . . . . . . . . . . 1179
UseRowID property . . . . . . . . . . . . . . . . . . 1120 LastRow method . . . . . . . . . . . . . . . . . . . . . 1180
GetError method . . . . . . . . . . . . . . . . . . . . . 1121 LocateRow method . . . . . . . . . . . . . . . . . . . 1181
GetErrorMessage method . . . . . . . . . . . . . . 1121 NextRow method . . . . . . . . . . . . . . . . . . . . 1183
GetExtendedErrorMessage method . . . . . . . 1127 NumColumns method . . . . . . . . . . . . . . . . . 1185
ODBCResultSet class . . . . . . . . . . . . . . . . . 1128 NumParameters method . . . . . . . . . . . . . . . 1186
CacheLimit property . . . . . . . . . . . . . . . . . . 1131 NumRows method . . . . . . . . . . . . . . . . . . . 1187
CurrentRow property . . . . . . . . . . . . . . . . . 1133 PrevRow method . . . . . . . . . . . . . . . . . . . . . 1189
FetchBatchSize property . . . . . . . . . . . . . . . 1135 SetParameter method . . . . . . . . . . . . . . . . . 1190
MaxRows property . . . . . . . . . . . . . . . . . . . 1137 SetValue method . . . . . . . . . . . . . . . . . . . . . 1192
Query property . . . . . . . . . . . . . . . . . . . . . . 1138 UpdateRow method . . . . . . . . . . . . . . . . . . 1194
ReadOnly property . . . . . . . . . . . . . . . . . . . 1139 NotesOutline class . . . . . . . . . . . . . . . . . . . 1196
AddRow method . . . . . . . . . . . . . . . . . . . . . 1140 Alias property . . . . . . . . . . . . . . . . . . . . . . . 1197
Close method . . . . . . . . . . . . . . . . . . . . . . . . 1143 Comment property . . . . . . . . . . . . . . . . . . . 1198
DeleteRow method . . . . . . . . . . . . . . . . . . . 1145 Name property . . . . . . . . . . . . . . . . . . . . . . 1199
ExecProcedure Method . . . . . . . . . . . . . . . . 1147 AddEntry method . . . . . . . . . . . . . . . . . . . . 1199
Execute method . . . . . . . . . . . . . . . . . . . . . . 1147 CreateEntry method . . . . . . . . . . . . . . . . . . 1200
FieldExpectedDataType method . . . . . . . . . 1149 GetFirst method . . . . . . . . . . . . . . . . . . . . . . 1200
xxi
Save method . . . . . . . . . . . . . . . . . . . . . . . . 1258 Underline property . . . . . . . . . . . . . . . . . . . 1300
NotesRichTextItem class . . . . . . . . . . . . . . 1258 NotesRichTextTab class . . . . . . . . . . . . . . . 1301
EmbeddedObjects property . . . . . . . . . . . . . 1261 Position property . . . . . . . . . . . . . . . . . . . . . 1302
AddNewLine method . . . . . . . . . . . . . . . . . 1262 Type property . . . . . . . . . . . . . . . . . . . . . . . 1303
AddPageBreak method . . . . . . . . . . . . . . . . 1263 Clear method . . . . . . . . . . . . . . . . . . . . . . . . 1303
AddTab method . . . . . . . . . . . . . . . . . . . . . 1264 NotesSession class . . . . . . . . . . . . . . . . . . . 1303
AppendDocLink method . . . . . . . . . . . . . . . 1266 AddressBooks property . . . . . . . . . . . . . . . . 1305
AppendParagraphStyle method . . . . . . . . . 1268 CommonUserName property . . . . . . . . . . . 1307
AppendRTItem method . . . . . . . . . . . . . . . . 1269 CurrentAgent property . . . . . . . . . . . . . . . . 1308
AppendStyle method . . . . . . . . . . . . . . . . . . 1270 CurrentDatabase property . . . . . . . . . . . . . . 1309
AppendText method . . . . . . . . . . . . . . . . . . 1271 DocumentContext property . . . . . . . . . . . . . 1310
EmbedObject method . . . . . . . . . . . . . . . . . 1271 EffectiveUserName property . . . . . . . . . . . . 1313
GetEmbeddedObject method . . . . . . . . . . . . 1274 International property . . . . . . . . . . . . . . . . . 1314
GetFormattedText method . . . . . . . . . . . . . 1276 IsOnServer property . . . . . . . . . . . . . . . . . . 1315
NotesRichTextParagraphStyle class . . . . . 1277 LastExitStatus property . . . . . . . . . . . . . . . . 1316
Alignment property . . . . . . . . . . . . . . . . . . . 1278 LastRun property . . . . . . . . . . . . . . . . . . . . 1316
FirstLineLeftMargin property . . . . . . . . . . . 1279 NotesBuildVersion property . . . . . . . . . . . . 1317
InterLineSpacing property . . . . . . . . . . . . . . 1280 NotesVersion property . . . . . . . . . . . . . . . . 1318
LeftMargin property . . . . . . . . . . . . . . . . . . 1281 Platform property . . . . . . . . . . . . . . . . . . . . 1319
Pagination property . . . . . . . . . . . . . . . . . . . 1282 SavedData property . . . . . . . . . . . . . . . . . . . 1320
RightMargin property . . . . . . . . . . . . . . . . . 1283 UserName property . . . . . . . . . . . . . . . . . . . 1321
SpacingAbove property . . . . . . . . . . . . . . . . 1284 UserNameList property . . . . . . . . . . . . . . . . 1322
SpacingBelow property . . . . . . . . . . . . . . . . 1285 CreateDateRange method . . . . . . . . . . . . . . 1323
Tabs property . . . . . . . . . . . . . . . . . . . . . . . 1286 CreateDateTime method . . . . . . . . . . . . . . . 1323
ClearAllTabs method . . . . . . . . . . . . . . . . . . 1287 CreateLog method . . . . . . . . . . . . . . . . . . . . 1324
SetTab method . . . . . . . . . . . . . . . . . . . . . . . 1287 CreateName method . . . . . . . . . . . . . . . . . . 1325
SetTabs method . . . . . . . . . . . . . . . . . . . . . . 1289 CreateNewsletter method . . . . . . . . . . . . . . 1327
NotesRichTextStyle class . . . . . . . . . . . . . . 1290 CreateRichTextParagraphStyle method . . . . 1328
Bold property . . . . . . . . . . . . . . . . . . . . . . . 1292 CreateRichTextStyle method . . . . . . . . . . . . 1329
Effects property . . . . . . . . . . . . . . . . . . . . . . 1293 CreateTimer method . . . . . . . . . . . . . . . . . . 1329
FontSize property . . . . . . . . . . . . . . . . . . . . 1294 FreeTimeSearch method . . . . . . . . . . . . . . . 1331
Italic property . . . . . . . . . . . . . . . . . . . . . . . 1295 GetDatabase method . . . . . . . . . . . . . . . . . . 1333
NotesColor property . . . . . . . . . . . . . . . . . . 1296 GetDbDirectory method . . . . . . . . . . . . . . . 1334
NotesFont property . . . . . . . . . . . . . . . . . . . 1297 GetEnvironmentString method . . . . . . . . . . 1335
PassThruHTML property . . . . . . . . . . . . . . 1298 GetEnvironmentValue method . . . . . . . . . . 1336
Strikethrough property . . . . . . . . . . . . . . . . 1299 SetEnvironmentVar method . . . . . . . . . . . . 1338
xxiii
Paste method . . . . . . . . . . . . . . . . . . . . . . . . 1405 ComposeDocument method . . . . . . . . . . . . 1431
Print method . . . . . . . . . . . . . . . . . . . . . . . . 1406 DialogBox method . . . . . . . . . . . . . . . . . . . . 1433
Refresh method . . . . . . . . . . . . . . . . . . . . . . 1407 EditDocument method . . . . . . . . . . . . . . . . 1437
RefreshHideFormulas method . . . . . . . . . . 1408 EditProfile method . . . . . . . . . . . . . . . . . . . 1438
Reload method . . . . . . . . . . . . . . . . . . . . . . 1409 EnableAlarms method . . . . . . . . . . . . . . . . . 1439
Save method . . . . . . . . . . . . . . . . . . . . . . . . 1410 Folder method . . . . . . . . . . . . . . . . . . . . . . . 1439
SaveNewVersion method . . . . . . . . . . . . . . 1410 GetListOfTunes method . . . . . . . . . . . . . . . 1440
SelectAll method . . . . . . . . . . . . . . . . . . . . . 1411 OpenDatabase method . . . . . . . . . . . . . . . . 1441
Send method . . . . . . . . . . . . . . . . . . . . . . . . 1412 OpenFileDialog method . . . . . . . . . . . . . . . 1442
SpellCheck method . . . . . . . . . . . . . . . . . . . 1413 OpenFrameSet method . . . . . . . . . . . . . . . . 1443
NotesUIView class . . . . . . . . . . . . . . . . . . . 1413 OpenPage method . . . . . . . . . . . . . . . . . . . . 1443
PostDragDrop event . . . . . . . . . . . . . . . . . . 1414 PickListCollection method . . . . . . . . . . . . . . 1444
PostOpen event . . . . . . . . . . . . . . . . . . . . . . 1415 PickListStrings method . . . . . . . . . . . . . . . . 1445
PostPaste event . . . . . . . . . . . . . . . . . . . . . . 1415 PlayTune method . . . . . . . . . . . . . . . . . . . . 1447
QueryAddToFolder event . . . . . . . . . . . . . . 1416 Prompt method . . . . . . . . . . . . . . . . . . . . . . 1447
QueryClose event . . . . . . . . . . . . . . . . . . . . 1417 RefreshParentNote method . . . . . . . . . . . . . 1449
QueryDragDrop event . . . . . . . . . . . . . . . . . 1418 ReloadWindow method . . . . . . . . . . . . . . . 1450
QueryOpen event . . . . . . . . . . . . . . . . . . . . 1418 SaveFileDialog method . . . . . . . . . . . . . . . . 1450
QueryOpenDocument event . . . . . . . . . . . . 1419 SetCurrentLocation method . . . . . . . . . . . . 1451
QueryPaste event . . . . . . . . . . . . . . . . . . . . . 1420 SetTargetFrame method . . . . . . . . . . . . . . . 1452
QueryRecalc event . . . . . . . . . . . . . . . . . . . . 1421 URLOpen method . . . . . . . . . . . . . . . . . . . . 1452
RegionDoubleClick event . . . . . . . . . . . . . . 1422 UseLSX method . . . . . . . . . . . . . . . . . . . . . . 1455
CalendarDateTime property . . . . . . . . . . . . 1422 ViewRefresh method . . . . . . . . . . . . . . . . . . 1455
CaretCategory property . . . . . . . . . . . . . . . . 1423 NotesView class . . . . . . . . . . . . . . . . . . . . . 1457
Documents property . . . . . . . . . . . . . . . . . . 1424 Aliases property . . . . . . . . . . . . . . . . . . . . . 1460
View property . . . . . . . . . . . . . . . . . . . . . . . 1424 AllEntries property . . . . . . . . . . . . . . . . . . . 1461
Viewname property . . . . . . . . . . . . . . . . . . . 1424 AutoUpdate property . . . . . . . . . . . . . . . . . 1461
Print method . . . . . . . . . . . . . . . . . . . . . . . . 1425 BackgroundColor property . . . . . . . . . . . . . 1462
SelectDocument method . . . . . . . . . . . . . . . 1426 ColumnCount property . . . . . . . . . . . . . . . . 1464
NotesUIWorkspace class . . . . . . . . . . . . . . 1426 Columns property . . . . . . . . . . . . . . . . . . . . 1464
CurrentCalendarDateTime property . . . . . . 1428 Created property . . . . . . . . . . . . . . . . . . . . . 1465
CurrentDatabase property . . . . . . . . . . . . . . 1428 HeaderLines property . . . . . . . . . . . . . . . . . 1466
CurrentDocument property . . . . . . . . . . . . . 1429 IsCalendar property . . . . . . . . . . . . . . . . . . 1466
CurrentView property . . . . . . . . . . . . . . . . . 1430 IsCategorized property . . . . . . . . . . . . . . . . 1467
AddDatabase method . . . . . . . . . . . . . . . . . 1430 IsConflict property . . . . . . . . . . . . . . . . . . . 1468
CheckAlarms method . . . . . . . . . . . . . . . . . 1431 IsDefaultView property . . . . . . . . . . . . . . . . 1468
xxv
Width property . . . . . . . . . . . . . . . . . . . . . . 1539 UpdateAll method . . . . . . . . . . . . . . . . . . . . 1569
NotesViewEntry class . . . . . . . . . . . . . . . . . 1539 NotesViewNavigator class . . . . . . . . . . . . . 1570
ChildCount property . . . . . . . . . . . . . . . . . . 1541 MaxLevel property . . . . . . . . . . . . . . . . . . . 1573
ColumnIndentLevel property . . . . . . . . . . . 1542 ParentView property . . . . . . . . . . . . . . . . . . 1574
ColumnValues property . . . . . . . . . . . . . . . 1542 GetChild method . . . . . . . . . . . . . . . . . . . . . 1574
DescendantCount property . . . . . . . . . . . . . 1543 GetEntry method . . . . . . . . . . . . . . . . . . . . . 1575
Document property . . . . . . . . . . . . . . . . . . . 1544 GetFirst method . . . . . . . . . . . . . . . . . . . . . . 1576
FTSearchScore property . . . . . . . . . . . . . . . . 1544 GetFirstDocument method . . . . . . . . . . . . . 1577
IndentLevel property . . . . . . . . . . . . . . . . . . 1545 GetLast method . . . . . . . . . . . . . . . . . . . . . . 1578
IsCategory property . . . . . . . . . . . . . . . . . . 1546 GetLastDocument method . . . . . . . . . . . . . . 1579
IsConflict property . . . . . . . . . . . . . . . . . . . 1547 GetNext method . . . . . . . . . . . . . . . . . . . . . 1579
IsDocument property . . . . . . . . . . . . . . . . . 1548 GetNextCategory method . . . . . . . . . . . . . . 1580
IsTotal property . . . . . . . . . . . . . . . . . . . . . . 1549 GetNextDocument method . . . . . . . . . . . . . 1581
IsValid property . . . . . . . . . . . . . . . . . . . . . 1549 GetNextSibling method . . . . . . . . . . . . . . . . 1582
NoteID property . . . . . . . . . . . . . . . . . . . . . 1550 GetNth method . . . . . . . . . . . . . . . . . . . . . . 1583
Parent property . . . . . . . . . . . . . . . . . . . . . . 1551 GetParent method . . . . . . . . . . . . . . . . . . . . 1584
SiblingCount property . . . . . . . . . . . . . . . . . 1552 GetPos method . . . . . . . . . . . . . . . . . . . . . . 1585
UniversalID property . . . . . . . . . . . . . . . . . 1552 GetPrev method . . . . . . . . . . . . . . . . . . . . . . 1586
GetPosition method . . . . . . . . . . . . . . . . . . . 1553 GetPrevCategory method . . . . . . . . . . . . . . 1587
NotesViewEntryCollection class . . . . . . . . 1554 GetPrevDocument method . . . . . . . . . . . . . 1588
Count property . . . . . . . . . . . . . . . . . . . . . . 1556 GetPrevSibling method . . . . . . . . . . . . . . . . 1589
Parent property . . . . . . . . . . . . . . . . . . . . . . 1556
Volume III
Query property . . . . . . . . . . . . . . . . . . . . . . 1557
9 Java Classes . . . . . . . . . . . . . 1591
AddEntry method . . . . . . . . . . . . . . . . . . . . 1558
Java Classes Coding Guidelines . . . . . . . . . 1591
DeleteEntry method . . . . . . . . . . . . . . . . . . 1558
Running a Java program . . . . . . . . . . . . . . . 1591
FTSearch method . . . . . . . . . . . . . . . . . . . . . 1559
Accessing databases . . . . . . . . . . . . . . . . . . 1603
GetEntry method . . . . . . . . . . . . . . . . . . . . . 1560
Accessing database properties . . . . . . . . 1603
GetFirstEntry method . . . . . . . . . . . . . . . . . 1561
Locating a database on a server or the
GetLastEntry method . . . . . . . . . . . . . . . . . 1562 local directory . . . . . . . . . . . . . . . . . . 1609
GetNextEntry method . . . . . . . . . . . . . . . . . 1563 Opening a database . . . . . . . . . . . . . . . . 1610
GetNthEntry method . . . . . . . . . . . . . . . . . . 1564 Creating, compacting, removing, and
GetPrevEntry method . . . . . . . . . . . . . . . . . 1565 replicating a database . . . . . . . . . . . . 1614
PutAllInFolder method . . . . . . . . . . . . . . . . 1566 Examining and adjusting an access
RemoveAll method . . . . . . . . . . . . . . . . . . . 1567 control list . . . . . . . . . . . . . . . . . . . . . 1616
xxvii
Level property . . . . . . . . . . . . . . . . . . . . . . . 1724 SavedData property . . . . . . . . . . . . . . . . . . . 1765
Name property . . . . . . . . . . . . . . . . . . . . . . 1726 UnprocessedDocuments property . . . . . . . . 1766
NameObject property . . . . . . . . . . . . . . . . . 1727 unprocessedFTSearch method . . . . . . . . . . . 1768
Parent property . . . . . . . . . . . . . . . . . . . . . . 1728 unprocessedSearch method . . . . . . . . . . . . . 1772
Roles property . . . . . . . . . . . . . . . . . . . . . . . 1729 updateProcessedDoc method . . . . . . . . . . . 1775
UserType property . . . . . . . . . . . . . . . . . . . 1730 Database class . . . . . . . . . . . . . . . . . . . . . . . 1776
disableRole method . . . . . . . . . . . . . . . . . . . 1732 ACL property . . . . . . . . . . . . . . . . . . . . . . . 1783
enableRole method . . . . . . . . . . . . . . . . . . . 1733 Agents property . . . . . . . . . . . . . . . . . . . . . 1784
isRoleEnabled method . . . . . . . . . . . . . . . . . 1734 AllDocuments property . . . . . . . . . . . . . . . . 1785
remove method . . . . . . . . . . . . . . . . . . . . . . 1735 Categories property . . . . . . . . . . . . . . . . . . . 1786
Agent class . . . . . . . . . . . . . . . . . . . . . . . . . 1736 Created property . . . . . . . . . . . . . . . . . . . . . 1787
Comment property . . . . . . . . . . . . . . . . . . . 1738 CurrentAccessLevel property . . . . . . . . . . . 1788
CommonOwner property . . . . . . . . . . . . . . 1739 DesignTemplateName property . . . . . . . . . 1790
IsEnabled property . . . . . . . . . . . . . . . . . . . 1740 FileName property . . . . . . . . . . . . . . . . . . . 1791
IsNotesAgent property . . . . . . . . . . . . . . . . 1742 FilePath property . . . . . . . . . . . . . . . . . . . . . 1791
IsPublic property . . . . . . . . . . . . . . . . . . . . . 1743 FolderReferencesEnabled property . . . . . . . 1792
IsWebAgent property . . . . . . . . . . . . . . . . . 1744 Forms property . . . . . . . . . . . . . . . . . . . . . . 1794
LastRun property . . . . . . . . . . . . . . . . . . . . 1744 IsDelayUpdates property . . . . . . . . . . . . . . 1794
Name property . . . . . . . . . . . . . . . . . . . . . . 1746 IsFTIndexed property . . . . . . . . . . . . . . . . . 1796
Owner property . . . . . . . . . . . . . . . . . . . . . . 1746 IsMultiDbSearch property . . . . . . . . . . . . . . 1797
Parent property . . . . . . . . . . . . . . . . . . . . . . 1747 IsOpen property . . . . . . . . . . . . . . . . . . . . . 1798
Query property . . . . . . . . . . . . . . . . . . . . . . 1748 IsPrivateAddressBook property . . . . . . . . . 1799
ServerName property . . . . . . . . . . . . . . . . . 1749 IsPublicAddressBook property . . . . . . . . . . 1800
Target property . . . . . . . . . . . . . . . . . . . . . . 1751 LastFTIndexed property . . . . . . . . . . . . . . . 1801
Trigger property . . . . . . . . . . . . . . . . . . . . . 1753 LastModified property . . . . . . . . . . . . . . . . 1802
remove method . . . . . . . . . . . . . . . . . . . . . . 1753 Managers property . . . . . . . . . . . . . . . . . . . 1803
run method . . . . . . . . . . . . . . . . . . . . . . . . . 1755 MaxSize property . . . . . . . . . . . . . . . . . . . . 1804
runOnServer method . . . . . . . . . . . . . . . . . . 1756 Parent property . . . . . . . . . . . . . . . . . . . . . . 1805
save method . . . . . . . . . . . . . . . . . . . . . . . . 1757 PercentUsed property . . . . . . . . . . . . . . . . . 1805
AgentContext class . . . . . . . . . . . . . . . . . . . 1757 ReplicaID property . . . . . . . . . . . . . . . . . . . 1806
CurrentAgent property . . . . . . . . . . . . . . . . 1759 ReplicationInfo property . . . . . . . . . . . . . . . 1807
CurrentDatabase property . . . . . . . . . . . . . . 1760 Server property . . . . . . . . . . . . . . . . . . . . . . 1808
DocumentContext property . . . . . . . . . . . . . 1761 Size property . . . . . . . . . . . . . . . . . . . . . . . . 1809
EffectiveUserName property . . . . . . . . . . . . 1762 SizeQuota property . . . . . . . . . . . . . . . . . . . 1810
LastExitStatus property . . . . . . . . . . . . . . . . 1763 TemplateName property . . . . . . . . . . . . . . . 1811
LastRun property . . . . . . . . . . . . . . . . . . . . 1764 Title property . . . . . . . . . . . . . . . . . . . . . . . . 1812
xxix
HasEmbedded property . . . . . . . . . . . . . . . 1901 getItemValueInteger method . . . . . . . . . . . . 1938
IsEncryptOnSend property . . . . . . . . . . . . . 1902 getItemValueString method . . . . . . . . . . . . . 1939
IsNewNote property . . . . . . . . . . . . . . . . . . 1903 hasItem method . . . . . . . . . . . . . . . . . . . . . . 1940
IsProfile property . . . . . . . . . . . . . . . . . . . . 1904 makeResponse method . . . . . . . . . . . . . . . . 1940
IsResponse property . . . . . . . . . . . . . . . . . . 1905 putInFolder method . . . . . . . . . . . . . . . . . . 1941
IsSaveMessageOnSend property . . . . . . . . . 1905 remove method . . . . . . . . . . . . . . . . . . . . . . 1943
IsSentByAgent property . . . . . . . . . . . . . . . 1906 removeFromFolder method . . . . . . . . . . . . . 1944
IsSigned property . . . . . . . . . . . . . . . . . . . . 1907 removeItem method . . . . . . . . . . . . . . . . . . 1945
IsSignOnSend property . . . . . . . . . . . . . . . . 1908 renderToRTItem method . . . . . . . . . . . . . . . 1946
IsValid property . . . . . . . . . . . . . . . . . . . . . 1909 replaceItemValue method . . . . . . . . . . . . . . 1947
Items property . . . . . . . . . . . . . . . . . . . . . . . 1910 save method . . . . . . . . . . . . . . . . . . . . . . . . 1950
Key property . . . . . . . . . . . . . . . . . . . . . . . . 1911 send method . . . . . . . . . . . . . . . . . . . . . . . . 1951
LastAccessed property . . . . . . . . . . . . . . . . 1911 sign method . . . . . . . . . . . . . . . . . . . . . . . . . 1954
LastModified property . . . . . . . . . . . . . . . . 1912 DocumentCollection class . . . . . . . . . . . . . 1954
NameOfProfile property . . . . . . . . . . . . . . . 1912 Count property . . . . . . . . . . . . . . . . . . . . . . 1957
NoteID property . . . . . . . . . . . . . . . . . . . . . 1912 IsSorted property . . . . . . . . . . . . . . . . . . . . . 1957
ParentDatabase property . . . . . . . . . . . . . . . 1913 Parent property . . . . . . . . . . . . . . . . . . . . . . 1959
ParentDocumentUNID property . . . . . . . . . 1914 Query property . . . . . . . . . . . . . . . . . . . . . . 1960
ParentView property . . . . . . . . . . . . . . . . . . 1915 addDocument method . . . . . . . . . . . . . . . . . 1961
Responses property . . . . . . . . . . . . . . . . . . . 1916 deleteDocument method . . . . . . . . . . . . . . . 1962
Signer property . . . . . . . . . . . . . . . . . . . . . . 1918 FTSearch method . . . . . . . . . . . . . . . . . . . . . 1964
Size property . . . . . . . . . . . . . . . . . . . . . . . . 1918 getDocument method . . . . . . . . . . . . . . . . . 1965
UniversalID property . . . . . . . . . . . . . . . . . 1919 getFirstDocument method . . . . . . . . . . . . . . 1967
Verifier property . . . . . . . . . . . . . . . . . . . . . 1920 getLastDocument method . . . . . . . . . . . . . . 1967
appendItemValue method . . . . . . . . . . . . . . 1921 getNextDocument method . . . . . . . . . . . . . 1967
computeWithForm method . . . . . . . . . . . . . 1923 getNthDocument method . . . . . . . . . . . . . . 1969
copyAllItems method . . . . . . . . . . . . . . . . . 1925 getPrevDocument method . . . . . . . . . . . . . . 1971
copyItem method . . . . . . . . . . . . . . . . . . . . . 1926 putAllInFolder method . . . . . . . . . . . . . . . . 1972
copyToDatabase method . . . . . . . . . . . . . . . 1928 removeAll method . . . . . . . . . . . . . . . . . . . . 1974
createReplyMessage method . . . . . . . . . . . . 1929 removeAllFromFolder method . . . . . . . . . . 1975
createRichTextItem method . . . . . . . . . . . . . 1930 stampAll method . . . . . . . . . . . . . . . . . . . . . 1976
encrypt method . . . . . . . . . . . . . . . . . . . . . . 1931 updateAll method . . . . . . . . . . . . . . . . . . . . 1977
getAttachment method . . . . . . . . . . . . . . . . 1933 EmbeddedObject class . . . . . . . . . . . . . . . . 1978
getFirstItem method . . . . . . . . . . . . . . . . . . 1934 ClassName property . . . . . . . . . . . . . . . . . . 1980
getItemValue method . . . . . . . . . . . . . . . . . 1936 FileSize property . . . . . . . . . . . . . . . . . . . . . 1981
getItemValueDouble method . . . . . . . . . . . . 1938 Name property . . . . . . . . . . . . . . . . . . . . . . 1981
xxxi
NumErrors property . . . . . . . . . . . . . . . . . . 2049 SurName property . . . . . . . . . . . . . . . . . . . . 2076
Parent property . . . . . . . . . . . . . . . . . . . . . . 2050 Newsletter class . . . . . . . . . . . . . . . . . . . . . 2076
ProgramName property . . . . . . . . . . . . . . . 2050 IsDoScore property . . . . . . . . . . . . . . . . . . . 2079
close method . . . . . . . . . . . . . . . . . . . . . . . . 2051 IsDoSubject property . . . . . . . . . . . . . . . . . . 2079
logAction method . . . . . . . . . . . . . . . . . . . . 2052 Parent property . . . . . . . . . . . . . . . . . . . . . . 2080
logError method . . . . . . . . . . . . . . . . . . . . . 2053 SubjectItemName property . . . . . . . . . . . . . 2080
logEvent method . . . . . . . . . . . . . . . . . . . . . 2055 formatDocument method . . . . . . . . . . . . . . 2081
openAgentLog method . . . . . . . . . . . . . . . . 2056 formatMsgWithDoclinks method . . . . . . . . 2083
openFileLog method . . . . . . . . . . . . . . . . . . 2057 Outline class . . . . . . . . . . . . . . . . . . . . . . . . 2085
openMailLog method . . . . . . . . . . . . . . . . . 2059 Alias property . . . . . . . . . . . . . . . . . . . . . . . 2088
openNotesLog method . . . . . . . . . . . . . . . . 2060 Comment property . . . . . . . . . . . . . . . . . . . 2089
Name class . . . . . . . . . . . . . . . . . . . . . . . . . 2062 Name property . . . . . . . . . . . . . . . . . . . . . . 2089
Abbreviated property . . . . . . . . . . . . . . . . . 2065 addEntry method . . . . . . . . . . . . . . . . . . . . 2089
Addr821 property . . . . . . . . . . . . . . . . . . . . 2065 createEntry method . . . . . . . . . . . . . . . . . . . 2090
Addr822Comment1 property . . . . . . . . . . . 2065 getFirst method . . . . . . . . . . . . . . . . . . . . . . 2091
Addr822Comment2 property . . . . . . . . . . . 2066 getLast method . . . . . . . . . . . . . . . . . . . . . . 2092
Addr822Comment3 property . . . . . . . . . . . 2066 getNext method . . . . . . . . . . . . . . . . . . . . . . 2093
Addr822LocalPart property . . . . . . . . . . . . . 2066 getNextSibling method . . . . . . . . . . . . . . . . 2093
Addr822Phrase property . . . . . . . . . . . . . . . 2067 getParent method . . . . . . . . . . . . . . . . . . . . 2094
ADMD property . . . . . . . . . . . . . . . . . . . . . 2067 getPrev method . . . . . . . . . . . . . . . . . . . . . . 2095
Canonical property . . . . . . . . . . . . . . . . . . . 2067 getPrevSibling method . . . . . . . . . . . . . . . . 2095
Common property . . . . . . . . . . . . . . . . . . . . 2068 moveEntry method . . . . . . . . . . . . . . . . . . . 2096
Country property . . . . . . . . . . . . . . . . . . . . 2068 removeEntry method . . . . . . . . . . . . . . . . . . 2098
Generation property . . . . . . . . . . . . . . . . . . 2068 save method . . . . . . . . . . . . . . . . . . . . . . . . 2099
Given property . . . . . . . . . . . . . . . . . . . . . . 2069 OutlineEntry class . . . . . . . . . . . . . . . . . . . 2099
Initials property . . . . . . . . . . . . . . . . . . . . . . 2069 Alias property . . . . . . . . . . . . . . . . . . . . . . . 2100
IsHierarchical property . . . . . . . . . . . . . . . . 2069 Database property . . . . . . . . . . . . . . . . . . . . 2101
Keyword property . . . . . . . . . . . . . . . . . . . . 2070 Document property . . . . . . . . . . . . . . . . . . . 2101
Language property . . . . . . . . . . . . . . . . . . . 2070 EntryClass property . . . . . . . . . . . . . . . . . . 2102
Organization property . . . . . . . . . . . . . . . . . 2074 Formula property . . . . . . . . . . . . . . . . . . . . 2102
OrgUnit1 property . . . . . . . . . . . . . . . . . . . . 2074 FrameText property . . . . . . . . . . . . . . . . . . . 2103
OrgUnit2 property . . . . . . . . . . . . . . . . . . . . 2074 HasChildren property . . . . . . . . . . . . . . . . . 2103
OrgUnit3 property . . . . . . . . . . . . . . . . . . . . 2075 ImagesText property . . . . . . . . . . . . . . . . . . 2105
OrgUnit4 property . . . . . . . . . . . . . . . . . . . . 2075 IsHidden property . . . . . . . . . . . . . . . . . . . . 2105
Parent property . . . . . . . . . . . . . . . . . . . . . . 2075 IsInThisDB property . . . . . . . . . . . . . . . . . . 2106
PRMD property . . . . . . . . . . . . . . . . . . . . . . 2076 IsPrivate property . . . . . . . . . . . . . . . . . . . . 2106
xxxiii
RightMargin property . . . . . . . . . . . . . . . . . 2167 createName method . . . . . . . . . . . . . . . . . . 2197
SpacingAbove property . . . . . . . . . . . . . . . . 2168 createNewsletter method . . . . . . . . . . . . . . . 2198
SpacingBelow property . . . . . . . . . . . . . . . . 2168 createRegistration method . . . . . . . . . . . . . . 2198
Tabs property . . . . . . . . . . . . . . . . . . . . . . . 2169 createRichTextParagraphStyle method . . . . 2199
clearAllTabs method . . . . . . . . . . . . . . . . . . 2169 createRichTextStyle method . . . . . . . . . . . . 2199
setTab method . . . . . . . . . . . . . . . . . . . . . . . 2170 evaluate method . . . . . . . . . . . . . . . . . . . . . 2200
setTabs method . . . . . . . . . . . . . . . . . . . . . . 2170 freeTimeSearch method . . . . . . . . . . . . . . . . 2202
RichTextStyle class . . . . . . . . . . . . . . . . . . . 2172 getDatabase method . . . . . . . . . . . . . . . . . . 2203
Bold property . . . . . . . . . . . . . . . . . . . . . . . 2174 getDbDirectory method . . . . . . . . . . . . . . . . 2204
Color property . . . . . . . . . . . . . . . . . . . . . . . 2174 getEnvironmentString method . . . . . . . . . . 2205
Effects property . . . . . . . . . . . . . . . . . . . . . . 2175 getEnvironmentValue method . . . . . . . . . . 2207
Font property . . . . . . . . . . . . . . . . . . . . . . . 2176 getURLDatabase method . . . . . . . . . . . . . . . 2209
FontSize property . . . . . . . . . . . . . . . . . . . . 2177 resolve method . . . . . . . . . . . . . . . . . . . . . . 2210
Italic property . . . . . . . . . . . . . . . . . . . . . . . 2177 setEnvironmentVar method . . . . . . . . . . . . 2210
Parent property . . . . . . . . . . . . . . . . . . . . . . 2178 View class . . . . . . . . . . . . . . . . . . . . . . . . . . 2212
StrikeThrough property . . . . . . . . . . . . . . . . 2178 Aliases property . . . . . . . . . . . . . . . . . . . . . 2217
Underline property . . . . . . . . . . . . . . . . . . . 2179 AllEntries property . . . . . . . . . . . . . . . . . . . 2218
RichTextTab class . . . . . . . . . . . . . . . . . . . . 2179 BackgroundColor property . . . . . . . . . . . . . 2219
Position property . . . . . . . . . . . . . . . . . . . . . 2181 ColumnCount property . . . . . . . . . . . . . . . . 2221
Type property . . . . . . . . . . . . . . . . . . . . . . . 2182 ColumnNames property . . . . . . . . . . . . . . . 2222
clear method . . . . . . . . . . . . . . . . . . . . . . . . 2182 Columns property . . . . . . . . . . . . . . . . . . . . 2222
Session class . . . . . . . . . . . . . . . . . . . . . . . . 2182 Created property . . . . . . . . . . . . . . . . . . . . . 2223
AddressBooks property . . . . . . . . . . . . . . . . 2185 HeaderLines property . . . . . . . . . . . . . . . . . 2224
AgentContext property . . . . . . . . . . . . . . . . 2187 IsAutoUpdate property . . . . . . . . . . . . . . . . 2225
CommonUserName property . . . . . . . . . . . 2187 IsCalendar property . . . . . . . . . . . . . . . . . . 2226
International property . . . . . . . . . . . . . . . . . 2188 IsCategorized property . . . . . . . . . . . . . . . . 2227
IsOnServer property . . . . . . . . . . . . . . . . . . 2189 IsConflict property . . . . . . . . . . . . . . . . . . . 2228
NotesVersion property . . . . . . . . . . . . . . . . 2190 IsDefaultView property . . . . . . . . . . . . . . . . 2228
Platform property . . . . . . . . . . . . . . . . . . . . 2191 IsFolder property . . . . . . . . . . . . . . . . . . . . . 2229
ServerName property . . . . . . . . . . . . . . . . . 2192 IsHierarchical property . . . . . . . . . . . . . . . . 2230
UserName property . . . . . . . . . . . . . . . . . . . 2193 IsModified property . . . . . . . . . . . . . . . . . . 2230
UserNameList property . . . . . . . . . . . . . . . . 2194 IsPrivate property . . . . . . . . . . . . . . . . . . . . 2231
UserNameObject property . . . . . . . . . . . . . . 2194 IsProtectReaders property . . . . . . . . . . . . . . 2232
createDateRange method . . . . . . . . . . . . . . . 2195 LastModified property . . . . . . . . . . . . . . . . 2233
createDateTime method . . . . . . . . . . . . . . . . 2196 Name property . . . . . . . . . . . . . . . . . . . . . . 2234
createLog method . . . . . . . . . . . . . . . . . . . . 2197 Parent property . . . . . . . . . . . . . . . . . . . . . . 2235
xxxv
DescendantCount property . . . . . . . . . . . . . 2308 getChild method . . . . . . . . . . . . . . . . . . . . . 2337
Document property . . . . . . . . . . . . . . . . . . . 2308 getCurrent method . . . . . . . . . . . . . . . . . . . 2340
FTSearchScore property . . . . . . . . . . . . . . . . 2309 getFirst method . . . . . . . . . . . . . . . . . . . . . . 2340
IndentLevel property . . . . . . . . . . . . . . . . . . 2309 getFirstDocument method . . . . . . . . . . . . . . 2342
IsCategory property . . . . . . . . . . . . . . . . . . 2310 getLast method . . . . . . . . . . . . . . . . . . . . . . 2343
IsConflict property . . . . . . . . . . . . . . . . . . . 2310 getLastDocument method . . . . . . . . . . . . . . 2345
IsDocument property . . . . . . . . . . . . . . . . . 2310 getNext method . . . . . . . . . . . . . . . . . . . . . . 2346
IsTotal property . . . . . . . . . . . . . . . . . . . . . . 2311 getNextCategory method . . . . . . . . . . . . . . 2346
IsValid property . . . . . . . . . . . . . . . . . . . . . 2311 getNextDocument method . . . . . . . . . . . . . 2347
NoteID property . . . . . . . . . . . . . . . . . . . . . 2312 getNextSibling method . . . . . . . . . . . . . . . . 2348
Parent property . . . . . . . . . . . . . . . . . . . . . . 2312 getNth method . . . . . . . . . . . . . . . . . . . . . . 2349
SiblingCount property . . . . . . . . . . . . . . . . . 2313 getParent method . . . . . . . . . . . . . . . . . . . . 2350
UniversalID property . . . . . . . . . . . . . . . . . 2313 getPos method . . . . . . . . . . . . . . . . . . . . . . . 2351
getPosition method . . . . . . . . . . . . . . . . . . . 2313 getPrev method . . . . . . . . . . . . . . . . . . . . . . 2352
ViewEntryCollection class . . . . . . . . . . . . . 2314 getPrevCategory method . . . . . . . . . . . . . . . 2353
Count property . . . . . . . . . . . . . . . . . . . . . . 2316 getPrevDocument method . . . . . . . . . . . . . . 2354
Parent property . . . . . . . . . . . . . . . . . . . . . . 2316 getPrevSibling method . . . . . . . . . . . . . . . . 2354
Query property . . . . . . . . . . . . . . . . . . . . . . 2317 gotoChild method . . . . . . . . . . . . . . . . . . . . 2355
addEntry method . . . . . . . . . . . . . . . . . . . . 2317 gotoEntry method . . . . . . . . . . . . . . . . . . . . 2357
deleteEntry method . . . . . . . . . . . . . . . . . . . 2318 gotoFirst method . . . . . . . . . . . . . . . . . . . . . 2358
FTSearch method . . . . . . . . . . . . . . . . . . . . . 2320 gotoFirstDocument method . . . . . . . . . . . . . 2359
getEntry method . . . . . . . . . . . . . . . . . . . . . 2321 gotoLast method . . . . . . . . . . . . . . . . . . . . . 2360
getFirstEntry method . . . . . . . . . . . . . . . . . . 2323 gotoLastDocument method . . . . . . . . . . . . . 2362
getLastEntry method . . . . . . . . . . . . . . . . . . 2324 gotoNext method . . . . . . . . . . . . . . . . . . . . . 2363
getNextEntry method . . . . . . . . . . . . . . . . . 2325 gotoNextCategory method . . . . . . . . . . . . . 2364
getNthEntry method . . . . . . . . . . . . . . . . . . 2326 gotoNextDocument method . . . . . . . . . . . . 2365
getPrevEntry method . . . . . . . . . . . . . . . . . 2327 gotoNextSibling method . . . . . . . . . . . . . . . 2365
putAllInFolder method . . . . . . . . . . . . . . . . 2327 gotoParent method . . . . . . . . . . . . . . . . . . . 2366
removeAll method . . . . . . . . . . . . . . . . . . . . 2329 gotoPos method . . . . . . . . . . . . . . . . . . . . . . 2366
removeAllFromFolder method . . . . . . . . . . 2330 gotoPrev method . . . . . . . . . . . . . . . . . . . . . 2367
stampAll method . . . . . . . . . . . . . . . . . . . . . 2331 gotoPrevCategory method . . . . . . . . . . . . . . 2367
updateAll method . . . . . . . . . . . . . . . . . . . . 2332 gotoPrevDocument method . . . . . . . . . . . . . 2368
ViewNavigator class . . . . . . . . . . . . . . . . . . 2333 gotoPrevSibling method . . . . . . . . . . . . . . . 2369
CacheSize property . . . . . . . . . . . . . . . . . . . 2336
Index . . . . . . . . . . . . . . . . . . . Index-1
MaxLevel property . . . . . . . . . . . . . . . . . . . 2336
ParentView property . . . . . . . . . . . . . . . . . . 2337
xxxvii
Volume 3: Java Classes
Chapter 9, “Java Classes Coding Guidelines,” provides guidelines for
working in Domino through Java.
Chapter 10, “Java Classes A–Z,” is an A–Z reference of the Java
Domino methods.
Conventions
In Volume 1, keywords listed under “Syntax” are enclosed in brackets and
bold face type.
In Volume 2, parameters which appear in brackets are optional.
Preface xxxix
LotusScript Language Guide Describes the basic building blocks of
LotusScript, how to use the language to
create applications, an overview of the
LotusScript programming language, and a
comprehensive list of language elements.
Domino Enterprise Provides information on how to set up
Integration Guide Domino Connectors, how to utilize Domino
Enterprise Connection Services (DECS) to
access enterprise data in real-time, and
reference material for programming with
the LotusScript Extension for Domino
Connectors.
Managing Domino Databases Provides information on managing
databases, including putting databases into
production, setting up access control lists and
replication, and maintaining databases.
Notes
Help *
Step by Step **
Managing Domino
Databases
The documentation for the Java classes consists of guidelines and an A-to-Z
reference.
This documentation does not cover the Java language, which is a product of
Sun Microsystems, Inc. See http://java.sun.com/products/jdk.
Requirements
Server requirements
Remote calls require access to a Release 5 Domino server.
The server tasks HTTP and DIIOP must be running. Ensure that the server
notes.ini file contains the following line:
ServerTasks=<any other tasks>,http,diiop
Or you can start the tasks later with the load console command.
1591
The server document in the Domino Directory (under Server\Servers) must
permit and restrict remote calls as desired:
Under Internet Protocols - IIOP, specify the number of threads to be
allocated for handling remote calls.
Under Ports - Internet Ports - DIIOP, set up the TCP/IP port for
non-encrypted transfers and the SSL port for encrypted transfers.
Indicate whether access is permitted by name and password, and
whether anonymous access is allowed.
Under Security - Server Access, fill in Access server, Not access server,
Create new databases, and Create replica databases as desired.
Fill in Security - DIIOP Restrictions as desired.
A server refreshes its cache of security options approximately every half
hour. The console command “tell diiop refresh” forces an immediate
refresh.
SSL security for CORBA based Domino Object applications/applets builds
on the Web Server SSL security. You must first setup the Web server
security using the “Domino R5 Certificate Authority” application.
Designer requirements
Compilation of a Java program using the lotus.domino package requires
installation of Domino Designer Release 5.
Ensure that the notes.ini file of the Designer machine contains the following
line:
ALLOW_NOTES_PACKAGE_APPLETS=1
Accessing databases
The Database class represents a Domino database and provides access to
the constituent views, documents, forms, access control list, and properties.
Accessing database properties
Locating a database on a server or the local directory
Opening a database
Creating, compacting, removing, and replicating a database
Examining and adjusting an access control list
Accessing a form
Accessing an outline
Opening a database
Use the getDatabase method of Session or the openDatabase method of
DbDirectory to open a specified database.
Use the CurrentDatabase property of AgentContext to open the current
database, if your program is an agent.
Use:
openByReplicaID of DbDirectory to open a database whose server and
replica ID are known. You can obtain the replica ID from a database
that is already open with the ReplicaID property of Database.
openIfModified of DbDirectory opens a database only if it was
modified after a specified date.
openMailDatabase of DbDirectory opens the user’s mail database.
getURLDatabase of Session opens the default Web Navigator database.
Use the open method of Database to open a database whose object you set,
for example, with getFirstDatabase, getNextDatabase, or getAddressBooks.
You can access a subset of the Database methods on a closed database, but
must explicitly open the database to access all methods. See isOpen for
details.
The AddressBooks property of Session accesses the Domino Directories and
Personal Address Books available to the current session. The
isPrivateAddressBook and isPublicAddressBook properties of Database
distinguish between Domino Directories and Private Address Books.
For remote sessions only, the resolve method of Session returns the
Database, View, Form, Document, or Agent object that a URL addresses.
Databases can be accessed through the Parent or ParentDatabase property
of objects that the database contains.
You must use the save method of ACL to write to permanent storage
changes you make to the ACL and ACL entries. Otherwise, the changes are
lost when your program exits.
Locating a view
If the name of the view or folder is known, specify it to getView in
Database. The view or folder name must be specified exactly, including
cascades, remembering to escape backslashes. For example, “Certificates
and ID Information\Cross Certificates” must be specified as “Certificates
and ID Information\\Cross Certificates” if it is a Java string literal.
You can use an alias in place of the name.
To get all views and folders, or to locate a view or folder when the name or
an alias is not known, use getViews in Database. To locate the view or
folder from which a document or view entry is accessed, use getParentView
in Document, getParentView in ViewNavigator, getParent in ViewEntry, or
getParent in ViewEntryCollection.
View entries
A ViewEntry object represents a row in a view and can be of type category,
document, or total. The following methods access a ViewEntry object:
getChildCount
getColumnIndentLevel
getColumnValues
getDescendantCount
getDocument
getFTSearchScore
getIndentLevel
getPosition
isCategory
isConflict
isDocument
View navigators
A ViewNavigator object provides goto methods to position you at a view
entry and get methods to both position you at a view entry and return it.
gotoFirst, getFirst, gotoNext, getNext, gotoLast, getLast, gotoPrev, and
getPrev navigate sequentially.
gotoFirstDocument, getFirstDocument, gotoNextCategory,
getNextCategory, gotoNextDocument, getNextDocument,
gotoLastDocument, getLastDocument, gotoPrevCategory,
getPrevCategory, gotoPrevDocument, and getPrevDocument navigate
sequentially by type of entry.
entry.getDocument().getItemValueString("Subject"));
entry = vec.getNextEntry(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
Removing a view
The remove method of View removes a view or folder from a database.
Accessing documents
The Document class lets you examine and manipulate document attributes
and contents. You gain access to a Document object through methods in the
Database, View, ViewEntry, and DocumentCollection classes. See
“Accessing views and folders” for accessing documents through views. You
can:
Access document properties
Collect all documents and unprocessed documents
2. This agent traverses all the unprocessed documents associated with the
current agent. If the agent, for example, processes selected documents,
this code traverses all selected documents.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DocumentCollection dc =
agentContext.getUnprocessedDocuments();
Document doc = dc.getFirstDocument();
while (doc != null) {
System.out.println(
doc.getItemValueString("Subject"));
doc = dc.getNextDocument(); }
} catch(Exception e) {
Locating a document by ID
If you have saved or acquired the note ID or universal ID of a document,
you can find a single document by specifying the ID in getDocumentByID
or getDocumentByUNID of Database. You can get these IDs from
getNoteID and getUniversalID in Document.
Creating a document
Use createDocument in Database to create a new document.
See “Creating an item and assigning values” for instructions on adding item
values.
Use save in Document to post the new document to the database in storage.
Otherwise, the new document is lost when the program exits.
Removing a document
Use remove in Document to remove a document from a database. Use
removeAll in DocumentCollection to remove all documents in a collection
from a database.
Mailing a document
Use the send method of Document to mail a document. You can specify the
recipient in the second parameter or omit the parameter and use the SendTo
field of the document. Specify the first parameter as true to include the form
in the mailed document.
To save the document after it is mailed, you can set saveMessageOnSend to
true before mailing the document.
To sign the mail, use isSignOnSend or sign in Document before sending the
mail. Use save afterwards if you want to save the signature. You can check
for a signature with isSigned, and get the signer and signature verifier with
getSigner and getVerifier.
To encrypt the mail, set encryptOnSend in Document to true before sending
the mail. Do not use the encrypt method.
Use createReplyMessage in Document to create a new document that is a
reply to the current document. The new document uses the default mail
form for replies.
Use isSentByAgent in Document to determine if a message was generated
programmatically.
Accessing items
The Item and RichTextItem classes let you examine and manipulate item
properties and contents. You gain access to an Item or RichTextItem object
through various methods in the Document class. The RichTextItem class
inherits from Item, meaning that RichTextItem objects can use all the
properties and methods of Item. You can:
Access item properties
Get an item and its values
Create an item and assign values
Copy an item
Remove an item
Work with a rich text item
Work with an embedded object
Copying an item
Use copyItemToDocument in Item to copy the current item to another
document. Use copyAllItems in Document to copy all items in the current
document to another document.
Use copyItem in Document to copy an item to another item in the same
document.
Removing an item
Use either remove in Item or removeItem in Document to remove an item
from a document. The remove method removes only the current object —
other items with the same name remain in existence. The removeItem
method removes all items with the specified name.
After removing an item, you must call save for the Document object that
contained the item or the update is lost when the program exits.
Accessing agents
Two classes provide access to agents: AgentContext and Agent.
AgentContext
The AgentContext class provides a means to access attributes of the current
agent environment for programs that are running as agents. Call
getAgentContext in Session to get the current agent context;
getAgentContext returns null if the program is not running as an agent.
The following methods access the AgentContext properties:
getCurrentAgent returns an Agent object representing the current
agent.
getCurrentDatabase returns a Database object representing the
database containing the current agent.
getDocumentContext returns a Document object representing the
in-memory document when the agent starts.
getEffectiveUserName returns a String value containing the user name
that is in effect for the agent.
getLastExitStatus returns an int value containing the exit status for the
last time the agent ran.
getLastRun returns a DateTime object representing the last time the
agent ran.
getSavedData returns a Document object representing information
stored between invocations of the agent.
getUnprocessedDocuments returns a DocumentCollection object
representing the documents in the database that the agent considers
“unprocessed.”
The unprocessedFTSearch and unprocessedSearch methods return
DocumentCollection objects representing “unprocessed” documents that
meet search criteria. The updateProcessedDoc method marks documents as
“processed” for future searches for new and modified documents.
Representing a name
A Name object allows you to represent a user or server name so that you
can access the parts of the name as properties. Use createName in Session to
create a Name object and specify a name. If the name is in the form of a
hierarchical name, it is treated as a hierarchical name; otherwise, it is
treated as a flat name. Use getUserNameList to get a vector of Name objects
representing the user name and alternate user name; use
getUserNameObject in Session to get a Name object representing the
current user or server.
These are the lotus.domino classes that access the Domino Objects.
Following each class are alphabetical descriptions of the properties and
methods for that class. A “property” consists of the Java methods that
get/set properties of Domino Objects. To find the property or method you
want, turn to the class that the property or method belongs to.
The Domino Objects classes start with ACL. Preceding them are the
specifications for the supporting classes AgentBase, AppletBase, Base,
NotesError, NotesException, NotesFactory, and NotesThread, the general
methods getURL, recycle, and toString, and the Visibility interface. Also
listed are the constants used by the Domiono Objects classes.
1661
ACL file cur env prog mail read mod
getEntry X X
getFirstEntry X X
getNextEntry X X
renameRole X X
save X X X
AgentBase class
Notes agents must extend AgentBase and use NotesMain() as the entry
point for their functional code. Use getSession() to create a Session object.
For output to browsers as well as Notes clients (the Java console), create a
PrintWriter object with getAgentOutput().
The specification (public methods) of the AgentBase class is as follows:
public class AgentBase extends NotesThread {
protected Session m_session;
public AgentBase();
public final void startup(AgentInfo info);
public final void runNotes() throws NotesException;
public void NotesMain();
public Session getSession();
public boolean isRestricted();
public PrintWriter getAgentOutput();
public void setDebug(boolean debug);
public void setTrace(boolean trace);
public void dbgMsg(String msg, PrintStream ps);
public void dbgMsg(String msg, PrintWriter pw);
public void dbgMsg(String msg);
AppletBase class
Applets must extend AppletBase or JAppletBase and use notesAppletInit(),
notesAppletStart(), and notesAppletStop() as the entry points for their
functional code. Use getSession() or getSession(String user, String pwd) to
create a Session object.
The specification (public methods) of the AppletBase class is as follows:
public class AppletBase extends Applet
implements DominoAppletBase {
public Session getSession() throws NotesException;
public Session getSession(String user, String pwd)
throws NotesException;
public Session openSession() throws NotesException;
public Session openSession(String user, String pwd)
throws NotesException;
public void closeSession(Session session)
throws NotesException;
public final void init();
public void notesAppletInit();
public final void start();
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
} catch(Exception e) {
e.printStackTrace();
}
}
}
The following example demonstrates checking for the Domino error
NOTES_ERR_NOTAFILE.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Agent agent = agentContext.getCurrentAgent();
DbDirectory dir = session.getDbDirectory(null);
Database db =
dir.openDatabase(agent.getComment());
if (db == null)
System.out.println("Database open failed");
else System.out.println(
"Title:\t\t" + db.getTitle());
} catch(NotesException e) {
if (e.id == NotesError.NOTES_ERR_NOTAFILE)
System.out.println("Database open failed");
else {
System.out.println(e.id + " " + e.text);
e.printStackTrace(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
NotesFactory class
For applications making local calls, use createSession() to create a Session
object. For applications making remote (IIOP) calls, use a createSession
method with the host parameter.
The specification of the NotesFactory class is as follows:
public class NotesFactory {
/* Local session - Notes client must be installed */
static public Session createSession()
throws NotesException;
/* Remote (IIOP) session using host name */
static public Session createSession(String host)
throws NotesException;
static public Session createSession(String host,
String user, String passwd)
throws NotesException;
static public Session createSession(String host,
String args[], String user, String passwd)
throws NotesException;
/* Remote (IIOP) session using IOR */
static public Session createSessionWithIOR(String IOR)
throws NotesException;
static public Session createSessionWithIOR(String IOR,
String user, String passwd)
throws NotesException;
static public Session createSessionWithIOR(String IOR,
String args[], String user, String passwd)
throws NotesException;
/* Remote (IIOP) session for applet */
static public Session createSession(java.applet.Applet
app,
String user, String passwd)
throws NotesException;
static public Session createSession(java.applet.Applet
app,
org.omg.CORBA.ORB orb, String user, String passwd)
throws NotesException;
/* Get ORB from host */
static public String getIOR(String host) throws Exception;
}
NotesThread class
The NotesThread class extends java.lang.Thread to include special
initialization and termination code for Domino. This extension to Thread is
required to run Java programs that make local calls to the Domino classes,
but is not allowed for applications that make remote calls. An application
that makes both local and remote calls must determine dynamically when
to use the static methods sinitThread and stermThread. This includes
threads invoked by AWT that access Domino objects. Applets and agents
that extend AppletBase and AgentBase do not need to code for local versus
remote calls, as this capability is provided in the base code.
finally
{
NotesThread.stermThread();
}
}
}
getURL method
The following method:
public String getURL()
Returns the Domino URL for its parent object when called in the
following classes:
Agent
Database
Document
Form
Session (returns an empty string if called locally)
View
recycle method
All lotus.domino classes contain the following method:
public void recycle()
Session contains the following method, where the vector contains the
Domino Objects to be recycled. This method effectively batches recycle
operations and is especially efficient for remote (IIOP) calls.
public void recycle(java.util.Vector objects)
toString method
The following lotus.domino classes override the toString method of
java.lang.Object and return values as indicated:
ACLEntry (same as getName)
Agent (same as getName)
AgentContext (same as getEffectiveUserName)
Database (same as getFilePath)
DateRange (same as getText)
DateTime (same as getLocalTime)
DbDirectory (same as getName)
Document (same as getUniversalID)
EmbeddedObject (same as getName)
Form (same as getName)
Item (same as getName)
Log (same as getProgramName)
Name (same as getCanonical)
Session (same as getUserName)
View (same as getName)
ViewColumn (same as getTitle)
Visibility interface
All lotus.domino classes implement the java.beans.Visibility interface and
are configured to be invisible. The following methods return values as
indicated:
needsGui() always returns false.
avoidingGUI() always returns true.
ACL class
Represents the access control list (ACL) of a database.
Syntax
public class ACL extends Base
Containment
Contained by: Database
Contains: ACLEntry
Properties
InternetLevel through getInternetLevel and setInternetLevel
IsUniformAccess through isUniformAccess and setUniformAccess
Parent through getParent
Roles through getRoles
Methods
addRole
createACLEntry
deleteRole
getEntry
getFirstEntry
getNextEntry
renameRole
removeACLEntry
save
Access
Every Database object contains an ACL object representing the access
control list of that database. To get it, use getACL in Database.
Usage
The Database class has three methods you can use to access and modify an
ACL without getting an ACL object: queryAccess, grantAccess, and
revokeAccess. However, using these methods at the same time an ACL
object is in use may produce inconsistent results.
InternetLevel property
Read-write. The maximum Internet access level for this database.
Defined in
ACL
Data type
int
Syntax
public int getInternetLevel()
throws NotesException
public void setInternetLevel(int level)
throws NotesException
Legal values
ACL.LEVEL_NOACCESS
ACL.LEVEL_DEPOSITOR
ACL.LEVEL_READER
ACL.LEVEL_AUTHOR
ACL.LEVEL_EDITOR
ACL.LEVEL_DESIGNER
ACL.LEVEL_MANAGER
Usage
You must call save if you want the modified ACL to be saved to disk.
IsUniformAccess property
Read-write. Indicates if a consistent access control list is enforced across all
replicas of a database.
Defined in
ACL class
Data type
boolean
Syntax
public boolean isUniformAccess()
throws NotesException
public void setUniformAccess(boolean flag)
throws NotesException
Legal values
true indicates that uniform access is set
false indicates that uniform access is not set
Usage
For setUniformAccess, you must call save on the ACL if you want the
modified ACL to be saved to disk.
} catch(Exception e) {
e.printStackTrace();
}
}
}
Parent property
Read-only. The database that owns an ACL.
Defined in
ACL
Data type
Database
Syntax
public Database getParent()
Roles property
Read-only. All the roles defined in an access control list.
Defined in
ACL
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getRoles()
throws NotesException
Usage
Each element in the vector is the name of a role. Each role name is enclosed
in square brackets, for example, [Supervisor]. (Notes Release 2 “privileges”
are enclosed in parentheses.)
addRole method
Adds a role to an ACL.
Defined in
ACL
Syntax
public void addRole(String name)
throws NotesException
Parameter
String name
The name of the new role. Do not put square brackets around the name.
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
createACLEntry method
Creates an entry in the ACL with the name and level that you specify.
Defined in
ACL
Syntax
public ACLEntry createACLEntry(String name, int level)
throws NotesException
Parameters
String name
The name of the person, group, or server for whom you want to create
an entry in the ACL. You must supply the complete name but
hierarchical names can be in abbreviated format. Case is not significant.
int level
The level you want to assign to this person, group, or server in the ACL.
May be any of the following:
ACL.LEVEL_NOACCESS
ACL.LEVEL_DEPOSITOR
ACL.LEVEL_READER
ACL.LEVEL_AUTHOR
ACL.LEVEL_EDITOR
ACL.LEVEL_DESIGNER
ACL.LEVEL_MANAGER
Return value
ACLEntry
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
deleteRole method
Deletes a role from an ACL and removes it from any ACL entries that
have it.
Defined in
ACL
Syntax
public void deleteRole(String name)
throws NotesException
Parameters
String name
The name of the role to remove. Do not put square brackets around
the name.
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
getEntry method
Given a name, finds its entry in an ACL.
Defined in
ACL
Syntax
public ACLEntry getEntry(String ename)
throws NotesException
Parameter
String ename
The name whose ACL entry you want to find. You must supply the
complete name but hierarchical names can be in abbreviated format.
Case is not significant.
Return value
ACLEntry
The ACL entry that matches the name. If name is not in the ACL,
returns null.
Usage
This method can find people, groups, or servers in an ACL. If a person is
not listed explicitly in the ACL, but is a member of a group listed in the
ACL, getEntry does not find that person’s name. If you need this capability,
use the queryAccess method in Database.
getFirstEntry method
Returns the first entry in an ACL.
Defined in
ACL
Syntax
public ACLEntry getFirstEntry()
throws NotesException
Return value
ACLEntry
Usage
The first entry is typically the -Default- entry.
getNextEntry method
Returns the next ACL entry or the one following a specified entry.
Defined in
ACL
Syntax
public ACLEntry getNextEntry()
throws NotesException
public ACLEntry getNextEntry(ACLEntry entry)
throws NotesException
Parameter
ACLEntry entry
Return value
ACLEntry
The ACL entry following the entry specified as the parameter. Returns
null if there are no more entries.
Usage
With no parameter, this method returns the entry following the last entry
retrieved. The no-parameter method improves performance for remote
operations because ACL entries are cached locally.
removeACLEntry method
Removes an entry from the ACL.
Defined in
ACL
Syntax
public void removeACLEntry(String name)
throws NotesException
Parameter
String name
The name of the person, group, or server whose entry you want to
remove. You must supply the complete name but hierarchical names
can be in abbreviated format. Case is not significant.
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
renameRole method
Changes the name of a role.
Defined in
ACL
Syntax
public void renameRole(String oldname, String newname)
throws NotesException
Parameters
String oldname
The current name of the role. Do not put square brackets around the
name.
String newname
The new name you want to give to the role. Do not specify the brackets.
Usage
You must call save on the ACL if you want the modified ACL to be saved to
disk.
When you rename a role, any entries in the ACL that had the old role get
the new role.
save method
Saves changes you’ve made to the ACL. If you don’t call save before closing
a database, the changes you’ve made to its ACL are lost.
Defined in
ACL
Syntax
public void save()
throws NotesException
ACLEntry class
Represents a single entry in an access control list. An entry may be for a
person, a group, or a server.
Syntax
public class ACLEntry extends Base
Containment
Contained by: ACL
Properties
IsAdminReaderAuthor through isAdminReaderAuthor and
setAdminReaderAuthor
IsAdminServer through isAdminServer and setAdminServer
IsCanCreateDocuments through isCanCreateDocuments and
setCanCreateDocuments
IsCanCreateLSOrJavaAgent through isCanCreateLSOrJavaAgent and
setCanCreateLSOrJavaAgent
IsCanCreatePersonalAgent through isCanCreatePersonalAgent and
setCanCreatePersonalAgent
Methods
disableRole
enableRole
isRoleEnabled
remove
IsAdminReaderAuthor property
Read-write. Indicates if the administration server can modify reader and
author fields.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isAdminReaderAuthor()
throws NotesException
public void setAdminReaderAuthor(boolean flag)
throws NotesException
Usage
For setAdminReaderAuthor, you must call save on the ACL if you want the
modified ACL to be saved to disk.
IsAdminServer property
Read-write. Indicates if this entry is an administration server.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isAdminServer()
throws NotesException
public void setAdminServer(boolean flag)
throws NotesException
Usage
For setAdminServer, you must call save on the ACL if you want the
modified ACL to be saved to disk.
IsCanCreateDocuments property
Read-write. For an entry with Author access to a database, indicates if the
entry is allowed to create new documents.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanCreateDocuments()
throws NotesException
public void setCanCreateDocuments(boolean flag)
throws NotesException
Legal values
true if the entry can create new documents in the database
false if the entry cannot create new documents in the database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Author access to a database. If an entry has Depositor, Editor, Designer, or
Manager access, this property is always true. If an entry has Reader or No
access, this property is always false.
By default, this property is false for a new entry with Author access.
IsCanCreateLSOrJavaAgent property
Read-write. For an entry with Reader access to a database, indicates if the
entry is allowed to create LotusScript or Java agents.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanCreateLSOrJavaAgent()
throws NotesException
public void setCanCreateLSOrJavaAgent(boolean flag)
throws NotesException
Legal values
true if the entry can create LotusScript or Java agents in the database
false if the entry cannot create new LotusScript or Java agents in the
database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Designer, Editor, Author, or Reader access to a database. If an entry has
Manager access, this property is always true. If an entry has Depositor or
No access, this property is always false.
By default, this property is false for a new entry with Designer, Editor,
Author, or Reader access.
IsCanCreatePersonalAgent property
Read-write. For an entry with Editor, Author, or Reader access, indicates if
the entry can create personal agents in a database.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanCreatePersonalAgent()
throws NotesException
public void setCanCreatePersonalAgent(boolean flag)
throws NotesException
Legal values
true if the entry can create personal agents in the database
false if the entry cannot create personal agents in the database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Editor, Author, or Reader access to a database. If an entry has Designer or
Manager access, this property is always true. If an entry has Depositor or
No access, this property is always false.
By default, this property is false for a new entry with Editor, Author, or
Reader access.
IsCanCreatePersonalFolder property
Read-write. For an entry with Editor, Author, or Reader access, indicates if
the entry can create personal folders in a database.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanCreatePersonalFolder()
throws NotesException
public void setCanCreatePersonalFolder(boolean flag)
throws NotesException
Legal values
true if the entry can create personal folders in the database
false if the entry cannot create personal folders in the database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Editor, Author, or Reader access to a database. If an entry has Designer or
Manager access, this property is always true. If an entry has Depositor or
No access, this property is always false.
By default, this property is false for a new entry with Editor, Author, or
Reader access.
}
}
IsCanCreateSharedFolder property
Read-write. For an entry with Editor access to a database, indicates if the
entry can create shared folders in the database.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanCreateSharedFolder()
throws NotesException
public void setCanCreateSharedFolder(boolean flag)
throws NotesException
Legal values
true if the entry can create shared folders in the database
false if the entry cannot create shared folders in the database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Editor access to a database. If an entry has Manager or Designer access, this
property is always true. If an entry has Author, Reader, Depositor, or No
access, this property is always false.
By default, this property is false for a new entry with Editor access.
IsCanDeleteDocuments property
Read-write. For an entry with Author access or above, indicates if the entry
can delete documents from a database.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isCanDeleteDocuments()
throws NotesException
public void setCanDeleteDocuments(boolean flag)
throws NotesException
Legal values
true if the entry can delete documents in the database
false if the entry cannot delete documents in the database
Usage
After setting this property, you must call save on the parent ACL for the
changes to take effect.
Setting this property has no effect on an ACL entry unless the entry has
Manager, Designer, Editor, or Author access to a database. If an entry has
Reader, Depositor, or No access, this property is always false.
By default, this property is false for a new entry with Manager, Designer,
Editor, or Author access.
IsGroup property
Read-write. Indicates if this is a group ACL entry.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isGroup()
throws NotesException
public void setGroup(boolean flag)
throws NotesException
Usage
IsGroup is true if UserType is TYPE_MIXED_GROUP,
TYPE_PERSON_GROUP, or TYPE_SERVER_GROUP.
For setGroup, you must call save on the ACL if you want the modified ACL
to be saved to disk.
IsPerson property
Read-write. Indicates if this is a person ACL entry.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isPerson()
throws NotesException
public void setPerson(boolean flag)
throws NotesException
Usage
IsPerson is true if UserType is TYPE_PERSON, TYPE_MIXED_GROUP, or
TYPE_PERSON_GROUP.
For setPerson, you must call save on the ACL if you want the modified ACL
to be saved to disk.
IsPublicReader property
Read-write. For an entry with Depositor or No access, indicates if the entry
is a public reader of the database.
Defined in
ACLEntry class
Data type
boolean
Syntax
public boolean isPublicReader()
throws NotesException
public void setPublicReader(boolean flag)
throws NotesException
Legal values
true if the current entry is a public reader
false if the current entry is not a public reader
Usage
Setting this property has no effect on an ACL entry unless the entry has
Depositor or No access to a database. If an entry has Manager, Designer,
Editor, Author, or Reader access, this property is always true.
By default, this property is false for a new entry with Depositor or No
access.
entry.setPublicWriter(true);
acl.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsPublicWriter property
Read-write. For an entry with Author, Reader, Depositor, or No access,
indicates if the entry is a public writer of the database.
Defined in
ACLEntry class
Data type
boolean
Syntax
public boolean isPublicWriter()
throws NotesException
public void setPublicWriter(boolean flag)
throws NotesException
Legal values
true if the current entry is a public writer
false if the current entry is not a public writer
Usage
Setting this property has no effect on an ACL entry unless the entry has
Author, Reader, Depositor, or No access to a database. If an entry has
Manager, Designer, or Editor access, this property is always true.
By default, this property is false for a new entry with Author, Reader,
Depositor, or No access.
IsServer property
Read-write. Indicates if this is a server ACL entry.
Defined in
ACLEntry
Data type
boolean
Syntax
public boolean isServer()
throws NotesException
public void setServer(boolean flag)
throws NotesException
Usage
IsServer is true if UserType is TYPE_SERVER, TYPE_MIXED_GROUP, or
TYPE_SERVER_GROUP.
For setServer, you must call save on the ACL if you want the modified ACL
to be saved to disk.
Level property
Read-write. The access level this entry has for this database.
Defined in
ACLEntry
Data type
int
Syntax
public int getLevel()
throws NotesException
public void setLevel(int level)
throws NotesException
Legal values
ACL.LEVEL_NOACCESS
ACL.LEVEL_DEPOSITOR
ACL.LEVEL_READER
ACL.LEVEL_AUTHOR
ACL.LEVEL_EDITOR
ACL.LEVEL_DESIGNER
ACL.LEVEL_MANAGER
Usage
For setLevel, you must call save on the ACL if you want the modified ACL
to be saved to disk.
Name property
Read-write. The name of an ACL entry.
Defined in
ACLEntry
Data type
String Name
Syntax
public String getName()
throws NotesException
public void setName(String name)
throws NotesException
public void setName(Name n)
throws NotesException
Usage
Hierarchical names are returned in canonical format. However, you can
enter a hierarchical name as a String in abbreviated format.
For setName, you must call save on the ACL if you want the modified ACL
to be saved to disk.
If you change the name of an entry, the other properties of the entry (such
as Level) are preserved.
The Name object for setName cannot be null.
System.out.println(" " +
entry.getName()); }
while ((entry = acl.getNextEntry(entry)) != null);
} catch(Exception e) {
e.printStackTrace();
}
}
}
NameObject property
Read-only. The name of an entry.
Defined in
ACLEntry
Data type
Name
Syntax
public Name getNameObject()
throws NotesException
e.printStackTrace();
}
}
}
Parent property
Read-only. The access control list that contains an entry.
Defined in
ACLEntry
Data type
ACL
Syntax
public ACL getParent()
throws NotesException
Roles property
Read-only. The roles that are enabled for an entry.
Defined in
ACLEntry
Data type
Vector; elements are String
Syntax
public java.util.Vector getRoles()
throws NotesException
Usage
Each role name is surrounded by brackets, for example, [Project Leader].
if (roles.size() == 0)
System.out.println(entry.getName() +
" has no roles");
else {
System.out.println(entry.getName() +
" has the following role(s):");
for (int i=0; i<roles.size(); i++)
System.out.println(" " +
roles.elementAt(i)); }}
} catch(Exception e) {
e.printStackTrace();
}
}
}
UserType property
Read-write. The user type this entry has for this database.
Defined in
ACLEntry
Data type
int
Syntax
public int getUserType()
throws NotesException
public void setUserType(int tp)
throws NotesException
Legal values
ACLEntry.TYPE_MIXED_GROUP
ACLEntry.TYPE_PERSON
ACLEntry.TYPE_PERSON_GROUP
ACLEntry.TYPE_SERVER
ACLEntry.TYPE_SERVER_GROUP
ACLEntry.TYPE_UNSPECIFIED
Usage
For setUserType, you must call save on the ACL if you want the modified
ACL to be saved to disk.
disableRole method
Disables a role for an entry.
Defined in
ACLEntry
Syntax
public void disableRole(String role)
throws NotesException
Parameter
String role
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
The role must exist in the ACL. If the role exists, but is already disabled for
the entry, this method does nothing.
} catch(Exception e) {
e.printStackTrace();
}
}
}
enableRole method
Enables a role for an entry.
Defined in
ACLEntry
Syntax
public void enableRole(String role)
throws NotesException
Parameter
String role
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
The role must exist in the ACL. If the role exists, but is already enabled for
the entry, this method does nothing.
else {
entry.enableRole(agent.getComment());
System.out.println
(agent.getComment() +
" enabled for " + entry.getName()); }}
while ((entry = acl.getNextEntry(entry)) != null);
acl.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}
isRoleEnabled method
Indicates if a role is enabled for an entry.
Defined in
ACLEntry
Syntax
public boolean isRoleEnabled(String role)
throws NotesException
Parameter
String role
Return value
boolean
Usage
The role must exist in the ACL.
remove method
Removes an entry from an access control list.
Defined in
ACLEntry
Syntax
public void remove()
throws NotesException
Usage
You must call save on the ACL if you want the modified ACL to be saved
to disk.
Agent class
Represents an agent.
Syntax
public class Agent extends Base
Containment
Contained by: AgentContext and Database
Contains: Database and DateTime
Properties
Comment through getComment
CommonOwner through getCommonOwner
IsEnabled through isEnabled and setEnabled
IsNotesAgent through isNotesAgent
IsPublic through isPublic
IsWebAgent through isWebAgent
LastRun through getLastRun
Name through getName
Owner through getOwner
Parent through getParent
Query through getQuery
ServerName through getServerName and setServerName
Target through getTarget
Trigger through getTrigger
Method
remove
run
runOnServer
save
Access
There are two ways to access an agent.
To access the agent that’s currently running, use getCurrentAgent in
AgentContext.
To access all the agents in a database, use getAgents in Database.
Comment property
Read-only. The comment that describes an agent, as entered by the agent’s
designer.
Defined in
Agent
Data type
String
Syntax
public String getComment()
throws NotesException
CommonOwner property
Read-only. The common name of the person who last modified and saved
an agent.
Defined in
Agent
Data type
String
Syntax
public String getCommonOwner()
throws NotesException
Usage
If the owner’s name is flat (non-hierarchical), the CommonOwner name is
the same as the Owner name.
IsEnabled property
Read-write. Indicates if an agent is able to run or not.
Defined in
Agent
Data type
boolean
Syntax
public boolean isEnabled()
throws NotesException
public void setEnabled(boolean value)
throws NotesException
Legal values
true if the agent can be run
false if the agent is disabled
Usage
This property is intended for use with scheduled agents, which can be
enabled and disabled. This property always returns true for hidden agents
and agents that are run from a menu.
You must call Save to make any change effective.
If the agent is open in the UI, a change is not immediately reflected. The
agent must be closed and reopened.
IsNotesAgent property
Read-only. Indicates if an agent can run in the Notes client environment.
Defined in
Agent
Data type
boolean
Syntax
public boolean isNotesAgent()
throws NotesException
Legal values
true if the agent can run in the Notes client environment
false if the agent cannot run in the Notes client environment
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsPublic property
Read-only. Indicates if an agent is public or personal.
A public agent is accessible to all users of a database and is stored in the
database.
A personal agent is accessible only to its owner and is stored in the
owner’s desktop file.
Defined in
Agent
Data type
boolean
Syntax
public boolean isPublic()
throws NotesException
Legal values
true if the agent is public
false if the agent is personal
IsWebAgent property
Read-only. Indicates if an agent can run in a Web browser environment.
Defined in
Agent
Data type
boolean
Syntax
public boolean isWebAgent()
throws NotesException
Legal values
true if the agent can run in a Web browser environment
false if the agent cannot run in a Web browser environment
LastRun property
Read-only. The date that an agent last ran.
Defined in
Agent
Data type
DateTime
Syntax
public DateTime getLastRun()
throws NotesException
Usage
If the script has never been run before, this property returns null.
Name property
Read-only. The name of an agent. Within a database, the name of an agent
may not be unique.
Defined in
Agent
Data type
String
Syntax
public String getName()
throws NotesException
Owner property
Read-only. The name of the person who last modified and saved an agent.
Defined in
Agent
Data type
Name
Syntax
public String getOwner()
throws NotesException
Usage
If the owner’s name is hierarchical, this property returns the fully
distinguished name.
Saving the agent changes the owner immediately. However, if you
subsequently call Agent.owner within the same Session, the previous
owner’s name will be returned. The ownership change is not reflected in
properties until the next time a Session is obtained.
Parent property
Read-only. The database that contains an agent.
Defined in
Agent
Data type
Database
Syntax
public Database getParent()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
Query property
Read-only. The text of the query used by an agent to select documents. In
the Agent Builder, a query is defined by the searches added to the agent
using the Add Search button.
If no query is defined with the Add Search button, the Query property
returns an empty string, even if the agent runs a formula that has its own
SELECT statement or a script that selects specific documents.
Defined in
Agent
Data type
String
Syntax
public String getQuery()
throws NotesException
Usage
Some sample results:
If an agent searches for documents that contain the word “tulip,”
Query returns:
("tulip")
If an agent searches for documents that contain the word tulip and
were created on September 19, 1996, Query returns:
("tulip") AND ([_CreationDate] = 09/19/96)
If an agent searches for documents that use the Response form and
contain the phrase “mustard greens” in the Subject field, Query returns:
(([Form]="Response")) AND ([Subject] CONTAINS (mustard
greens))
ServerName property
Read-write. The name of the server on which an agent runs.
Defined in
Agent
Data type
String
Syntax
public String getServerName()
throws NotesException
public void setServerName(String serverName)
throws NotesException
Usage
The value returned by getServerName depends upon whether the agent
is scheduled:
If the agent is scheduled, the property returns the name of the server
that the scheduled agent runs on. Since scheduled agents can only run
on a single replica of a database, you designate a server name for the
agent under Schedule in the Agent Builder. Therefore, the ServerName
property may represent the parent database’s server, or it may
represent a replica’s server.
If the agent is not scheduled, this property returns the name of the
parent database’s server. If the parent database is on a workstation, this
property returns an empty string.
You can set ServerName to the asterisk (*) to indicate that the agent can
run on any server.
A null ServerName means the local workstation.
You must call Save to make any change effective.
Target property
Read-only. Indicates which documents this agent acts on.
Defined in
Agent
Data type
boolean
Syntax
public int getTarget()
throws NotesException
Legal values
Agent.TARGET_ALL_DOCS
Agent.TARGET_ALL_DOCS_IN_VIEW
Agent.TARGET_NEW_DOCS
Agent.TARGET_NEW_OR_MODIFIED_DOCS
Agent.TARGET_NONE
Agent.TARGET_SELECTED_DOCS
Agent.TARGET_UNREAD_DOCS_IN_VIEW
System.out.println(agent.getName() +
": target is " + target +
"; trigger is " + trigger);
} } catch(Exception e) {
e.printStackTrace();
}
}
}
Trigger property
Read-only. Indicates when this agent runs.
Defined in
Agent
Data type
boolean
Syntax
public int getTrigger()
throws NotesException
Legal values
Agent.TRIGGER_AFTER_MAIL_DELIVERY
Agent.TRIGGER_BEFORE_MAIL_DELIVERY
Agent.TRIGGER_DOC_PASTED
Agent.TRIGGER_DOC_UPDATE
Agent.TRIGGER_MANUAL
Agent.TRIGGER_NONE
Agent.TRIGGER_SCHEDULED
remove method
Permanently deletes an agent from a database.
Defined in
Agent
Syntax
public void remove()
throws NotesException
Usage
Once you call this method, the Agent object is null and you can no longer
use its methods or properties.
It is possible to use this method to delete the agent that’s currently running.
Use this feature with care. You must refresh the Agents view in the user
interface to see that the agent has been removed.
run method
Runs the agent.
Defined in
Agent
Syntax
public void run()
throws NotesException
Usage
You cannot run an agent recursively (cannot call it from itself).
The user cannot interact directly with a called agent. User output goes to
the Domino log.
For local operations, the agent runs the computer running the current
program. See runOnServer to do otherwise.
For remote (IIOP) operations, the agent runs on the server handling the
remote calls.
} catch(Exception e) {
e.printStackTrace();
}
}
}
runOnServer method
Runs an agent that is in a server database on the computer containing the
database.
Defined in
Agent
Syntax
public int runOnServer()
throws NotesException
Return value
int
Usage
The server cannot be on the computer on which the program is running.
Use run to run agents that reside on the current computer.
For remote (IIOP) operations, the agent runs the server handling the remote
calls the same as run and the return value is always 0.
} catch(Exception e) {
e.printStackTrace();
}
}
}
save method
Saves changes made to the agent.
Defined in
Agent
Syntax
public void save()
throws NotesException
Usage
Saving the agent changes the owner immediately. However, if you
subsequently call Agent.owner within the same Session, the previous
owner’s name will be returned. The ownership change is not reflected in
properties until the next time a Session is obtained.
You must call Save after setServerName and setEnabled, or the new value
is lost.
AgentContext class
Represents the agent environment of the current program, if an agent is
running it.
Syntax
public class AgentContext extends Base
Containment
Contained by: Session
Contains: Agent, Database, DateTime, Document, DocumentCollection,
Name
Properties
CurrentAgent through getCurrentAgent
CurrentDatabase through getCurrentDatabase
DocumentContext through getDocumentContext
Methods
unprocessedFTSearch
unprocessedSearch
updateProcessedDoc
Usage
You can create a Java agent by importing files or by writing and compiling
the code in Domino Designer. In the latter case, Domino Designer provides
template code that creates a Session object named session and an
AgentContext object named agentContext. The complete template code
appears as follows:
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
} catch(Exception e) {
e.printStackTrace();
}
}
}
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Agent agent = agentContext.getCurrentAgent();
String name = agent.getName();
String comment = agent.getComment();
if (comment == "") comment = "No comment";
System.out.println
("Current agent: \"" + name + "\"");
System.out.println
("Comment: \"" + comment + "\"");
} catch(Exception e) {
e.printStackTrace();
}
}
}
CurrentAgent property
Read-only. The agent that’s currently running.
Defined in
AgentContext
Data type
Agent
Syntax
public Agent getCurrentAgent()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
CurrentDatabase property
Read-only. The database in which the current agent resides.
Defined in
AgentContext
Data type
Database
Syntax
public Database getCurrentDatabase()
throws NotesException
Usage
This property allows you to access a database without having to specify its
server and file name. Using getCurrentDatabase can make programs more
portable from one database to another.
DocumentContext property
Read-only. The in-memory document when an agent starts.
Defined in
AgentContext
Data type
Document
Syntax
public Document getDocumentContext()
throws NotesException
Usage
Through the C or C++ API, an external program can create an in-memory
document, then run an agent. The agent can use this property to access the
in-memory document.
For an agent activated in a view through the UI, the in-memory document
is the document highlighted in the view.
EffectiveUserName property
Read-only. The user name that is in effect for the current agent.
For an agent running on a workstation, this is the name of the current
user.
For an agent running on a server, this is the name of the agent’s owner
(the person who last saved the agent).
Defined in
AgentContext
Data type
Name
Syntax
public String getEffectiveUserName()
throws NotesException
Usage
In general, getEffectiveUserName and getUserName return the same value
for a given program. The exceptions are agents that run on a server, where
getEffectiveUserName is the name of the script’s owner and getUserName
is the name of the server on which the script is running.
If the user name is hierarchical, this property returns the fully distinguished
name.
LastExitStatus property
Read-only. The exit status code returned by the Agent Manager the last
time the current agent ran.
Defined in
AgentContext
Data type
int
Syntax
public int getLastExitStatus()
throws NotesException
Usage
This property returns 0 if the agent ran without errors.
LastRun property
Read-only. The date and time when the current agent was last executed.
Defined in
AgentContext
Data type
DateTime
Syntax
public DateTime getLastRun()
throws NotesException
Usage
If the agent never ran before, this property returns null.
SavedData property
Read-only. A document that an agent uses to store information between
invocations. The agent can use the information in this document the next
time the agent runs.
Defined in
AgentContext
Data type
Document
Syntax
public Document getSavedData()
throws NotesException
Usage
The getSavedData document is created when you save an agent, and it is
stored in the same database as the agent. The document replicates, but is
not displayed in views.
Each time you edit and re-save an agent, its getSavedData document is
deleted and a new, blank one is created. When you delete an agent, its
getSavedData document is deleted.
agentDoc.save(true, true);
agentDoc = agentContext.getSavedData();
}
while (doc != null)
{
Vector mvalue = agentDoc.getItemValue("MaxSales");
Vector wvalue = doc.getItemValue("Weekly_Sales");
Float maxSales =
new Float((String)mvalue.firstElement());
Float weeklySales = new
Float((String)wvalue.firstElement());
if (weeklySales.floatValue() >
maxSales.floatValue())
{
agentDoc.replaceItemValue
("MaxSales", doc.getItemValue("Weekly_Sales"));
agentDoc.replaceItemValue
("MaxSales_Salesperson", doc.getItemValue("Name"));
}
agentDoc.save(true, true);
System.out.println("Best salesperson to date is " +
agentDoc.getItemValue("MaxSales_Salesperson") +
" who sold $" + agentDoc.getItemValue("MaxSales"));
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
UnprocessedDocuments property
Read-only. The documents in a database that the current agent considers to
be “unprocessed.” The type of agent determines which documents are
considered unprocessed.
Defined in
AgentContext
Data type
DocumentCollection
Syntax
public DocumentCollection getUnprocessedDocuments()
throws NotesException
Usage
This method is valid only for agents.
Using UpdateProcessedDoc
For agents that run on new and modified documents, you must use
updateProcessedDoc in Session to mark each document as “processed,”
which ensures that a document gets processed by the agent only once
(unless it’s modified again). If you do not call this method for each
document, the agent processes the same documents the next time it runs.
The updateProcessedDoc method marks a document as processed only for
the particular agent from which it is called. Using updateProcessedDoc in
one agent has no effect on the documents that another agent processes.
unprocessedFTSearch method
Given a full-text query, returns documents in a database that:
The current agent considers to be unprocessed
And match the query
Defined in
AgentContext
Syntax
public DocumentCollection unprocessedFTSearch(String query,
int maxdocs)
throws NotesException
public DocumentCollection unprocessedFTSearch(String query,
int maxdocs, int sortopt, int otheropt)
throws NotesException
Parameters
String query
int sortopt
Return Value
DocumentCollection
A sorted collection of documents that are not yet processed and match
the query.
Usage
This method is valid only for agents.
Using updateProcessedDoc
For agents that run on new and modified documents, you must use
updateProcessedDoc to mark each document as “processed,” which ensures
that a document gets processed by the agent only once (unless it’s modified
again). If you do not call this method for each document, the agent
processes the same documents the next time it runs.
The updateProcessedDoc method marks a document as processed only for
the particular agent from which it is called. Using updateProcessedDoc in
one agent has no effect on the documents that another agent processes.
Full-text indexes
If the database is not full-text indexed, this method works, but less
efficiently. To test for an index, use isFTIndexed. To create an index on a
local database, use updateFTIndex.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see search operators in client help.
unprocessedSearch method
Given selection criteria, returns documents in a database that:
The current agent considers to be unprocessed
Meet the selection criteria
Were created or modified since the cutoff date
Defined in
AgentContext
Syntax
public DocumentCollection unprocessedSearch(String formula,
DateTime limit, int maxdocs)
throws NotesException
Parameters
String formula
A cutoff date.
int maxdocs
Return value
DocumentCollection
Usage
This method is valid only for agents.
For example, in an agent that runs on all selected documents in the view,
unprocessedSearch searches only the selected documents and returns those
that match the selection criteria. In an agent that runs on all new and
modified documents since the last run, unprocessedSearch searches only
the documents that were not marked by updateProcessedDoc, and returns
those that match the selection criteria.
Using updateProcessedDoc
For agents that run on new and modified documents, you must use
updateProcessedDoc to mark each document as “processed,” which ensures
that a document gets processed by the agent only once (unless it’s modified
again). If you do not call this method for each document, the agent
processes the same documents the next time it runs.
The updateProcessedDoc method marks a document as processed only for
the particular agent from which it is called. Using updateProcessedDoc in
one agent has no effect on the documents that another agent processes.
updateProcessedDoc method
Marks a document as processed by an agent.
Defined in
AgentContext
Syntax
public void updateProcessedDoc(Document doc)
throws NotesException
Parameter
Document doc
Usage
Use this method in conjunction with getUnprocessedDocuments,
unprocessedFTSearch, and unprocessedSearch. This method is intended for
agents that run on all new and modified documents since the last run. In
other programs, this method has no effect.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DocumentCollection dc =
agentContext.getUnprocessedDocuments();
Document doc = dc.getFirstDocument();
while (doc != null) {
System.out.println(
doc.getItemValueString("Subject"));
agentContext.updateProcessedDoc(doc);
doc = dc.getNextDocument();
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
Database class
Represents a Notes database.
Syntax
public class Database extends Base
Containment
Contained by: AgentContext, DbDirectory, and Session
Can contain: ACL, Agent, DateTime, Document, DocumentCollection,
Form, Replication, View
Properties
ACL through getACL
Agents through getAgents
AllDocuments through getAllDocuments
Categories through getCategories and setCategories
Created through getCreated
CurrentAccessLevel through getCurrentAccessLevel
Methods
compact
createCopy
createDocument
createFromTemplate
createOutline
createReplica
enableFolder
FTDomainSearch
FTSearch
getAgent
getDocumentByID
getDocumentByUNID
getDocumentByURL
getForm
getOutline
getProfileDocCollection
getProfileDocument
getURLHeaderInfo
getView
grantAccess
open
queryAccess
remove
replicate
revokeAccess
search
updateFTIndex
To access an existing database when you know its server and replica ID,
use openByReplicaID in DbDirectory.
To locate an existing database when you know its server but not its file
name, use the DbDirectory class.
To access the current user’s mail database, use openMail in
DbDirectory.
To open the default Web Navigator database, use openURLDatabase
in Session.
To access the available Domino Directories and Personal Address
Books, use getAddressBooks in Session.
To test for the existence of a database with a specific server and file
name before accessing it, use openDatabase or openDatabaseIfModified
in DbDirectory.
To create a new database from an existing database, use createCopy,
createFromTemplate, or createReplica.
To create a new database from scratch, use createDatabase in
DbDirectory.
To access a database when you have a contained object such as View,
Document, DocumentCollection, ACL, or Agent, use the appropriate
Parent (or ParentDatabase) property.
Usage
A database must be open before you can use all the properties and methods
in the corresponding Database object. In most cases, the class library
automatically opens a database for you. But see isOpen for the exceptions.
Access levels
Notes throws an exception when you attempt to perform an operation for
which the user does not have appropriate access. The properties and
methods that you can successfully use on a Database object are determined
by these factors:
The user’s access level to the database, as determined by the database
access control list. The ACL determines if the user can open a database,
add documents to it, remove documents from it, modify the ACL, and
so on.
The user’s access level to the server on which the database resides, as
determined by the Server document in the Domino Directory.
4. This agent gives Brian Flokka Editor access to the current database.
Using the CurrentDatabase property avoids having to use file names in
agents and makes agents easily portable from one database to another.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
5. This agent shows how you can use the openIfModified method to open
a database only if it’s been modified after a certain date. The agent
checks if quack.nsf on the current server was modified since yesterday;
if so, the agent opens the database and compacts it.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DbDirectory dir = session.getDbDirectory(null);
DateTime dt = session.createDateTime("");
dt.setNow();
dt.adjustDay(-1);
Database db = dir.openDatabaseIfModified
("quack", dt);
if (db != null) {
System.out.println("Compacting database");
db.compact(); }
else
System.out.println(
"Database not modified in past
day");
} catch(Exception e) {
e.printStackTrace();
}
}
}
ACL property
Read-only. The access control list for a database.
Defined in
Database
Data type
ACL
Syntax
public ACL getACL()
throws NotesException
Agents property
Read-only. All of the agents in a database.
Defined in
Database
Data type
java.util.Vector; elements are Agent
Syntax
public java.util.Vector getAgents()
throws NotesException
Usage
If the program runs on a workstation or is remote (IIOP), the return vector
includes public agents and personal agents that belong to the current user.
If the program runs on a server, the return vector includes only public
agents.
AllDocuments property
Read-only. An unsorted collection containing all the documents in a
database.
Defined in
Database
Data type
DocumentCollection
Syntax
public DocumentCollection getAllDocuments()
throws NotesException
Usage
The FTSearch and search methods return smaller collections of documents
that meet specific criteria.
Using the AllDocuments property is more efficient than using the search
method with an @All formula.
Categories property
Read-write. The categories under which a database appears in the Database
Library. Multiple categories are separated by a comma or semicolon.
Defined in
Database
Data type
String
Syntax
public String getCategories()
throws NotesException
public void setCategories(String categories)
throws NotesException
Usage
A database retrieved through getFirstDatabase or getNextDatabase in
DbDirectory does not have to be open for getCategories. Otherwise, the
database must be open.
Created property
Read-only. The date a database was created.
Defined in
Database
Data type
DateTime
Syntax
public DateTime getCreated()
throws NotesException
CurrentAccessLevel property
Read-only. The current user’s access level to a database.
Defined in
Database
Data type
int
Syntax
public int getCurrentAccessLevel
throws NotesException
Legal values
ACL.LEVEL_AUTHOR
ACL.LEVEL_DEPOSITOR
ACL.LEVEL_DESIGNER
ACL.LEVEL_EDITOR
ACL.LEVEL_MANAGER
ACL.LEVEL_NOACCESS
ACL.LEVEL_READER
Usage
If a program runs on a workstation or is remote (IIOP),
CurrentAccessLevel is determined by the access level of the
current user.
If a program runs on a server, CurrentAccessLevel is determined by the
access level of the person who last saved the program (the owner).
DesignTemplateName property
Read-only. The name of the design template from which a database inherits
its design. If the database does not inherit its design from a design template,
returns an empty string.
Defined in
Database
Data type
String
Syntax
public String getDesignTemplateName()
throws NotesException
Usage
If a database inherits a specific design element (such as a form) but not its
entire design from a template, this property returns an empty string.
FileName property
Read-only. The file name of a database, excluding the path.
Defined in
Database
Data type
String
Syntax
public String getFileName()
throws NotesException
FilePath property
Read-only. The path and file name of a database.
Defined in
Database
Data type
String
Syntax
public String getFilePath()
throws NotesException
Usage
If the database is on a Notes workstation, FilePath returns the complete
path (for example, C:\Notes\data\sub\db.nsf). If the database is on a
Domino server, FilePath returns the path relative to the data directory (for
example, sub\db.nsf).
FolderReferencesEnabled property
Read-write. Indicates whether this database maintains folder references for
documents.
Defined in
Database
Data type
boolean
Syntax
public boolean getFolderReferencesEnabled()
throws NotesException
public void setFolderReferencesEnabled(boolean bEnable)
throws NotesException
Legal Values
true maintains folder references
false (default) does not maintain folder references
Usage
Maintaining folder references impacts performance.
Forms property
Read-only. All the forms in a database.
Database
Data type
java.util.Vector; elements are Form
Syntax
public java.util.Vector getForms()
throws NotesException
IsDelayUpdates property
Read-write. Indicates whether updates to a server are delayed (batched) for
better performance.
Defined in
Database
Data type
boolean
Syntax
public boolean isDelayUpdates()
throws NotesException
public void setDelayUpdates(boolean delay)
throws NotesException
Legal Values
true delays server updates
false posts server updates immediately
Usage
If DelayUpdates is false, the program waits for updates to the server to be
posted. If you set DelayUpdates to true, server updates are cached and the
program proceeds immediately. At a convenient time, the cached updates
are posted. This makes for better performance but risks losing the cached
updates in the event of a crash. This method applies to save and remove
operations on documents.
Set this property each time you open a database. The property is not saved.
IsFTIndexed property
Read-only. Indicates whether or not a database has a full-text index.
Defined in
Database
Data type
boolean
Syntax
public boolean isFTIndexed()
throws NotesException
Legal values
true if the database has a full-text index
false if the database does not have a full-text index
IsMultiDbSearch property
Read-only. Indicates whether a database represents a multi-database search
index.
Defined in
Database
Data type
boolean
Syntax
public boolean isMultiDbSearch()
throws NotesException
Legal values
true if the database represents a multi-database search index
false if the database does not represent a multi-database search index
IsOpen property
Read-only. Indicates whether a database is open.
Defined in
Database
Data type
boolean
Syntax
public boolean isOpen()
throws NotesException
Legal values
true if the database is open
false if the database is not open
Usage
A database must be open to use the Database methods except:
getCategories, getDelayUpdates, getDesignTemplateName, getFileName,
getFilePath, isOpen, isPrivateAddressBook, isPublicAddressBook,
getParent, getReplicaID, getServer, getSizeQuota, getTemplateName, and
getTitle.
The following methods do not open a database:
DbDirectory.getFirstDatabase, DbDirectory.getNextDatabase, and
Session.getAddressBooks. You must explicitly call Database.open.
Database db =
Dir.getFirstDatabase(DbDirectory.DATABASE);
isitopen(db);
db.open();
isitopen(db);
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsPrivateAddressBook property
Read-only. Indicates if a database is a Personal Address Book.
Defined in
Database
Data type
boolean
Syntax
public boolean isPrivateAddressBook()
throws NotesException
Legal values
true if the database is a Personal Address Book
false if the database is not a Personal Address Book
Usage
This property is available for Database objects retrieved by
getAddressBooks in Session. For other Database objects, this property has
no value and evaluates to false.
IsPublicAddressBook property
Read-only. Indicates if a database is a Domino Directory.
Defined in
Database
Data type
boolean
Syntax
public boolean isPublicAddressBook()
throws NotesException
Legal values
true if the database is a Domino Directory
false if the database is not a Domino Directory
Usage
This property is available for Database objects retrieved from
getAddressBooks in Session. For other Database objects, this property has
no value and evaluates to false.
LastFTIndexed property
Read-only. The date that a database’s full-text index was last updated.
Defined in
Database
Data type
DateTime
Syntax
public DateTime getLastFTIndexed()
throws NotesException
Usage
If the database does not have a full-text index, this property returns null.
LastModified property
Read-only. The date that a database was last modified.
Defined in
Database
Data type
DateTime
Syntax
public DateTime getLastModified()
throws NotesException
Managers property
Read-only. People, servers, and groups that have Manager access to a
database.
Defined in
Database
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getManagers()
throws NotesException
Usage
Each element in the vector is the name of a person, server, or group with
Manager access to the database.
MaxSize property
Read-only. The maximum size of a database in kilobytes.
Defined in
Database
Data type
long
Syntax
public long getMaxSize()
throws NotesException
Parent property
Read-only. The Notes session that contains a database.
Defined in
Database
Data type
Session
Syntax
public Session getParent()
PercentUsed property
Read-only. The percent of a database’s total size that is occupied by real
data (and not empty space).
Defined in
Database
Data type
double
Syntax
public double getPercentUsed()
throws NotesException
Usage
Compacting a database removes empty space in the database file.
ReplicaID property
Read-only. A 16-digit hexadecimal number that represents the replica ID of
a Notes database. Databases with the same replica ID are replicas of one
another.
Defined in
Database
Data type
String
Syntax
public String getReplicaID()
throws NotesException
ReplicationInfo property
Read-only. The replication object associated with this database.
Defined in
Database
Data type
Replication
Syntax
public Replication getReplicationInfo()
throws NotesException
Usage
See the Replication class for information and examples.
Server property
Read-only. The name of the server where a database resides.
Defined in
Database
Data type
String
Syntax
public String getServer()
throws NotesException
Usage
If the database is on a workstation, the property returns an empty string.
Size property
Read-only. The size of a database, in bytes.
Defined in
Database
Data type
double
Syntax
public double getSize()
throws NotesException
SizeQuota property
Read-write. The size quota of a database, in kilobytes.
Defined in
Database
Data type
int
Syntax
public int getSizeQuota()
throws NotesException
public void setSizeQuota(int quota)
throws NotesException
Usage
The size quota for a database specifies the amount of disk space that the
server administrator is willing to provide for the database. Therefore, the
SizeQuota property can only be set by a program that has administrator
access to the server on which the database resides. The size quota is not the
same as the size limit that a user specifies when creating a new database.
If the database has no size quota, this property returns 0.
} catch(Exception e) {
e.printStackTrace();
}
}
}
TemplateName property
Read-only. The template name of a database, if the database is a template. If
the database is not a template, returns an empty string.
Defined in
Database
Data type
String
Syntax
public String getTemplateName()
throws NotesException
Title property
Read-write. The title of a database.
Defined in
Database
Data type
String
Syntax
public String getTitle()
throws NotesException
public void setTitle(String title)
throws NotesException
Usage
A program cannot change the title of the database in which the program is
currently running.
Views property
Read-only. The views and folders in a database.
Defined in
Database
Data type
java.util.Vector; elements are View
Syntax
public java.util.Vector getViews()
throws NotesException
Usage
Each element of the vector represents a public view or folder in the
database. If the database is local, personal folders are also included.
compact method
Compacts a local database.
Defined in
Database
Syntax
public int compact()
throws NotesException
Return value
int
The difference in bytes between the size of the database before and
after compacting.
Usage
This method throws an exception if the database is not local.
e.printStackTrace();
}
}
}
createCopy method
Creates an empty copy of the current database. The copy contains the
design elements of the current database, an identical access control list, and
an identical title. The copy does not contain any documents and is not a
replica.
Defined in
Database
Syntax
public Database createCopy(String server, String dbfile)
throws NotesException
Parameters
String server
The name of the server where the new database resides. Specify null or
an empty string (“”) to create a local copy.
String dbfile
Return value
Database
Usage
If a database with the specified file name already exists, an exception
is thrown.
Programs running on a server or using remote (IIOP) calls to a server can’t
create or access databases on other servers. In these cases, the server
parameter must correspond to the server the program is running on. There
are two ways to do this:
Use null or an empty string (“”) to indicate the current computer. This
is the safer method.
Make sure the name of the server that the program runs on matches the
name of server.
createDocument method
Creates a document in a database and returns a Document object that
represents the new document.
Defined in
Database
Syntax
public Document createDocument()
throws NotesException
Return value
Document
Usage
You must call save if you want the new document to be saved.
createFromTemplate method
If the current database is a template, creates a new database from the
template. The new database has the design features and documents of the
template.
Defined in
Database
Syntax
public Database createFromTemplate(String server, String
dbfile, boolean inherit)
throws NotesException
Parameters
String server
The name of the server where the new database resides. Specify null or
an empty string (“”) to create a database on the current computer.
String dbfile
Specify true if you want the new database to inherit future design
changes from the template; otherwise, specify false.
Return value
Database
The new database, which contains the forms, subforms, fields, views,
folders, navigators, agents, and documents of the template.
Usage
If a database with the specified file name already exists, an exception is
thrown.
Programs running on a server or making remote (IIOP) calls to a server
can’t create or access databases on other servers. In these cases, the server
parameter must correspond to the server the program is running on. There
are two ways to do this:
Use null or an empty string (“”) to indicate the current computer. This
is the safer method.
Make sure the name of the server that the program runs on matches the
name of the server parameter.
Programs running on a workstation can access several different servers in a
single program.
If the current database is not a template, the createFromTemplate method
creates a new, blank database without any forms or views (equivalent to the
create method).
createOutline method
Creates an outline.
Defined in
Database
Syntax
public Outline createOutline(String name)
throws NotesException
public Outline createOutline(String name, boolean
defaultOutline)
throws NotesException
Parameters
String outline
Return value
Outline
createReplica method
Creates a replica of the current database at a new location. The new replica
has an identical access control list.
Defined in
Database
Syntax
public Database createReplica(String server, String dbfile)
throws NotesException
Parameters
String server
The name of the server where the replica will reside. Specify null or an
empty string (“”) to create a replica on the current computer.
String dbfile
Return value
Database
Usage
If a database with the specified file name already exists, an exception is
thrown.
Programs running on a server or making remote (IIOP) calls to a server
can’t create or access databases on other servers. In these cases, the server
parameter must correspond to the server the program is running on. There
are two ways to do this:
Use null or an empty string (“”) to indicate the current computer. This
is the safer method.
Make sure the name of the server that the program runs on matches the
name of the server parameter.
Programs running on a workstation can access several different servers in a
single program.
enableFolder method
Ensures that a folder exists, creating it if necessary.
Defined in
Database
Syntax
public void enableFolder(String folder)
throws NotesException
Parameters
String folder
Usage
If the folder exists, this method does nothing. If the folder does not exist,
this method creates it.
FTDomainSearch method
Conducts a Domain Search, that is, a full-text search of all databases listed
in a Domain Catalog and marked as included for multi-database indexing.
Defined in
Database
Syntax
public Document FTDomainSearch(String query, int max, int
sortopt, int otheropt, int start, int count, String entryForm)
throws NotesException
Parameters
String query
int start
The name of the search form in the domain catalog, for example,
“Domain Search.”
Return value
Document
Usage
The current Database object must represent a Domain Catalog.
If you don’t specify any sort options, you get the documents sorted by
relevance score. If you ask for a sort by date, you don’t get relevance scores.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see “To use operators to refine a search” in Notes 5 Help.
FTSearch method
Conducts a full-text search of all the documents in a database.
Defined in
Database
Syntax
public DocumentCollection FTSearch(String query)
throws NotesException
public DocumentCollection FTSearch(String query, int max)
throws NotesException
public DocumentCollection FTSearch(String query, int max, int
sortopt, int otheropt)
throws NotesException
Parameters
String query
Return value
DocumentCollection
Usage
If the database is not full-text indexed, this method works, but less
efficiently. To test for an index, use the IsFTIndexed property. To create an
index on a local database, use the updateFTIndex method.
This method searches all documents in a database. To search only
documents found in a particular view, use the FTSearch method in View.
To search only documents found in a particular document collection, use
the FTSearch method in DocumentCollection.
If you don’t specify any sort options, you get the documents sorted by
relevance score. If you ask for a sort by date, you don’t get relevance scores.
A Newsletter object formats its doclink report with either the document
creation date or the relevance score, depending on the sort options you use
in the document collection.
If the database has a multi-database index, you get a multi-database search.
Navigation through the resulting document collection may be slow, but you
can create a newsletter from the collection.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see “To use operators to refine a search” in Notes 5 Help.
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This code fragment collects all documents containing both the words
“red” and “blue.”
DocumentCollection dc = db.FTSearch("red & blue", 100);
3. This code fragment collects all documents containing either the word
“red” or “blue” in descending order by creation date.
DocumentCollection dc = db.FTSearch("red | blue", 100,
Database.FT_DATE_DES, 0);
4. This code fragment collects all documents that do not contain the word
“red” or “blue” in descending order by creation date.
DocumentCollection dc = db.FTSearch("not (red | blue)",
100,Database.FT_DATE_DES, 0);
getAgent method
Finds an agent in a database, given the agent name.
Defined in
Database
Syntax
public Agent getAgent(String name)
throws NotesException
Parameter
String name
Return value
Agent
Usage
The return value is null if the current user (as obtained by
Session.getUserName) is not the owner of the private agent.
getDocumentByID method
Finds a document in a database, given the document note ID.
Defined in
Database
Syntax
public Document getDocumentByID(String noteid)
throws NotesException
Parameters
String noteid
Return value
Document
Usage
For an explanation of note IDs, see the NoteID property in Document.
If you get a note ID from @NoteID, delete the “NT” prefix.
getDocumentByUNID method
Finds a document in a database, given the document universal ID (UNID).
Defined in
Database
Syntax
public Document getDocumentByUNID(String unid)
throws NotesException
Parameters
String unid
Return Values
Document
Usage
For an explanation of universal IDs, see the UniversalID property in
Document. You can obtain the universal ID from the UniversalID property
or ParentDocumentUNID property of a document.
getDocumentByURL method
Finds a document in the Web Navigator database. You can use this method
for either the Server Web Navigator or Personal Web Navigator database.
Defined in
Database
Syntax
public Document getDocumentByURL(String url, boolean reload)
throws NotesException
public Document getDocumentByURL(String url, boolean reload,
boolean relifmod, boolean urllist, String charset, String
webuser, String webpasswd, String proxyuser, String
proxypasswd, boolean nowait)
throws NotesException
Parameters
String url
True to reload the page from its Internet server. False to load the
page from the Internet only if it is not already in the Web
Navigator database.
boolean relifmod
(Defaults to false.) Web pages can contain URL links to other Web
pages. You can specify whether to save the URLs in a field called
URLLinksn in the Notes document. (The Web Navigator creates a
new URLLinksn field each time the field size reaches 64K. For
example, the first URLLinks field is URLLinks1, the second is
URLLinks2, and so on.)
Specify true if you want to save the URLs in the URLLinksn field(s).
Specify false if you do not want to save the URLs in the URLLinksn
field(s). If you save the URLs, you can use them in agents. For example,
you can create an agent that opens Web pages in the Web Navigator
database and then loads all the Web pages saved in each of the
URLLinksn field(s).
Caution Saving URLs in the URLLinksn field(s) may affect
performance.
String charset
(Defaults to false.) Specify true to return immediately and not wait for
completion of the retrieval. If you specify true, getDocumentByURL
does not return the Document object representing the URL document.
This parameter is useful for offline storage purposes; in this case, you
do not need the Document object and do not have to wait for
completion of the operation.
Return value
Document
The Notes document that represents the URL document you specified.
getForm method
Finds a form in a database, given the form name.
Defined in
Database
Syntax
public Form getForm(String name)
throws NotesException
Parameters
String name
Return value
Form
getOutline method
Creates an outline.
Defined in
Database
Syntax
public Outline getOutline(String name)
throws NotesException
Parameters
String outline
Return value
Outline
The outline.
getProfileDocCollection
Retrieves the profile documents associated with a profile form.
Defined in
Database
Syntax
public DocumentCollection getProfileDocCollection(String
profileName)
throws NotesException
Parameters
String profileName
Return value
DocumentCollection
getProfileDocument method
Retrieves or creates a profile document.
Defined in
Database
Syntax
public Document getProfileDocument(String profile, String
profileuser)
throws NotesException
Parameters
String profile
Return value
Document
The profile document for the specified key, or a new profile document
if the document with the key does not exist.
getURLHeaderInfo method
Gets the specific Hypertext Transfer Protocol (HTTP) header information
from the Uniform Resource Locator (URL). A URL is a text string used for
identifying and addressing a Web resource.
Defined in
Database
Syntax
public String getURLHeaderInfo(String url, String header,
String webuser, String webpasswd, String proxyuser, String
proxypasswd)
throws NotesException
Parameters
String url
The URL for the Web page you want information on, for example,
http://www.acme.com/. Specify the entire URL starting with http. You
can enter a maximum string length of 15K.
String header
Enter a header string of the URL header value you want returned. The
acceptable header strings are documented in the HTTP specification
(available at various locations on the Internet, such as
http://www.w3.org/) and are subject to change based on updated
versions of the specification.
webuser
webpasswd
String. Some proxy servers require that you specify a username in order
to connect through them. This parameter allows you to enter the
username for the proxy server. See your administrator for the username
required by the proxy. Specify null if you don’t need this parameter.
proxypasswd
String. Some proxy servers require that you specify a password in order
to connect through them. This parameter allows you to enter the
password for the proxy server. See your administrator for the password
required by the proxy. Specify null if you don’t need this parameter.
Return value
String
The requested header, or null if the URL or the requested header value
is not found. Any dashes are converted to underscores.
getView method
Finds a view or folder in a database, given the name or alias of the view
or folder.
Defined in
Database
Syntax
public View getView(String name)
throws NotesException
Parameter
String name
Return Values
View
Usage
If the database is local, getView returns both public and personal views and
folders. If the database is on a server, getView returns only public views
and folders.
When specifying the parameter, do not combine the view name and an
alias. For example, specifying “By Author|AuthorView” does not work.
Use either the view name (“By Author”) or its alias (“AuthorView”).
When the view or folder name contains underscores to indicate menu
accelerators, you have the option of including or excluding the underscores.
The method works more efficiently, however, if you include the
underscores.
grantAccess method
Modifies a database access control list to provide a specified level of access
to a person, group, or server.
Note Using this method at the same time an ACL object is in use may
produce inconsistent results.
Defined in
Database
Syntax
public void grantAccess(String name, int level)
throws NotesException
Parameters
String name
The name of the person, group, or server whose access level you want
to provide or change. For a hierarchical name, the full name must be
specified but can be in abbreviated format.
int level
Usage
If the name already exists in the ACL, this method updates it with the
access. Otherwise, the name is added to the ACL with the level.
You can also use this method to deny access to a person, group, or server by
assigning LEVEL_NOACCESS.
This method sets ACL roles to their default values.
open method
Opens a database.
Defined in
Database
Syntax
public boolean open()
throws NotesException
Return value
boolean
Usage
A database must be open to use the Database properties and methods with
some exceptions. Most methods that access a database open it, but some do
not. See isOpen for details.
Errors
An error is returned if the user does not have access rights to the database
or server.
queryAccess method
Returns a person’s, group’s, or server’s current access level to a database.
Note Using this method at the same time an ACL object is in use may
produce inconsistent results.
Defined in
Database
Syntax
public int queryAccess(String name)
throws NotesException
Parameters
String name
The name of the person, group, or server. For a hierarchical name, the
full name must be specified but can be in abbreviated format.
Return Value
int
ACL.LEVEL_MANAGER
ACL.LEVEL_NOACCESS
ACL.LEVEL_READER
Usage
If the name you specify is not listed explicitly in the ACL, queryAccess
does the following:
If the name is a member of a group defined in the Domino Directory
and that group name is listed in the ACL, queryAccess returns the
access level of the group name.
If the name is a member of several groups listed in the ACL,
queryAccess returns the highest access level granted to any of
the groups.
If the name is not a member of any group, queryAccess returns the
default access level.
If the name you specify is listed explicitly in the ACL and is also a member
of one or more groups listed in the ACL, queryAccess returns whichever
access level is higher.
To see if a name is a member of a group, queryAccess uses the Domino
Directories and Personal Address Books known to the computer on which
the program is running. If the program is running on a workstation,
queryAccess checks the Personal Address Book on the local computer.
If the program is running on a server, queryAccess checks the Domino
Directory on that server.
System.out.println("no access");
break;
case(ACL.LEVEL_DEPOSITOR) :
System.out.println("depositor access");
break;
case(ACL.LEVEL_READER) :
System.out.println("reader access");
break;
case(ACL.LEVEL_AUTHOR) :
System.out.println("author access");
break;
case(ACL.LEVEL_EDITOR) :
System.out.println("editor access");
break;
case(ACL.LEVEL_DESIGNER) :
System.out.println("designer access");
break;
case(ACL.LEVEL_MANAGER) :
System.out.println("manager access");
break;
default:
System.out.println("unknown access");
break; }
} catch(Exception e) {
e.printStackTrace();
}
}
}
remove method
Permanently deletes a database.
Defined in
Database
Syntax
public void remove()
throws NotesException
replicate method
Replicates a local database with its replica(s) on a server.
Defined in
Database
Syntax
public boolean replicate(String server)
throws NotesException
Parameter
String server
The name of the server with which you want to replicate. Any replica of
the source database that exists on the server will replicate.
Return value
boolean
Usage
The source database must be local or an exception is thrown.
revokeAccess method
Removes a person, group, or server from a database access control list. This
resets the access level for that person, group, or server to the Default setting
for the database.
Note Using this method at the same time an ACL object is in use may
produce inconsistent results.
Defined in
Database
Syntax
public void revokeAccess(String name)
throws NotesException
Parameter
String name
The name of the person, group, or server whose access you want to
revoke. For a hierarchical name, the full name must be specified but can
be in abbreviated format.
Usage
Revoking access is different than assigning No Access (which you can do
with the grantAccess method). When you revoke access, you remove the
name from the ACL, but the person, group, or server can still access the
database at the level specified for Default. When you use the grantAccess
method to assign No Access, the name remains in the ACL, and the
person, group, or server cannot access the database, regardless of the
Default setting.
Errors
The name must be explicitly listed in the database ACL. If it isn’t,
revokeAccess throws an exception, even if the name is a member of a
group that is listed in the ACL.
search method
Given selection criteria for a document, returns all documents in a database
that meet the criteria.
Defined in
Database
Syntax
public DocumentCollection search(String formula)
throws NotesException
public DocumentCollection search(String formula, DateTime dt)
throws NotesException
public DocumentCollection search(String formula, DateTime dt,
int max)
throws NotesException
Parameters
String formula
Return value
DocumentCollection
Database db = agentContext.getCurrentDatabase();
String title = db.getTitle();
DocumentCollection dc = db.search
("Subject = \"" + agent.getComment() + "\"");
int matches = dc.getCount();
System.out.println
("Search of \"" + title + "\" found " +
matches + " document(s) with Subject = \"" +
agent.getComment() + "\"");
} catch(Exception e) {
e.printStackTrace();
}
}
}
updateFTIndex method
Updates the full-text index of a database.
Defined in
Database
Syntax
public void updateFTIndex(boolean create)
throws NotesException
Parameter
boolean create
Specify true if you want to create an index if none exists (valid only for
local databases). Otherwise, specify false.
Usage
An exception is thrown if you attempt to create a full-text index on a
database that is not local.
} catch(Exception e) {
e.printStackTrace();
}
}
}
DateRange class
Represents a range of dates and times.
Syntax
public class DateRange extends Base
Containment
Contained by: Session
Contains: DateTime
Properties
EndDateTime through getEndDateTime and setEndDateTime
Parent through getParent
StartDateTime through getStartDateTime and setStartDateTime
Text through getText and setText
Creation
To create a new DateRange object, use createDateRange in Session. To
initialize the object, you can do one of the following:
Assign values to the createDateRange parameters.
Assign to StartDateTime and EndDateTime DateTime values.
Assign to Text a string value that represents a date range. This consists
of two string representations of Domino-formatted date-time values
separated by a hyphen (for example, “01/01/97 - 01/02/97”).
Usage
When you assign StartDateTime or EndDateTime, its value replaces the
corresponding value in Text, and vice versa.
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DateTime dtdb = db.getCreated();
DateTime dtnow = session.createDateTime("Today");
dtnow.setNow();
DateRange dr = session.createDateRange();
dr.setStartDateTime(dtdb);
dr.setEndDateTime(dtnow);
System.out.println("Creation date - now:");
System.out.println(" " + dr.getText());
} catch(Exception e) {
e.printStackTrace();
}
}
}
3. This example writes a value to the Text property, then displays the
LocalTime property of the StartDateTime and EndDateTime properties
(which are DateTime objects).
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DateTime dtdb = db.getCreated();
DateTime dtnow = session.createDateTime("Today");
dtnow.setNow();
DateRange dr = session.createDateRange();
dr.setText
(dtdb.getLocalTime() + " - " +
dtnow.getLocalTime());
System.out.println("Start date = " +
dr.getStartDateTime().getLocalTime());
System.out.println("End date = " +
dr.getEndDateTime().getLocalTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}
4. This example sets a value for a DateRange object, then changes the
DateTime object that the EndDateTime property is based on. This
implicitly changes the EndDateTime property.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DateTime dtdb = db.getCreated();
DateTime dtplus = session.createDateTime("Today");
dtplus.setNow();
DateRange dr = session.createDateRange(dtdb,
dtplus);
dtplus.adjustMonth(2);
System.out.println
("Creation date - 2 months from now:");
System.out.println
(" " + dr.getText());
} catch(Exception e) {
e.printStackTrace();
}
}
}
EndDateTime property
Read-write. The ending date-time of a range.
Defined in
DateRange
Data type
DateTime
Syntax
public DateTime getEndDateTime()
public void setEndDateTime(DateTime end)
Usage
Modifying the DateTime object that EndDateTime is based on implicitly
modifies EndDateTime. This does not apply if EndDateTime is based on a
java.util.Date object.
The DateTime object in setEndDateTime cannot be null.
Parent property
Read-only. The session that contains a DateRange object.
Defined in
DateRange
Data type
Session
Syntax
public Session getParent()
StartDateTime property
Read-write. The starting date-time of a range.
Defined in
DateRange
Data type
DateTime
Syntax
public DateTime getStartDateTime()
public setStartDateTime(DateTime start)
Usage
Modifying the DateTime object that StartDateTime is based on implicitly
modifies StartDateTime. This does not apply if StartDateTime is based on a
java.util.Date object.
The DateTime object in setStartDateTime cannot be null.
Text property
Read-write. The text associated with a range formatted as Domino
date-time text.
Defined in
DateRange
Data type
Object of type java.lang.String
Syntax
public String getText()
throws NotesException
public void setText(String text)
throws NotesException
DateTime class
Represents a date and time.
Syntax
public class DateTime extends Base
Containment
Contained by: AgentContext, Database, DateRange, DateTime, Document,
Session, and View
Properties
DateOnly through getDateOnly
GMTTime through getGMTTime
IsDST through isDST
LocalTime through getLocalTime, setLocalTime, and setLocalDate
Parent through getParent
TimeOnly through getTimeOnly
TimeZone through getTimeZone
ZoneTime through getZoneTime
Methods
adjustDay
adjustHour
adjustMinute
adjustMonth
adjustSecond
adjustYear
convertToZone
setAnyDate
setAnyTime
setNow
timeDifference
toJavaDate
Creation
To create a new DateTime object, use createDateTime in Session.
Usage
After creating a DateTime object with createDateTime, you can reset the
date and time with setLocalTime and setLocalDate. The createDateTime
method takes a String or java.util.Date parameter. One form of
setLocalTime takes a String parameter; another form takes a java.util.Date
parameter. Other forms of setLocalTime and setLocalDate take multiple int
parameters.
The String form of the date parameter is a date, followed by a space,
followed by a time. You can specify a date without a time, and a time
without a date.
The date component of a String parameter can be in any of the following
formats, where “/” represents the operating system date separator:
MM/DD/YY
For example, “04/16/97” represents April 16, 1997. Use this format to
specify a year in the 20th century (MM is 50 or greater) or the 21st
century (MM is less than 50).
MM/DD/YYYY
For example, “04/16/1997” represents April 16, 1997 and
“04/16/2097” represents April 16, 2097. Use this format to specify a
year in any century.
MM/DD
For example, “08/18” represents August 18, 1996, if 1996 is the current
year. When you use this format, Domino appends the current year.
MM/YY
For example, “08-96” represents August 1, 1996. When you use this
format, Domino stores it as the first day of the month. Use this format to
specify a year in the 20th century (MM is 50 or greater) or the 21st
century (MM is less than 50).
MM/YYYY or MM-YYYY
For example, “08-2096” represents August 1, 2096. When you use this
format, Domino stores it as the first day of the month. Use this format to
specify a year in any century.
“Today” or “Yesterday”
The time component of a String parameter can be in any of the following
formats, where “:” represents the operating system time separator. The
seconds component, SS, is optional. “AM” and “PM” are ignored if you are
using 24-hour time.
HH:MM:SS PM. For example, “09:12:33 PM.”
HH:MM:SS AM. For example, “09:12:33 AM.”
HH:MM:SS. For example, “09:12:33.” If you do not specify AM or PM,
the time is treated as 24-hour time; therefore “09:12:33” is stored as
09:12:33 AM, while “21:12:33” is stored as 09:12:33 PM.
Time zones
When you create a new DateTime object, its TimeZone property is
determined by the time zone setting in the operating system. For example, if
the program runs on a computer whose time zone is set to US Eastern
Standard Time, the TimeZone property of any new DateTime object is
automatically set to 5. If you do not specify a time zone in the date String,
the time zone setting in the operating system is used to calculate the
GMTime property.
2. This script creates a new DateTime object that represents today’s date
and then prints it in local time. The time component of the DateTime
object is not set.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DateTime dt = session.createDateTime("Today");
System.out.println(dt.getLocalTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}
3. This script creates two new DateTime objects. The first represents
January 15, 1900; the second represents January 15, 2000.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DateTime dt1 = session.createDateTime("01/15/1900");
DateTime dt2 = session.createDateTime("01/15/00");
System.out.println(dt1.getLocalTime());
System.out.println(dt2.getLocalTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}
DateOnly property
Read-only. A string representation of the date part of the time-date.
Defined in
DateTime
Data type
String
Syntax
public String getDateOnly()
throws NotesException
GMTTime property
Read-only. A string representing a date-time, converted to Greenwich Mean
Time (timezone 0).
Defined in
DateTime
Data type
String
Syntax
public String getGMTTime()
throws NotesException
Usage
The GMT time for a date created from a string is determined using the
operating system time zone setting, unless the date string specifies a time
zone.
IsDST property
Read-only. Indicates if the time reflects daylight savings time.
Defined in
DateTime
Data type
boolean
Syntax
public boolean isDST()
throws NotesException
Legal values
true if the current computer is set to observe daylight-saving time, and
daylight savings time is currently in effect (for example, from mid-April
to mid-October)
false if the current computer is set to observe daylight-saving time, but
daylight-saving time is not currently in effect (for example, from
mid-October to mid-April); the current computer is not set to observe
daylight-saving time; the DateTime object has no date component; or
the DateTime object has no time component
Usage
For remote (IIOP) operations, the current computer is the Domino server.
For local operations, the current computer is the computer on which the
program is running.
The convertToZone method may modify the value of this property.
LocalTime property
Read-write. A string representing a date-time in the local time zone.
Additional methods let you set the local time with Date, integer, and
Boolean values.
Defined in
DateTime
Data type
String
Syntax
public String getLocalTime()
throws NotesException
public void setLocalTime(String dt)
throws NotesException
public void setLocalTime(java.util.Date dt)
throws NotesException
public void setLocalDate(int year, int month, int day)
throws NotesException
public void setLocalDate(int year, int month, int day, boolean
preserveLocalTime)
throws NotesException
public void setLocalTime(int hour, int minute, int second, int
hundredth)
throws NotesException
Usage
When you set this property, it changes the value of the date-time that the
object represents, and, therefore, affects the GMTTime property.
The dt, year, month, day, hour, minute, second, and hundredth parameters
specify the new time. The preserveLocalTime parameter affects adjustments
from the existing date that cross a daylight savings boundary. Specify true
3. This agent is the same as above but passes the date and time as integer
values to setLocalDate and setLocalTime rather than as a string to
setLocalTime.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
DateTime dt = session.createDateTime("Today");
dt.setLocalDate(1997, 12, 12, true);
dt.setLocalTime(1, 30, 0, 0);
System.out.println(dt.getLocalTime());
System.out.println(dt.getGMTTime());
} catch(Exception e) {
e.printStackTrace();
}
}
}
Parent property
Read-only. The Notes session that contains a DateTime object.
Defined in
DateTime
Data type
Session
Syntax
public Session getParent()
throws NotesException
TimeOnly property
Read-only. A string representation of the time part of the date-time.
Defined in
DateTime
Data type
String
Syntax
public String getTimeOnly()
throws NotesException
TimeZone property
Read-only. An integer representing the time zone of a date-time. This
integer indicates the number of hours that must be added to the time to get
Greenwich Mean Time when daylight-saving time is not in effect. May be
positive or negative.
Defined in
DateTime
Data type
Integer
Syntax
public int getTimeZone()
throws NotesException
Usage
When you create a new DateTime object, this property is set according to
the time zone setting of the computer on which the program runs or, for
remote (IIOP) operations, the Domino server.
When you access a date-time value from an item in a document using the
DateTimeValue property in Item, this property is set according to the time
zone stored in the item.
The convertToZone method may modify the value of this property.
ZoneTime property
Read-only. A string representation of the time adjusted for the TimeZone
and IsDST properties.
Defined in
DateTime
Data type
String
Syntax
public String getZoneTime()
throws NotesException
Usage
Initially ZoneTime is the same as LocalTime. If you use the convertToZone
method, changes to TimeZone and IsDST are reflected in ZoneTime, but
LocalTime stays the same.
adjustDay method
Increments a date-time by the number of days you specify.
Defined in
DateTime
Syntax
public void adjustDay(int n)
throws NotesException
public void adjustDay(int n, boolean preserveLocalTime)
throws NotesException
Parameter
int n
Usage
If the DateTime object consists of only a time component, this method has
no effect.
The number of days by which you increment a DateTime object can cause
the month to be incremented.
adjustHour method
Increments a date-time by the number of hours you specify.
Defined in
DateTime
Syntax
public void adjustHour(int n)
throws NotesException
public void adjustHour(int n, boolean preservelocaltime)
throws NotesException
Parameter
int n
Usage
If the DateTime object consists of only a date component, this method has
no effect.
The number of hours by which you increment a DateTime object can cause
the date component to be adjusted, too. For example, if the adjustment is
+24, the date component changes to the next calendar day.
adjustMinute method
Increments a date-time by the number of minutes you specify.
Defined in
DateTime
Syntax
public void adjustMinute(int n)
throws NotesException
public void adjustMinute(int n, boolean preservelocaltime)
throws NotesException
Parameter
int n
Usage
If the DateTime object consists of only a date component, this method has
no effect.
The number of minutes by which you increment a DateTime object can
cause the date component to be adjusted, too. For example, if the
adjustment is +1440, the date component changes to the next calendar day.
adjustMonth method
Increments a date-time by the number of months you specify.
Defined in
DateTime
Syntax
public void adjustMonth(int n)
throws NotesException
public void adjustMonth(int n, boolean preservelocaltime)
throws NotesException
Parameter
int n
Usage
If the DateTime object consists of only a time component, this method has
no effect.
The number of months by which you increment a DateTime object can
cause the year to be incremented. For example, if the adjustment is +12, the
date component changes to the next calendar year.
adjustSecond method
Increments a date-time by the number of seconds you specify.
Defined in
DateTime
Syntax
public void adjustSecond(int n)
throws NotesException
public void adjustSecond(int n, boolean preservelocaltime)
throws NotesException
Parameter
int n
Usage
If the DateTime object consists of only a date component, this method has
no effect.
adjustYear method
Increments a date-time by the number of years you specify.
Defined in
DateTime
Syntax
public void adjustYear(int n)
throws NotesException
public void adjustYear(int n, boolean preservelocaltime)
throws NotesException
Parameter
int n
boolean preservelocaltime
Usage
If the DateTime object consists of only a time component, this method has
no effect.
The number of years by which you increment a DateTime object can cause
the century to change. If this happens, the year is represented as a string
with four digits instead of two, such as 08/18/2001.
convertToZone method
Changes the TimeZone and IsDST properties as specified.
Defined in
DateTime
Syntax
public void convertToZone(int zone, boolean isDST)
throws NotesException
Parameters
int zone
Usage
These changes also affect the ZoneTime property.
These changes do not affect the GMTTime and the LocalTime properties.
setAnyDate method
Sets the date component to a wildcard value, which means it matches any
date. The time component is unaffected.
Defined in
DateTime
Syntax
public void setAnyDate()
throws NotesException
Usage
This method is useful when passing the object as an argument to other
methods.
A DateTime object for which you have invoked this method may not be
convertible to string format.
setAnyTime method
Sets the time component to a wildcard value, which means it matches any
time. The date component is unaffected.
Defined in
DateTime
Syntax
public void setAnyTime()
throws NotesException
Usage
This method is useful when passing the object as an argument to other
methods.
A date-time object for which you have invoked this method may not be
convertible to string format.
setNow method
Sets the value of a date-time to now (today’s date and current time).
Defined in
DateTime
Syntax
public void setNow()
throws NotesException
Usage
For remote (IIOP) operations, the date-time value is based on the Domino
server. For local operations, the date-time value is based on the computer
on which the program is running.
This method works by taking a snapshot of the current date-time at the
moment that the method is executed. After the method executes, the value
of the DateTime object does not update itself to always reflect the current
date-time. Its value only changes if you change it explicitly.
timeDifference method
Finds the difference in seconds between one date-time and another.
Defined in
DateTime
Syntax
public int timeDifference(DateTime dt)
throws NotesException
public double timeDifferenceDouble(DateTime dt)
throws NotesException
Parameter
DateTime dt
Return value
int
toJavaDate method
Converts a Notes date and time into a java.util.Date object.
Defined in
DateTime
Syntax
public java.util.Date toJavaDate()
throws NotesException
Return value
java.util.Date
DbDirectory class
Represents the Domino databases on a server or the local computer.
Syntax
public class DbDirectory extends Base
Containment
Contained by: Session
Contains: Database and DateTime
Properties
Name through getName
Parent through getParent
Methods
createDatabase
getFirstDatabase
getNextDatabase
openDatabase
openDatabaseByReplicaID
openDatabaseIfModified
openMailDatabase
Creation
You create a new DbDirectory object with getDbDirectory in Session.
Database db =
dir.getFirstDatabase(DbDirectory.DATABASE);
while (db != null) {
String fn = db.getFileName();
String title = db.getTitle();
System.out.println(fn.toUpperCase() + " - " + title);
db = dir.getNextDatabase(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
Name property
Read-only. The name of the server whose database directory you are
searching.
Defined in
DbDirectory
Data type
String
Syntax
public String getName()
throws NotesException
Usage
This property returns null for DbDirectory objects that represent the local
directory.
Parent property
Read only. The Domino session that contains a DbDirectory object.
Defined in
DateTime
Data type
Session
Syntax
public Session getParent()
createDatabase method
Creates a new database, using the server and file name that you specify.
Because the new database is not based on a template, it is blank and does
not contain any forms or views.
Defined in
DbDirectory
Syntax
public Database createDatabase(String dbfile)
throws NotesException
public Database createDatabase(String dbfile, boolean open)
throws NotesException
Parameters
String dbfile
Indicates if you want to open the database. Specify true if you want to
open the database and false if you do not
Usage
If you do not open the database, only a subset of its methods are available.
See isOpen in Database.
getFirstDatabase method
Returns the first database from a server or the local directory, using the file
type you specify.
Defined in
DbDirectory
Syntax
public Database getFirstDatabase(int type)
throws NotesException
Parameter
int type
Return value
Database
The first database of the specified file type located in the directory, or
null if the directory contains no databases of the specified type.
Usage
The returned database is closed. If you do not open the database, only a
subset of its methods are available. See isOpen in Database.
Each time you call this method, the database directory is reset and a new
search is conducted. If you are searching for template files, for example, a
new call to getFirstDatabase with the parameter DATABASE starts
searching the directory from the beginning, this time for database files.
getNextDatabase method
Returns the next database from a server or the local directory, using the file
type specified in the preceding getFirstDatabase method.
Defined in
DbDirectory
Syntax
public Database getNextDatabase()
throws NotesException
Return value
Database
The next database located in the directory, or null if there are no more.
Usage
The returned database is closed. If you do not open the database, only a
subset of its methods are available. See isOpen in Database.
This method must be preceded in the code by getFirstDatabase.
openDatabase method
Opens a database.
Defined in
DbDirectory
Syntax
public Database openDatabase(String dbfile)
throws NotesException
public Database openDatabase(String dbfile, boolean failover)
throws NotesException
Parameters
String dbfile
Return value
Database
openDatabaseByReplicaID method
Opens the database with a specified replica ID.
Defined in
DbDirectory
Syntax
public Database openDatabaseByReplicaID(String rid)
throws NotesException
Parameters
String rid
Return value
Database
openDatabaseIfModified method
Opens a database if it has been modified since a specified date.
Defined in
DbDirectory
Syntax
public Database openDatabaseIfModified(String dbfile, DateTime
date)
throws NotesException
Parameters
String dbfile
Return value
Database
System.out.println(
"Database not modified in past 3 hours");
} catch(Exception e) {
e.printStackTrace();
}
}
}
openMailDatabase method
Opens the current user’s mail database.
Defined in
DbDirectory
Syntax
public Database openMailDatabase()
throws NotesException
Return value
Database
Usage
For a program to use this method, it must run either on a workstation or on
the agent owner’s mail server. Otherwise, an error occurs since programs
running on servers cannot access databases on other servers.
If the program runs on a workstation, openMailDatabase finds the
current user’s mail server and database in the notes.ini file.
If the program runs on a server, the current user is considered to be the
last person who modified the agent (the agent’s owner), and
openMailDatabase finds the user’s mail server and database in the
Domino Directory on the server.
If the program is making remote (IIOP) calls to a server, the current
user is the user who created the session, openMailDatabase finds the
user’s mail server and database in the Domino Directory on the server.
Document class
Represents a document in a database.
Syntax
public class Document extends Base
Containment
Contained by: Database, DocumentCollection, Newsletter, View
Contains: DateTime, EmbeddedObject, Item, RichTextItem
Properties
Authors through getAuthors
ColumnValues through getColumnValues
Created through getCreated
EmbeddedObjects through getEmbeddedObjects
EncryptionKeys through getEncryptionKeys and setEncryptionKeys
FolderReferences through getFolderRefs
FTSearchScore through getFTSearchScore
HasEmbedded through hasEmbedded
IsDeleted through isDeleted
IsEncryptOnSend through isEncryptOnSend and setEncryptOnSend
IsNewNote through isNewNote
Methods
appendItemValue
computeWithForm
copyAllItems
copyItem
copyToDatabase
createReplyMessage
createRichTextItem
encrypt
getAttachment
getFirstItem
getItemValue
getItemValueDouble
getItemValueInteger
getItemValueString
hasItem
makeResponse
putInFolder
remove
removeFromFolder
removeItem
renderToRTItem
replaceItemValue
save
send
sign
Creation
To create a new Document object, use createDocument in Database.
Access
To access existing documents:
To get all the documents in a database, use getAllDocuments
in Database.
To get a document based on its position in a view, use a View object.
To get a document based on its position in a response hierarchy, use a
View object. To get all documents that are responses to a particular
document, use getResponses in Document. To get a response
document’s parent document, use getParentDocumentUNID in
Document followed by getDocumentByUNID in Database.
To get all the documents that match a full text search query, use
FTSearch in Database or FTSearch in View.
Saving changes
After you create, modify, or delete a document, you must save the changes
by calling the Save method. If you don’t call save before the program
finishes, all of your changes to a Document are lost.
If you create a new document, but do not add any items to it, the document
is not saved, even if you invoke the save method.
Encryption
A program attempts to decrypt an encrypted document the first time the
program accesses one of the Document properties or methods. If decryption
fails, an exception is thrown.
Authors property
Read-only. The names of the people who have saved a document.
Defined in
Document
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getAuthors()
throws NotesException
Usage
If a name is hierarchical, this property returns the fully distinguished name.
This property does not return the names of people who have permission to
edit a document (as found in an item of type Authors). Therefore, the
people returned by the Authors property and the people listed in an
Authors item may differ.
ColumnValues property
Read-only. An array of values, each element of which corresponds to a
column value in the document’s parent view. The first value in the array is
the value that appears in the view’s first column for the document, the
second value is the one that appears in the second column, and so on. The
value of each element of the array is the result of the corresponding
column’s formula and the items on the current document. Some elements in
the array might have no value.
Defined in
Document
Data type
java.util.Vector; elements are Object
Syntax
public java.util.Vector getColumnValues()
throws NotesException
Usage
If you do not access the document through a view, this property has
no value.
If a document contains an item that’s visible in a view, the ColumnValues
property provides efficient access to its value. Accessing the item value
directly is less efficient.
This property returns a value for each column in the parent view,
regardless of whether the column is considered “Responses-only.”
For example, if the third column in a view is responses-only,
doc.GetColumnValues( 2 ) evaluates the column formula for
the document and returns a result, whether the document is a
response or not.
(v.elementAt(i).getClass().getName().endsWith("String"))
s = (String)v.elementAt(i);
else if
(v.elementAt(i).getClass().getName().endsWith("DateTime")) {
dt = (DateTime)v.elementAt(i);
s = dt.getLocalTime(); }
else if
(v.elementAt(i).getClass().getName().endsWith("Double")) {
d = (Double)v.elementAt(i);
s = d.toString(); }
else
s = "not String, DateTime, or Double";
if (s.length() == 0) s = "*no value*";
System.out.println(tabs + s);
tabs = tabs + "\t"; }
doc = view.getNextDocument(doc); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
Created property
Read-only. The date a document was created.
Defined in
Document
Data type
DateTime
Syntax
public DateTime getCreated()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
EmbeddedObjects property
Read-only. The OLE/2 and OLE/1 embedded objects in a document.
Note EmbeddedObjects is not supported on OS/2, on UNIX, and on
the Macintosh.
Defined in
Document
Data type
java.util.Vector; elements are EmbeddedObject
Syntax
public java.util.Vector getEmbeddedObjects()
throws NotesException
Usage
Unlike the EmbeddedObjects property in RichTextItem, this property does
not include file attachments or OLE/1 objects created in Notes Release 3.
This property does include OLE/2 and OLE/1 objects created in Release 4
and higher. It also includes objects in the document that were originally
embedded in the document’s form. Such objects must have been activated,
modified, and re-saved in order to be returned by this property (otherwise
they remain a part of the form, not the document).
The vector is empty if the document contains no embedded objects.
System.out.println
("\t" + eo.getName() + " of " +
eo.getClassName());
}
}
doc = dc.getNextDocument(doc); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
EncryptionKeys property
Read-write. The key(s) used to encrypt a document. The encrypt method
uses these keys when it encrypts the document.
Defined in
Document
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getEncryptionKeys()
throws NotesException
public void setEncryptionKeys(java.util.Vector keys)
throws NotesException
Usage
Each element in EncryptionKeys contains the name of an encryption key
you want to use to encrypt the document. The document can be decrypted
by any user who posesses one of the keys. If there are no encryption keys
specified for a document, the document is encrypted with the current user’s
public key and can only be decrypted by that user.
You must call the encrypt and save methods to actually encrypt the
document. Since encryption works differently when a document is mailed,
the EncryptionKeys property has no effect when a document is encrypted
when mailed.
The name of each encryption key in a document is stored in a text item
called SecretEncryptionKeys. This property returns the contents of the item.
FolderReferences property
Read-only. The universal IDs for the folders containing a document.
Defined in
Document
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getFolderReferences()
throws NotesException
Usage
Folder references must be enabled for the database. See the
FolderReferencesEnabled property of Database.
FTSearchScore property
Read-only. The full-text search score of a document, if it was retrieved as
part of a full-text search.
Defined in
Document
Data type
int
Syntax
public int getFTSearchScore()
throws NotesException
Usage
The score is determined by the number of target words that are found in the
document, the term weights assigned to the target words, and any
proximity operators in the search query. If the document is not retrieved as
part of a full-text search, returns 0. If the document is retrieved using an
FTSearch method on a database without a full-text index, returns an
unpredictable number.
If a document is in more than one DocumentCollection or
ViewEntryCollection, its score is that of the last collection it was retrieved
from. The score is correct unless you get the score from the current object
after retrieving the same document from another collection.
} catch(Exception e) {
e.printStackTrace();
}
}
}
HasEmbedded property
Read-only. Indicates if a document contains one or more embedded objects,
object links, or file attachments.
Note HasEmbedded is not supported on OS/2, on UNIX, and on
the Macintosh.
Defined in
Document
Data type
boolean
Syntax
public boolean hasEmbedded()
throws NotesException
Legal values
True if the document contains one or more embedded objects, object
links, or file attachments.
False if the document does not contain any embedded objects, object
links, or file attachments.
IsEncryptOnSend property
Read-write. Indicates if a document is encrypted when mailed.
Defined in
Document
Data type
boolean
Syntax
public boolean isEncryptOnSend()
throws NotesException
public void setEncryptOnSend(boolean flag)
throws NotesException
Legal values
True if the document is encrypted when mailed.
False if the document is not encrypted when mailed.
Usage
To encrypt a document when mailed, this method looks for the public key
of each recipient in the Domino Directory. If it cannot find a recipient’s
public key, the method sends an unencrypted copy of the document to that
recipient. All other recipients receive an encrypted copy of the document.
This property has no effect on whether a document is encrypted when
saved to a database.
IsNewNote property
Read-only. Indicates if a document is new. A document is new if it has not
been saved.
Defined in
Document
Data type
boolean
Syntax
public boolean isNewNote()
throws NotesException
Legal values
True if the document was created, but has not been saved.
False if the document has been saved.
} catch(Exception e) {
e.printStackTrace();
}
}
IsProfile property
Read-only. Indicates if a Document object is a profile document.
Defined in
Document
Data type
boolean
Syntax
public boolean isProfile()
throws NotesException
Legal values
True if the document is a profile document.
False if the document is not a profile document.
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsResponse property
Read-only. Indicates if a document is a response to another document.
Defined in
Document
Data type
boolean
Syntax
public boolean isResponse()
throws NotesException
Legal values
True if the document is a response to another document.
False if the document is not a response to another document.
IsSaveMessageOnSend property
Read-write. Indicates if a document is saved to a database when mailed.
Applies only to new documents that have not yet been saved.
Defined in
Document
Data type
boolean
Syntax
public boolean isSaveMessageOnSend()
throws NotesException
public void setSaveMessageOnSend(boolean flag)
throws NotesException
Legal values
True if the document is saved when mailed.
False if the document is not saved when mailed.
Usage
When SaveMessageOnSend is true, the document is saved just after being
mailed.
IsSentByAgent property
Read-only. Indicates if a document was mailed by a Domino program.
Defined in
Document
Data type
boolean
Syntax
public boolean isSentByAgent()
throws NotesException
Legal values
True if the document was mailed by a program.
False if the document was mailed by a person.
Usage
In agents that respond to mail messages, you can use this property to make
sure that the agent is not responding to mail that was sent by a program.
Documents sent by a program contain an item called $AssistMail whose
value is set to 1.
IsSigned property
Read-only. Indicates if a document contains a signature.
Defined in
Document
Data type
boolean
Syntax
public boolean isSigned()
throws NotesException
Legal values
True if the document contains one or more signatures.
False if the document does not contain signatures.
Usage
You can get the Signer and Verifier for a signed document. To access the
signature itself, you must find the item of type SIGNATURE in the
document.
IsSignOnSend property
Read-write. Indicates if a document is signed when mailed.
Defined in
Document
Data type
boolean
Syntax
public boolean isSignOnSend()
throws NotesException
public void setSignOnSend(boolean flag)
throws NotesException
Legal values
True if the document is signed when mailed.
False if the document is not signed when mailed.
IsValid property
Read-only. Indicates if a Document object represents an existing document
(not a deletion stub).
Defined in
Document
Data type
boolean
Syntax
public boolean isValid()
throws NotesException
Legal values
True if the document represents an existing document.
False if the document is a deletion stub.
} catch(Exception e) {
e.printStackTrace();
}
}
}
Items property
Read-only. All the items in a document. An item is any piece of data stored
in a document.
Defined in
Document
Data type
java.util.Vector; elements are Item
Syntax
public java.util.Vector getItems()
throws NotesException
System.out.println("Document " +
doc.getNoteID() + ":");
Vector items = doc.getItems();
for (int j=0; j<items.size(); j++) {
Item item = (Item)items.elementAt(j);
System.out.println("\t" +
item.getName() + " = \"" +
item.getValueString() + "\"");
}
doc = dc.getNextDocument();
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
Key property
Read-only. If a profile document, the user name (key) of the profile.
Defined in
Document
Data type
String
Syntax
public String getKey()
throws NotesException
LastAccessed property
Read-only. The date a document was last modified or read.
Defined in
Document
Data type
DateTime
Syntax
public DateTime getLastAccessed()
throws NotesException
LastModified property
Read-only. The date a document was last modified.
Defined in
Document
Data type
DateTime
Syntax
public DateTime getLastModified()
throws NotesException
NameOfProfile property
Read-only. If a profile document, the name of the profile.
Defined in
Document
Data type
String
Syntax
public String getNameOfProfile()
throws NotesException
NoteID property
Read-only. The NoteID of a document, which is a hexadecimal value of up
to 8 characters that uniquely identifies a document within a particular
database.
Defined in
Document
Data type
String
Syntax
public String getNoteID()
throws NotesException
Usage
A typical Note ID looks like this: 20FA. A NoteID represents the location of
a document within a specific database file, so documents that are replicas of
one another generally have different NoteIDs. A NoteID does not change,
unless the document is deleted.
ParentDatabase property
Read-only. The database that contains a document.
Defined in
Document
Data type
Database
Syntax
public Database getParentDatabase()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
ParentDocumentUNID property
Read-only. The universal ID of a document’s parent, if the document is a
response. Returns a null if a document doesn’t have a parent.
Defined in
Document
Data type
String
Syntax
public String getParentDocumentUNID()
throws NotesException
Usage
When used in conjunction with getDocumentByUNID in Database, this
property allows you to get the parent document for any document.
For more information on universal IDs, see the UniversalID property.
ParentView property
Read-only. The view from which a document was retrieved, if any. If the
document was retrieved directly from the database or a document
collection, returns null.
Defined in
Document
Data type
View
Syntax
public View getParentView()
throws NotesException
printViewName(doc2);
} catch(Exception e) {
e.printStackTrace();
}
}
try {
View view = d.getParentView();
if (view == null)
System.out.println(
"Document did not come from a view.");
else
System.out.println("Document came from \"" +
view.getName() + "\" view.");
} catch(Exception e) {
e.printStackTrace();
}
}
}
Responses property
Read-only. The immediate responses to a document.
Defined in
Document
Data type
DocumentCollection
Syntax
public DocumentCollection getResponses()
throws NotesException
Usage
Each document returned is an immediate response to the first document.
Responses-to-responses are not included. If the current document has no
responses, the vector contains zero documents.
Responses-to-Responses
This property returns only immediate responses to a document, but you can
write a recursive sub or function to access all the descendants of a particular
document. A recursive sub calls itself, the same way that a non-recursive
sub calls any other sub or function.
try {
Document doc = dc.getFirstDocument();
while (doc != null) {
System.out.println(tabs +
doc.getItemValueString("Subject"));
DocumentCollection dc2 = doc.getResponses();
if (dc2.getCount() > 0)
printResponses(dc2, tabs + "\t");
doc = dc.getNextDocument(doc);
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
Signer property
Read-only. The name of the person who created the signature, if a
document is signed.
Defined in
Document
Data type
String
Syntax
public String getSigner()
throws NotesException
Usage
If a document is not signed, returns null.
Size property
Read-only. The size of a document in bytes, which includes the size of any
file attachments to the document.
Defined in
Document
Data type
int
Syntax
public int getSize()
throws NotesException
UniversalID property
Read-write. The universal ID of a document, which is a 32-character
combination of hexadecimal digits (0-9, A-F) that uniquely identifies a
document across all replicas of a database. If two documents in replica
databases share the same universal ID, the documents are replicas.
The universal ID is also known as the unique ID or UNID.
Defined in
Document
Data type
String
Syntax
public String getUniversalID()
throws NotesException
public void setUniversalID(String unid)
throws NotesException
Usage
If you modify the UNID of an existing document, it becomes a new
document.
If you set the UNID of a document the same as another document, you get
run-time error 4000 when you attempt to save the document.
Verifier property
Read-only. The name of the certificate that verified a signature, if a
document is signed.
Defined in
Document
Data type
String
Syntax
public String getVerifier()
throws NotesException
Usage
This property is null if the document is not signed.
appendItemValue method
Creates a new item in a document and optionally sets the item value.
Note In general, replaceItemValue is favored over appendItemValue. If an
item of the same name already exists in a document, appendItemValue
creates a second item of the same name, and the duplicate items are not
accessible through most methods. If you are creating a new document,
appendItemValue is safe.
Defined in
Document
Syntax
public Item appendItemValue(String name)
throws NotesException
public Item appendItemValue(String name, int value)
throws NotesException
public Item appendItemValue(String name, double value)
throws NotesException
public Item appendItemValue(String name, Object value)
throws NotesException
Parameters
String name
Object value
The value of the new item. The data type of the new item depends upon
the data type of the value that you place in it.
Data type of value Resulting Item
String Text
Integer Number
Double Number
DateTime Date-time item
java.util.Vector with String, Integer, Multi-value text, number,
Double, or DateTime elements or date-time item
Item Same data type as the Item
Return value
Item
Usage
To keep the new item, you call save after calling appendItemValue.
If the document already has an item called name, appendItemValue does
not replace it. Instead, it creates another item of the same name and gives it
the value you specify.
stringMultiple.addElement("String one");
stringMultiple.addElement("String two");
stringMultiple.addElement("String three");
doc.appendItemValue("stringMultiple",
stringMultiple);
// Create numeric item with one int value
doc.appendItemValue("integer", 101);
// Create numeric item with one double value
doc.appendItemValue("double", 1.01);
// Create numeric item with multiple Integer values
Vector integerMultiple = new Vector();
Integer one = new Integer(1);
integerMultiple.addElement(one);
Integer two = new Integer(2);
integerMultiple.addElement(two);
Integer three = new Integer(3);
integerMultiple.addElement(three);
doc.appendItemValue("integerMultiple",
integerMultiple);
// Create time item with one DateTime value
DateTime timenow = session.createDateTime("");
timenow.setNow();
doc.appendItemValue("dateTime", timenow);
if (doc.save())
System.out.println("Document created and saved");
else
System.out.println("Something went wrong");
} catch(Exception e) {
e.printStackTrace();
}
}
}
computeWithForm method
Validates a document by executing the default value, translation, and
validation formulas, if any are defined in the document form.
Defined in
Document
Syntax
public boolean computeWithForm(boolean dodatatypes, boolean
raiseerror)
throws NotesException
Parameters
boolean dodatatypes
Return value
True if there are no errors in the document.
False if there are errors in the document.
Usage
The form is as follows:
1. The form stored in the document, if any.
2. The value of the Form item, if no form is stored in the document.
3. The database default form, if the document does not have a Form item.
In the user interface, you must use a form to create a document. The
document must meet the form requirements for input validation, and the
user interface informs you if the document does not meet these
requirements. Programatically you can create a document without a form.
The computeWithForm method provides a means of checking that the data
you placed in a document meets a form’s requirements, although (unlike in
the user interface) you can still save a document if computeWithForm
returns false or throws an exception.
The following agent as it stands does not save the document. If the
replaceItemValue line for Subject is uncommented, the agent saves the
document.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
Document doc = db.createDocument();
copyAllItems method
Copies all items in the current document into the destination document. The
item names are unchanged.
Defined in
Document
Syntax
public void copyAllItems(Document doc, boolean replace)
throws NotesException
Parameters
Document
If true, the items in the destination document are replaced. If false, the
items in the destination document are appended.
Usage
If you are not copying to a newly created document, you should probably
specify true for the second parameter. See appendItemValue for a note
about appending items to existing documents.
copyItem method
Copies an item into the current document and optionally assigns the copied
item a new name.
Defined in
Document
Syntax
public Item copyItem(Item item)
throws NotesException
public Item copyItem(Item item, String newname)
throws NotesException
Parameters
Item item
The item, usually from another document, that you want to copy.
Cannot be null.
String newname
The name to assign to the copied item. Specify null to retain the item’s
existing name.
Return value
Item
A copy of the specified item parameter, identical except for its newname.
copyToDatabase method
Copies a document to a specified database.
Defined in
Document
Syntax
public Document copyToDatabase(Database db)
throws NotesException
Parameter
Database db
The database to which you want to copy the document. Cannot be null.
Return value
Document
createReplyMessage method
Creates a new document that is formatted as a reply to the current
document.
Defined in
Document
Syntax
public Document createReplyMessage(boolean toall)
throws NotesException
Parameter
boolean toall
If true, the new document recipient list contains all the recipients of the
original. If false, the new document recipient list contains only the
sender of the original.
Return value
Document
Usage
The new document does not contain a Subject item. If you want one, the
program must explicitly add it to the document.
The new document does not automatically get mailed. If you want to mail
it, the program must explicitly call the send method.
reply.replaceItemValue("Body",
"This has been filed for future consideration.");
reply.send(doc.getItemValueString("From"));
doc = view.getNextDocument(doc); }
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}
createRichTextItem method
Creates a new rich text item in a document.
Defined in
Document
Syntax
public RichTextItem createRichTextItem(String name)
throws NotesException
Parameter
String name
Return value
RichTextItem
Usage
For more information, see the RichTextItem class.
encrypt method
Encrypts a document.
Defined in
Document
Syntax
public void encrypt()
throws NotesException
Usage
The encrypted document is not saved until you call save. Only the items for
which isEncrypted is true are encrypted. Items for which isEncrypted is
false remain visible to any user, even if the user does not have the proper
encryption key.
If the EncryptionKeys property is set with one or more named keys, those
keys are used to encrypt the document. Any user who has one of the
encryption keys can decrypt the document. If there are no encryption keys
specified, the document is encrypted with the user’s public key, in which
case only the user who encrypted the document can decrypt it.
If the program is running on a server, it must have permission to use
Encrypt.
Since mail encryption works differently, do not use this method if you want
to mail an encrypted document. Instead, set the EncryptOnSend property to
true, and use the send method.
getAttachment method
Returns a representation of a file attachment. You can use this method to
find file attachments that are not contained in a rich text item (such as an
attachment in a Release 2 database) as well as file attachments that are
contained in a rich text item.
Define in
Document
Syntax
public EmbeddedObject getAttachment(String filename)
throws NotesException
Parameter
String filename
Return value
EmbeddedObject
Usage
The Parent property for the returned EmbeddedObject returns null, since it
was not accessed through a RichTextItem.
"Subject") + "\"");
break; }
doc = dc.getNextDocument(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getFirstItem method
Returns the first item of a specified name in a document.
Defined in
Document
Syntax
public Item getFirstItem(String name)
throws NotesException
Parameter
String name
Return value
Item
The first item with name. Returns null if the document does not contain
an item with name.
Usage
A document may contain more than one item of the same name. To access
other than the first item, use the Items property.
If the value of a field is computed for display, the value is not stored as an
item and is inaccessible from a Document object. In some cases, you can
access the field value another way. For example, if a document has a
DateComposed field computed for display with the formula @Created, use
getCreated.
getItemValue method
Returns the value of an item.
Defined in
Document
Syntax
public java.util.Vector getItemValue(String name)
throws NotesException
Parameter
String name
Return value
java.util.Vector
The value or values contained in the item. The data type of the value
depends on the data type of the item.
Notes item type Value return type
Rich text java.util.Vector with one String element
rendered into plain text
Text (includes Names, Authors, and java.util.Vector with String elements
Readers item types) or text list
Number or number list java.util.Vector with Double elements
Date-time or range of java.util.Vector with DateTime elements
date-time values
Usage
If multiple items have the same name, this method returns the value of the
first item. Use the Items property to get all the items.
If the item has no value, this method returns an empty vector.
System.out.println(doc.getItemValueInteger("integer"));
// Get numeric item with one decimal value
System.out.println(doc.getItemValueDouble("double"));
// Get text item with multiple values
Vector sM = doc.getItemValue("stringMultiple");
for (int i=0; i<sM.size(); i++)
System.out.println((i+1) + ": " + sM.elementAt(i));
// Get numeric item with multiple integer values
// - must convert from double
Vector iM = doc.getItemValue("integerMultiple");
Double d;
for (int i=0; i<iM.size(); i++) {
d = (Double)iM.elementAt(i);
System.out.println((i+1) + ": " + d.intValue()); }
// Get date-time item
Vector dM = doc.getItemValue("dateTime");
if (dM.size() > 0) {
DateTime dt = (DateTime)dM.elementAt(0);
System.out.println(dt.getLocalTime()); }
doc = dc.getNextDocument(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getItemValueDouble method
Returns the value of an item with a single numeric value.
Defined in
Document
Syntax
public double getItemValueDouble(String name)
throws NotesException
Parameter
String name
Return value
double
Usage
If multiple items have the same name, this method returns the value of the
first item. Use the Items property to get all the items.
If the item has no value or the value is text, date-time, or empty, this
method returns 0.0.
If the item has multiple values, this method returns the first value.
getItemValueInteger method
Returns the value of an item with a single numeric value.
Defined in
Document
Syntax
public int getItemValueInteger(String name)
throws NotesException
Parameter
String name
Return value
int
Usage
If multiple items have the same name, this method returns the value of the
first item. Use the Items property to get all the items.
If the item has no value or the value is text, date-time, or empty, this
method returns 0.
If the item has multiple values, this method returns the first value.
getItemValueString method
Returns the value of an item with a single text value.
Defined in
Document
Syntax
public String getItemValueString(String name)
throws NotesException
Parameter
String name
Return value
String
Usage
If multiple items have the same name, this method returns the value of the
first item. Use the Items property to get all the items.
If the item has no value or the value is numeric or date-time, this method
returns an empty string.
This method returns a rich text item rendered to plain text. Formatting and
embedded objects are lost.
If the item has multiple values, this method returns the first value.
hasItem method
Indicates if an item exists in the document.
Defined in
Document
Syntax
public boolean hasItem(String name)
throws NotesException
Parameter
String name
The name of an item.
Return value
True if an item with name exists in the document.
False if no item with name exists in the document.
makeResponse method
Makes one document a response to another. The two documents must be in
the same database.
Defined in
Document
Syntax
public void makeResponse(Document doc)
throws NotesException
Parameter
Document doc
Usage
You must call save after this method if you want to save the change you
have made.
putInFolder method
Adds a document to a folder. If the folder does not exist, it is created.
Defined in
Document
Syntax
public void putInFolder(String name)
throws NotesException
public void putInFolder(String name, boolean createonfail)
throws NotesException
Parameter
String name
The name of the folder in which to place the document. The folder may
be personal if the program is running on a workstation. If the folder is
within another folder, specify a path to it, separating folder names with
backslashes, for example:
"Vehicles\\Bikes"
boolean createonfail
If true (default), creates the folder if it does not exist.
Usage
If the document is already inside the folder you specify, putInFolder does
nothing. If you specify a path to a folder, and none of the folders exists, the
method creates all of them for you. For example:
doc.putInFolder( "Vehicles\\Bikes" );
If neither Vehicles nor Bikes exists, putInFolder creates both, placing the
Bikes folder inside the Vehicles folder.
This method cannot add the first document to a folder that is “Shared,
Personal on first use.”
} catch(Exception e) {
e.printStackTrace();
}
}
}
remove method
Permanently removes a document from a database.
Defined in
Document
Syntax
public boolean remove(boolean force)
throws NotesException
Parameter
boolean force
Return value
True if the document is successfully removed.
False if the document is not deleted because another user modified it
and the force parameter is set to false.
doc = view.getFirstDocument(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
removeFromFolder method
Removes a document from a folder.
Defined in
Document
Syntax
public void removeFromFolder(String name)
throws NotesException
Parameter
String name
The name of the folder from which to remove the document. The folder
may be personal if the program is running on a workstation. If the
folder is within another folder, specify a path to it, separating folder
names with backslashes, for example:
"Vehicles\\Bikes"
Usage
The method does nothing if the document is not in the folder you specify, or
if the folder you specify does not exist.
if (category != null) {
doc.removeFromFolder(category, true); }
doc.save();
doc = dc.getNextDocument(doc); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
removeItem method
Removes an item from a document.
Defined in
Document
Syntax
public void removeItem(String name)
throws NotesException
Parameter
String name
The name of the item to remove from the document. If more than one
item has name, all items with this name are removed. If there is no item
with name, the method does nothing.
Usage
You can achieve the same result with remove in Item.
To keep the changes to the document, you must call save after removing
the item.
renderToRTItem method
Creates a picture of a document and places it into a rich text item
you specify.
Defined in
Document
Syntax
public boolean renderToRTItem(RichTextItem rtitem)
throws NotesException
Parameter
RichTextItem rtitem
Return value
boolean
Usage
The picture is created using both the document and its form. Therefore, the
form’s input translation and validation formulas are executed.
replaceItemValue method
Replaces all items of the specified name with one new item, which is
assigned the specified value. If the document does not contain an item with
the specified name, this method creates a new item and adds it to the
document.
Defined in
Document
Syntax
public Item replaceItemValue(String name, Object value)
throws NotesException
Parameters
String name
The value of the new item. The data type of the item depends upon the
data type of value, and does not need to match the data type of the old
item.
Data type of value Resulting Item
String Text
Integer Number
Double Number
DateTime Date-time item
java.util.Vector with String, Integer, Multi-value text, number, or
Double, or DateTime elements date-time item
Item Same data type as the Item
Return value
Item
The new item, which replaces all previous items with the same name.
Usage
To keep the changes, you must call save after calling replaceItemValue.
save method
Saves any changes you have made to a document.
Defined in
Document
Syntax
public boolean save()
throws NotesException
public boolean save(boolean force)
throws NotesException
public boolean save(boolean force, boolean makeresponse)
throws NotesException
public boolean save(boolean force, boolean makeresponse,
boolean markread)
throws NotesException
Parameters
boolean force
If true, the document is saved even if someone else edits and saves the
document while the program is running. The last version of the
document that was saved wins; the earlier version is discarded.
If false, and someone else edits the document while the program is
running, the makeresponse argument determines what happens.
boolean makeresponse
Return Value
True if the document is successfully saved.
False if the document is not saved.
send method
Mails a document to the recipients you specify.
Defined in
Document
Syntax
public void send(String recipient)
throws NotesException
public void send(java.util.Vector recipients)
throws NotesException
public void send(boolean attachform, String recipient)
throws NotesException
public void send(boolean attachform, java.util.Vector
recipients)
throws NotesException
Parameters
String recipient
If true, the form is stored and sent along with the document. If false,
it isn’t.
Usage
Two kinds of items can affect the mailing of the document when you
use send:
If the document contains additional recipient items, such as CopyTo or
BlindCopyTo, the documents mailed to those recipients.
If the document contains items to control the routing of mail, such as
DeliveryPriority, DeliveryReport, or ReturnReceipt, they are used when
sending the document.
The SaveMessageOnSend property controls whether the sent document is
saved in the database. If SaveMessageOnSend is true and you attach the
form to the document, the form is saved with the document.
Sending the form increases the size of the document, but insures that the
recipient can see all of the items on the document.
The send method automatically creates an item called $AssistMail on the
sent document. The SentByAgent property uses this item to determine if a
document was mailed by an agent.
If a program runs on a workstation, the mailed document contains the
current user’s name in the From item. If a program runs as an agent on a
server, the mailed document contains the server’s name in the From item.
sign method
Signs a document.
Defined in
Document
Syntax
public void sign()
throws NotesException
Usage
If you want the signature to be saved, you must call the Save method after
signing the document.
If the program is running on a server, this method has no effect.
DocumentCollection class
Represents a collection of documents from a database, selected according to
specific criteria.
Syntax
public class DocumentCollection extends NotesBase
Containment
Contained by: AgentContext, Database, View
Contains: Document
Properties
Count through getCount
IsSorted through isSorted
Parent through getParent
Query through getQuery
Methods
addDocument
deleteDocument
FTSearch
getDocument
getFirstDocument
getLastDocument
getNextDocument
getNthDocument
getPrevDocument
putAllInFolder
removeAll
removeAllFromFolder
stampAll
updateAll
Access
A DocumentCollection represents a subset of all the documents in a
database. The documents in the subset are determined by the method or
property you use to search the database, which can be any of the following:
getAllDocuments in Database
FTSearch in Database
search in Database
getProfileDocCollection in Database
getAllDocumentsByKey in View
getUnprocessedDocuments in AgentContext
unprocessedFTSearch in AgentContext
unprocessedSearch in AgentContext
getResponses property in Document
Usage
DocumentCollection, ViewEntryCollection, and ViewNavigator objects
provide access to documents in a database. Use a DocumentCollection
object if:
You want to act on a specific set of documents that meet certain criteria.
There is no view in the database that contains every document you
need to search.
You do not need to navigate the documents’ response hierarchies.
Views are a more efficient means of accessing documents because they are
already indexed by the database itself. However, they do not necessarily
provide access to the documents that you want. ViewEntryCollection and
ViewNavigator provide access to view entries, which contain ViewEntry as
well as Document information. ViewNavigator provides access to
categories and totals as well as documents.
Sorted collections
The documents in a collection are not sorted unless the collection results
from a search. By contrast, documents accessed through
ViewEntryCollection and ViewNavigator are in view order.
Current pointer
A current pointer is maintained for document collections. All navigation
methods set the current pointer to the retrieved document with the
following exceptions. Add and delete methods do not move the current
pointer. The following methods set the current pointer to the first
document: FTSearch, removeAll (remote IIOP only), putAllInFolder,
removeAllFromFolder, and stampAll.
Deletion stubs
A deletion stub is returned for a document deleted after creation of the
collection or for a document to which you do not have read access. Use
isValid in Document to check whether a document is real (true) or a
deletion stub (false).
Count property
Read-only. The number of documents in a collection.
Defined in
DocumentCollection
Data type
int
Syntax
public int getCount()
throws NotesException
IsSorted property
Read-only. Indicates if the documents in a collection are sorted. A collection
is sorted only when it results from a full-text search.
Defined in
DocumentCollection
Data type
boolean
Syntax
public boolean isSorted()
throws NotesException
Legal values
true if the collection is sorted
false if the collection is not sorted
Usage
When a collection is sorted, the documents are sorted by relevance score
with the most relevant document appearing first. A relevance score is a
number assigned to each document that matches a particular full-text
search query. The number is related to the number of matches that were
found in the document.
} catch(Exception e) {
e.printStackTrace();
}
}
}
Parent property
Read-only. The database that contains a document collection.
Defined in
DocumentCollection
Data type
Database
Syntax
public Database getParent()
throws NotesException
Usage
This method throws an exception if the parent database is not accessible.
Query property
Read-only. The text of the query that produced a document collection if the
collection results from a full-text or other search.
Defined in
DocumentCollection
Data type
String
Syntax
public String getQuery()
throws NotesException
Usage
For collections produced without a search, this property returns an
empty string.
addDocument method
Adds a document to a collection.
Defined in
DocumentCollection
Syntax
public void addDocument(Document doc)
throws NotesException
public void addDocument(Document doc, boolean checkDups)
throws NotesException
Parameters
Document doc
Usage
This method throws an exception if:
The document is a duplicate of one already in the collection.
The document collection is the result of a multi-database full-text
search.
deleteDocument method
Deletes a document from a collection.
Defined in
DocumentCollection
Syntax
public void deleteDocument(Document doc)
throws NotesException
Parameters
Document doc
Usage
This method throws an exception if:
The document is already deleted.
The document cannot be retrieved from this collection.
The document collection is the result of a multi-database full-text
search.
FTSearch method
Conducts a full-text search of all the documents in a database collection,
and reduces the collection to a sorted collection of those documents that
match.
Defined in
DocumentCollection
Syntax
public void FTSearch(String query)
throws NotesException
public void FTSearch(String query, int maxdocs)
throws NotesException
Parameters
String query
Usage
This method moves the current pointer to the first document in the
collection.
The collection of documents that match the full-text query are sorted by
relevance with highest relevance first. You can access the relevance score of
each document in the collection using getFTSearchScore Document.
If the database is not full-text indexed, this method works, but less
efficiently. To test for an index, use isFTIndexed. To create an index on a
local database, use updateFTIndex.
This method searches all documents in a document collection. To search all
documents in a database, use FTSearch in Database. To search only
documents found in a particular view, use FTSearch in View or FTSearch in
ViewEntryCollection.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see “To use operators to refine a search” in Notes 5 help.
getDocument method
Gets a specified document in a collection.
Defined in
DocumentCollection
Syntax
public Document getDocument(Document doc)
throws NotesException
Parameters
Document doc
Return value
Document
Usage
This method gets a document in a document collection that is the same as a
reference document that does not necessarily come from the collection (for
example, a document retrieved from another collection). If the reference
document is not in the collection, you get a null return.
This method throws an exception if the document collection is the result of
a multi-database full-text search.
getFirstDocument method
Gets the first document in a collection.
Defined in
DocumentCollection
Syntax
public Document getFirstDocument()
throws NotesException
Return value
Document
getLastDocument method
Gets the last document in a collection.
Defined in
DocumentCollection
Syntax
public Document getLastDocument()
throws NotesException
Return value
Document
getNextDocument method
Gets the document immediately following the current document or a
specified document in a collection.
Defined in
DocumentCollection
Syntax
public Document getNextDocument()
throws NotesException
public Document getNextDocument(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
Usage
In remote (IIOP) operations, getNextDocument(Document doc) invalidates
the cache and is therefore discouraged.
The preferred loop structure is getFirstDocument() followed by
getNextDocument() until it returns null. For performance reasons, you
should avoid using getNthDocument(int n) and
getNextDocument(Document doc) in a loop.
getNthDocument method
Given a position number, returns the document at that position in a
collection.
Defined in
DocumentCollection
Syntax
public Document getNthDocument(int n)
throws NotesException
Parameter
int n
Return value
Document
Usage
Collections are renumbered when deletions occur so that the positions of
documents after the deleted document change.
Using getNthDocument in conjunction with getCount to iterate through a
loop is strongly discouraged for performance reasons. See
getNextDocument and getPrevDocument for the preferred loop structures.
} catch(Exception e) {
e.printStackTrace();
}
}
}
getPrevDocument method
Gets the document immediately preceding the current document or a
specified document in a collection.
Defined in
DocumentCollection
Syntax
public Document getPrevDocument()
throws NotesException
public Document getPrevDocument(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
Usage
In remote (IIOP) operations, getPrevDocument(Document doc) invalidates
the cache and is therefore discouraged.
The preferred loop structure is getLastDocument() followed by
getPrevDocument() until it returns null. For performance reasons, you
should avoid using getNthDocument(int n) and
getPrevDocument(Document doc) in a loop.
2. This agent gets the next to the last document in a document collection
by using the last document as a parameter to getPrevDocument.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
if (dc.getCount() > 1) {
Document doc =
dc.getPrevDocument(dc.getLastDocument());
System.out.println("Doc # n-1: " +
doc.getItemValueString("Subject")); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
putAllInFolder method
Adds all the documents in the collection to the specified folder. If the folder
does not exist in the document’s database, it is created.
Defined in
DocumentCollection
Syntax
public void putAllInFolder(String folderName)
throws NotesException
public void putAllInFolder(String folderName, boolean
createonfail)
throws NotesException
Parameter
String folderName
The name of the folder in which to place the documents. The folder may
be personal if the script is running on the workstation. If the folder is
within another folder, specify a path to it, separating folder names with
backward slashes, for example, “Vehicles\\Bikes”.
boolean createonfail
If true (default), creates the folder if it does not exist. If false, throws an
exception if the folder does not exist.
Usage
For remote (IIOP) operations only, this method moves the current pointer to
the first document in the collection.
If a document is already inside the folder you specify, putAllInFolder does
nothing for that document.
removeAll method
Permanently removes the documents in a collection from a database.
Defined in
DocumentCollection
Syntax
public void removeAll(boolean force)
throws NotesException
Parameters
boolean force
Usage
This method moves the current pointer to the first document in the
collection.
All documents removed from the database as a result of this operation are
also removed from the collection.
removeAllFromFolder method
Removes all documents in the collection from the specified folder.
Defined in
DocumentCollection
Syntax
public void removeAllFromFolder(String foldername)
throws NotesException
Parameters
String foldername
The name of the folder from which to remove the document. The folder
may be personal if the script is running on a workstation. If the folder is
within another folder, specify a path to it, separating folder names with
backward slashes, for example, “Vehicles\\Bikes”.
Usage
This method moves the current pointer to the first document in the
collection.
The method does nothing for documents not in the folder you specify. This
method does nothing if the folder you specify does not exist.
stampAll method
Replaces the value of a specified item in all documents in a collection.
Defined in
DocumentCollection
Syntax
public void stampAll(String itemname, Object value)
throws NotesException
Parameters
String itemname
Usage
This method moves the current pointer to the first document in the
collection.
If the item does not exist, it is created.
The item values are immediately written to the server documents. You do
not have to use the save method of Document after stampAll. However, any
documents modified by your script must be saved before calling stampAll.
This method does not modify existing Document objects. Documents must
be retrieved again to see the changes.
System.out.println(dc.getCount() +
" \"red\" documents being stamped ...");
dc.stampAll("Color", "red"); }
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}
updateAll method
Marks all documents in a collection as processed by an agent.
Note Does not apply to remote calls.
Defined in
DocumentCollection
Syntax
public void updateAll()
throws NotesException
Usage
See updateProcessedDoc in AgentContext for a description of the update
process.
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}
EmbeddedObject class
Represents any one of the following:
An embedded object
An object link
A file attachment
Note EmbeddedObject is not supported under OS/2, under UNIX, and on
the Macintosh.
Syntax
public class EmbeddedObject extends Base
Containment
Contained by: Document and RichTextItem
Properties
ClassName through getClassName
FileSize through getFileSize
Name through getName
Object through getObject
Parent through getParent
Source through getSource
Type through getType
Verbs through getVerbs
Methods
activate
doVerb
extractFile
remove
Creation
To create a new object, object link, or file attachment, use embedObject in
RichTextItem.
Access
To access an existing object, object link, or file attachment:
To access an object, object link, or attachment when you know its name
and the rich text item that contains it, use getEmbeddedObject in
RichTextItem.
To access all the objects, object links, and attachments in a particular
rich text item, use getEmbeddedObjects in RichTextItem.
To access the objects and object links in a particular document,
including those that are not contained within a particular rich text item,
use getEmbeddedObjects in Document. This property does not return
file attachments or objects and object links created in Notes Release 3.
case EmbeddedObject.EMBED_OBJECT :
type = "embedded object"; break;
case EmbeddedObject.EMBED_OBJECTLINK :
type = "object link";
}
System.out.println("\t\tType: " + type);
if (type.equals("embedded object"))
System.out.println("\t\tVerbs: " + eo.getVerbs());
System.out.println("\t\tSource: " + eo.getSource());
if (!type.equals("file attachment"))
System.out.println("\t\tClass name: " +
eo.getClassName());
if (type.equals("file attachment"))
System.out.println("\t\tSize: " + eo.getFileSize()
+
" bytes");
System.out.println("\t\tParent doc: " +
eo.getParent().getParent().getItemValueString(
"Subject"));
}
doc = dc.getNextDocument();
}
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}
ClassName property
Read-only. The name of the application that created an object.
Defined in
EmbeddedObject
Data type
String
Syntax
public String getClassName()
throws NotesException
Usage
For file attachments, this property returns null.
FileSize property
Read-only. The size of a file attachment, in bytes.
Defined in
EmbeddedObject
Data type
int
Syntax
public int getFileSize()
throws NotesException
Usage
Returns 0 for embedded objects and links.
Name property
Read-only. The name used to reference an object, object link, or file
attachment.
Defined in
EmbeddedObject
Data type
Object of type java.lang.String
Syntax
public String getName()
throws NotesException
Usage
If an object or object link does not have a name, this property returns null.
If an object or object link was created using the embedObject in
RichTextItem, this property returns the name parameter that was used with
getEmbedObject.
If the embedded object or object link was created using the user interface,
this property returns the name of the object as it appears in the user
interface.
Object property
Read-only. If an embedded object has been loaded into memory, returns the
OLE handle (IUnknown or IDispatch handle). If the OLE object supports
OLE Automation, you can invoke the methods and properties of the object
using the handle.
Defined in
EmbeddedObject
Data type
int
Syntax
public int getObject()
throws NotesException
Usage
This property may or may not return a valid OLE handle for object links,
depending upon the application used to create the object link.
Parent property
Read-only. The rich text item that holds an object.
Defined in
EmbeddedObject
Data type
RichTextItem
Syntax
public RichTextItem getParent()
throws NotesException
Source property
Read-only.
For an object or object link, returns the internal name for the source
document. For a file attachment, returns the file name of the original file.
Defined in
EmbeddedObject
Data type
Object of type java.lang.String
Syntax
public String getSource()
throws NotesException
Type property
Read-only. Indicates whether an embedded object is an object, an object
link, or a file attachment.
Defined in
EmbeddedObject
Data type
int
Syntax
public int getType()
throws NotesException
Return Values
EmbeddedObject.EMBED_ATTACHMENT
EmbeddedObject.EMBED_OBJECT
EmbeddedObject.EMBED_OBJECTLINK
Verbs property
Read-only. The verbs that an object supports, if the object is an OLE/2
embedded object.
Defined in
EmbeddedObject
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getVerbs()
throws NotesException
Usage
Throws an exception if not invoked from an OLE/2 embedded object.
activate method
Causes an embedded object or object link to be loaded by OLE.
Defined in
EmbeddedObject
Syntax
public int activate(boolean show)
throws NotesException
Parameter
boolean show
If true, the OLE server application displays its user interface. If false,
the server application hides its user interface.
Return value
int
The OLE handle to the object. Returns null if the embedded object or
object link does not support OLE automation.
Usage
Agents running on a server must set the show parameter to false.
This method throws an exception if you invoke it on a EmbeddedObject
that is a file attachment.
This method may or may not return a valid OLE handle for object links,
depending upon the application used to create the object link.
doVerb method
Executes a verb in an embedded object.
Defined in
EmbeddedObject
Syntax
public void doVerb(String verb)
throws NotesException
Parameter
String verb
extractFile method
Writes a file attachment to storage.
Defined in
EmbeddedObject
Syntax
public void extractFile(String path)
throws NotesException
Parameter
String path
The path and file name where you want to store the extracted file.
Usage
For embedded objects and object links, this method throws an exception.
saveFlag = true;
}
}
if (saveFlag) {
doc.save(true, true);
saveFlag = false;
}
doc = dc.getNextDocument();
}
} catch(NotesException e) {
System.out.println(e.id + " " + e.text);
e.printStackTrace();
}
}
}
remove method
Removes an object, object link, or file attachment.
Defined in
EmbeddedObject
Syntax
public void remove()
throws NotesException
Usage
After calling remove, you must call save in Document to keep the change.
Form class
Represents a form in a database.
Syntax
public class Form extends Base
Containment
Contained by: Database
Properties
Aliases through getAliases
Fields through getFields
FormUsers through getFormUsers and setFormUsers
Methods
remove
Access
There are two ways to access a form:
To get all the forms in a database, use Forms in Database.
To get a form by its name, use getForm in Database.
You can’t get access to private forms belonging to other people.
System.out.println
("\tProtect Users\t: " + form.isProtectUsers());
System.out.println
("\tSub Form \t: " + form.isSubForm());
Vector users = form.getFormUsers();
if (users.size() != 0) {
System.out.println
("\tForm users\t: " + users.elementAt(0));
for (int j = 1; j < users.size();j++)
System.out.println
("\t \" \" \t: " + users.elementAt(j)); }
Vector readers = form.getReaders();
if (readers.size() != 0) {
System.out.println
("\tForm Readers\t: " + readers.elementAt(0));
for (int j = 1; j < readers.size(); j++)
System.out.println
("\t \" \" \t: " + readers.elementAt(j)); }
Vector fields = form.getFields();
if (fields.size() != 0) {
System.out.println
("\tFields \t: " + fields.elementAt(0));
for (int j = 1; j < fields.size(); j++)
System.out.println
("\t \"\" \t: " + fields.elementAt(j)); } }
} catch(Exception e) {
e.printStackTrace();
}
}
}
Aliases property
Read-only. The aliases of a form.
Defined in
Form
Data type
Vector; elements are String
Syntax
public java.util.Vector getAliases()
throws NotesException
Usage
This property returns all but the first in the list of all the form’s names. The
Name property returns the first name in the list.
Fields property
Read-only. The names of all the fields of a form.
Defined in
Form
Data type
Vector; elements are String
Syntax
public java.util.Vector getFields()
throws NotesException
FormUsers property
Read-write. The contents of the $FormUsers field.
Defined in
Form
Data type
Vector; elements are String
Syntax
public java.util.Vector getFormUsers()
throws NotesException
public void setFormUsers(java.util.Vector users)
throws NotesException
IsProtectReaders property
Read-write. Protects $Readers items from being overwritten by replication.
Defined in
Form
Data type
boolean
Syntax
public boolean isProtectReaders()
throws NotesException
public void setProtectReaders(boolean flag)
throws NotesException
Legal values
true to protect $Readers
false to not protect $Readers
IsProtectUsers property
Read-write. Protects $FormUsers items from being overwritten by
replication.
Defined in
Form
Data type
boolean
Syntax
public boolean isProtectUsers()
throws NotesException
public void setProtectUsers(boolean flag)
throws NotesException
Legal values
true to protect $FormUsers
false to not protect $FormUsers
IsSubForm property
Read-only. Indicates if a form is a subform.
Defined in
Form
Data type
boolean
Syntax
public boolean isSubForm()
throws NotesException
Legal values
true if the form is a subform
false if the form is not a subform
Name property
Read-only. The name of a form.
Defined in
Form
Data type
String
Syntax
public String getName()
throws NotesException
Usage
This property returns the first name associated with a form. Use the Aliases
property to return any additional names.
Parent property
Read-write. The database that contains a form.
Defined in
Form
Data type
Database
Syntax
public Database getParent()
throws NotesException
Readers property
Read-write. The contents of the $Readers field.
Defined in
Form
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getReaders()
throws NotesException
public void setReaders(java.util.Vector readers)
throws NotesException
remove method
Permanently deletes a form from a database.
Defined in
Form
Syntax
public void remove()
throws NotesException
International class
Represents the international settings in the operating environment, for
example, the Regional Settings in the Windows Control Panel. When
settings change in the operating environment, Notes recognizes the new
settings immediately. For remote (IIOP) operations, these settings represent
the session’s server.
Syntax
public class International extends Base
Containment
Contained by: Session
Properties
AMString through getAMString
CurrencyDigits through getCurrencyDigits
CurrencySymbol through getCurrencySymbol
DateSep through getDateSep
DecimalSep through getDecimalSep
IsCurrencySpace through isCurrencySpace
IsCurrencySuffix through isCurrencySuffix
IsCurrencyZero through isCurrencyZero
IsDateDMY through isDateDMY
IsDateMDY through isDateMDY
IsDateYMD through isDateYMD
IsDST through isDST
IsTime24Hour through isTime24Hour
Parent through getParent
PMString through getPMString
ThousandsSep through getThousandsSep
TimeSep through getTimeSep
Access
Access an International object for the current session through
getInternational in Session.
AMString property
Read-only. The string that denotes AM time, for example, “AM” in English.
Defined in
International
Data type
String
Syntax
public String getAMString()
throws NotesException
else
System.out.println(
"Time does not reflect daylight-saving");
} catch(Exception e) {
e.printStackTrace();
}
}
}
CurrencyDigits property
Read-only. Indicates the number of decimal digits for number format.
Defined in
International
Data type
int
Syntax
public int getCurrencyDigits()
throws NotesException
CurrencySymbol property
Read-only. The symbol that indicates a number is currency, for example,
the dollar sign.
Defined in
International
Data type
Object of type java.lang.String
Syntax
public String getCurrencySymbol()
throws NotesException
DateSep property
Read-only. The character used to separate months, days, and years, for
example, the slash.
Defined in
International
Data type
String
Syntax
public String getDateSep()
throws NotesException
DecimalSep property
Read-only. The decimal separator for number format, for example, the
decimal point.
Defined in
International
Data type
String
Syntax
public String getDecimalSep()
throws NotesException
IsCurrencySpace property
Read-only. Indicates if the currency format has a space between the
currency symbol and the number.
Defined in
International
Data type
boolean
Syntax
public boolean isCurrencySpace()
throws NotesException
Legal values
true if the currency format has a space between the currency symbol
and the number
false if the currency format does not have a space between the currency
symbol and the number
Usage
Under UNIX, this property is derived from the language installed on the
machine as indicated by the LANG environment variable.
IsCurrencySuffix property
Read-only. Indicates if the currency symbol follows the number in the
currency format.
Defined in
International
Data type
boolean
Syntax
public boolean isCurrencySuffix()
throws NotesException
Legal values
true if the currency symbol follows the number
false if the currency symbol precedes the number
IsCurrencyZero property
Read-only. Indicates if fractions have a zero before the decimal point in
number format.
Defined in
International
Data type
boolean
Syntax
public boolean isCurrencyZero()
throws NotesException
Legal values
true if fractions have a zero before the decimal point
false if fractions do not have a zero before the decimal point
Usage
Under UNIX, this property is meaningless.
IsDateDMY property
Read-only. Indicates if the order of the date format is day-month-year.
Defined in
International
Data type
boolean
Syntax
public boolean isDateDMY()
throws NotesException
Legal values
true if the order of the date format is day-month-year
false if the order of the date format is not day-month-year
IsDateMDY property
Read-only. Indicates if the order of the date format is month-day-year.
Defined in
International
Data type
boolean
Syntax
public boolean isDateMDY()
throws NotesException
Legal values
true if the order of the date format is month-day-year
false if the order of the date format is not month-day-year
IsDateYMD property
Read-only. Indicates if the order of the date format is year-month-day.
Defined in
International
Data type
boolean
Syntax
public boolean isDateYMD()
throws NotesException
Legal values
true if the order of the date format is year-month-day
false if the order of the date format is not year-month-day
IsDST property
Read-only. Indicates if the time format reflects daylight savings time.
Defined in
International
Data type
boolean
Syntax
public boolean isDST()
throws NotesException
Legal values
true if the time format reflects daylight savings time
false if the time format does not reflect daylight savings time
IsTime24Hour property
Read-only. Indicates if the time format is 24-hour.
Defined in
International
Data type
boolean
Syntax
public boolean isTime24Hour()
throws NotesException
Legal values
true if the time format is 24-hour
false if the time format is 12-hour
Parent property
Read-only. The Notes session that contains an International object.
Defined in
International
Data type
Session
Syntax
public Session getParent()
throws NotesException
PMString property
Read-only. The string that denotes PM time, for example, “PM” in English.
Defined in
International
Data type
String
Syntax
public String getPMString()
throws NotesException
ThousandsSep property
Read-only. The thousands separator in number format, for example, the
comma.
Defined in
International
Data type
String
Syntax
public String getThousandsSep()
throws NotesException
TimeSep property
Read-only. The character used to separate hours, minutes, and seconds, for
example, the colon.
Defined in
International
Data type
String
Syntax
public String getTimeSep()
throws NotesException
TimeZone property
Read-only. An integer representing the time zone. In many cases, but not
all, this integer indicates the number of hours that must be added to the
time to get Greenwich Mean Time. May be positive or negative.
Defined in
International
Data type
int
Syntax
public int getTimeZone()
throws NotesException
Today property
Read-only. The string that means today in a time-date specification, for
example, “Today” in English.
Defined in
International
Data type
String
Syntax
public String getToday()
throws NotesException
Tomorrow property
Read-only. The string that means tomorrow in a time-date specification, for
example, “Tomorrow” in English.
Defined in
International
Data type
String
Syntax
public String getTomorrow()
throws NotesException
Yesterday property
Read-only. The string that means yesterday in a time-date specification, for
example, “Yesterday” in English.
Defined in
International
Data type
String
Syntax
public String getYesterday()
throws NotesException
Item class
Represents a discrete value or set of values in a document.
The client interface displays items in a document through fields on a form.
When a field on a form and an item in a document have the same name,
the field displays the item (for example, the Subject field displays the
Subject item).
All items in a document are accessible programmatically, regardless of
what form is used to display the document in the user interface.
Syntax
public class Item extends Base
Derived Classes
RichTextItem inherits from Item class.
Containment
Contained by: Document
Contains: DateTime
Properties
DateTimeValue through getDateTimeValue and setDateTimeValue
IsAuthors through isAuthors and setAuthors
IsEncrypted through isEncrypted and setEncrypted
IsNames through isNames and setNames
IsProtected through isProtected and setProtected
Methods
abstractText
appendToTextList
containsValue
copyItemToDocument
remove
Creation
To create a new Item object:
To create a new Item object from scratch, use replaceItemValue in
Document. The method appendItemValue also creates an item, but
creates another item of the same name if the specified item exists. Use
replaceItemValue unless your intent is to create another item with the
same name (not recommended).
To create a new Item object from one that already exists, use
copyItemToDocument, copyItem, or replaceItemValue in Document.
You must call save on the document if you want the modified document to
be saved to disk. The document won’t display the new item in the user
interface unless there is a field of the same name on the form used to
display the document.
Explicitly call setSummary and specify true if you want the value to be
displayed in a view or folder.
Access
To access an existing Item object:
To access an item when you know its name, use getFirstItem in
Document.
To access all the items in a document, use getItems in Document.
Document has methods to access items without creating an Item object. You
need to know is the name of the item.
To get an item’s value, use getItemValue.
To create a new item or set an item’s value, use replaceItemValue.
To check for the existence of a particular item in a document, use
hasItem.
To delete an item from a document, use removeItem.
Rich-text items
RichTextItem inherits the properties and methods of Item and has
additional properties and methods you can use to manipulate rich-text.
Saving Changes
After you create or modify an item, you must save the changes by calling
the parent document’s save method.
If you don’t call save before the program finishes, all of your changes to an
Item object are lost.
DateTimeValue property
Read-write. For a date-time item, returns a DateTime object representing
the value of the item. For items of other types, returns null.
Defined in
Item
Data type
DateTime
Syntax
public DateTime getDateTimeValue()
throws NotesException
public void setDateTimeValue(DateTime value)
throws NotesException
Usage
Can be set to null.
IsAuthors property
Read-write. Indicates whether an item is of type Authors.
Defined in
Item
Data type
boolean
Syntax
public boolean isAuthors()
throws NotesException
public void setAuthors(boolean flag)
throws NotesException
Legal values
true if the item is of type Authors
false if the item is not of type Authors
Usage
An Authors item contains a text list of user names indicating people who
have Author access to a particular document. An Authors item returns
Item.TEXT for getType.
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsEncrypted property
Read-write. Indicates whether an item is encrypted.
Defined in
Item
Data type
boolean
Syntax
public boolean isEncrypted()
throws NotesException
public void setEncrypted(boolean flag)
throws NotesException
Legal values
true if the item is encrypted
false if the item is not encrypted
Usage
If you set this property to true, the item is not actually encrypted until you
call encrypt on the parent Document.
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
if (doc != null) {
Enumeration items = doc.getItems().elements();
while (items.hasMoreElements()) {
Item item = (Item)items.nextElement();
System.out.println(item.getName());
if (item.isEncrypted())
System.out.print(" encrypted");
else
System.out.print(" not encrypted");
if (item.isProtected())
System.out.print(" * protected");
else
System.out.print(" * not protected");
if (item.isSaveToDisk())
System.out.print("* saved to disk");
else
System.out.print(" * not saved to disk");
if (item.isSigned())
System.out.print(" * signed");
else
System.out.print(" * not signed");
if (item.isSummary())
System.out.println(" * summarized");
else
System.out.println(" * not summarized");
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This agent sets encryption on for an item and encrypts the document
containing it.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
while (doc != null) {
IsNames property
Read-write. Indicates whether an item is a Names item.
Defined in
Item
Data type
boolean
Syntax
public boolean isNames()
throws NotesException
public setNames(boolean flag)
throws NotesException
Legal values
true if the item is a Names item
false if the item is not a Names item
Usage
A Names item contains a list of user names. A Names item returns
Item.TEXT for getType.
IsProtected property
Read-write. Indicates whether a user needs at least Editor access to modify
an item.
Defined in
Item
Data type
boolean
Syntax
public boolean isProtected()
throws NotesException
public void setProtected(boolean flag)
throws NotesException
Legal values
true if you need at least Editor access to modify the item
false if you do not need Editor access to modify the item; you can
modify it as long as you have Author access or better
IsReaders property
Read-write. Indicates whether an item is of type Readers.
Defined in
Item
Data type
boolean
Syntax
public boolean isReaders()
throws NotesException
public void setReaders(boolean flag)
throws NotesException
Legal values
true if the item is of type Readers
false if the item is not of type Readers
Usage
A Readers item contains a list of user names indicating people who have
Reader access to a document. A Readers item returns Item.TEXT for
getType.
IsSaveToDisk property
Read-write. Indicates whether an item is saved when the document is
saved.
Defined in
Item class
Data type
boolean
Syntax
public boolean isSaveToDisk()
throws NotesException
public void setSaveToDisk(boolean flag)
throws NotesException
Legal values
(default) true if the item is saved when the document is saved
false if the item is not saved when the document is saved
Usage
If you mark an existing item as not to be saved, it disappears from storage
the next time you save the document.
IsSigned property
Read-write. Indicates if an item contains a signature.
Defined in
Item
Data type
boolean
Syntax
public boolean isSigned()
throws NotesException
public void setSigned(boolean flag)
throws NotesException
Legal values
true if the item is signed
false if the item is not signed
IsSummary property
Read-write. Indicates whether an item can appear in a view or folder.
Defined in
Item
Data type
boolean
Syntax
public boolean isSummary()
throws NotesException
public void setSummary(boolean flag)
throws NotesException
Legal values
true if the item is a summary item
false if the item is not a summary item
Usage
Rich text cannot appear in a view. isSummary for a RichTextItem always
returns false.
LastModified property
Read-only. The date that an item was last modified.
Defined in
Item
Data type
DateTime
Syntax
public DateTime getLastModified()
throws NotesException
Name property
Read-only. The name of an item.
Defined in
Item
Data type
String
Syntax
public String getName()
throws NotesException
Usage
A document may have multiple items with the same name.
All file attachments have the name $FILE.
Parent property
Read-only. The document that contains an item.
Defined in
Item
Data type
Document
Syntax
public Document getParent()
throws NotesException
Text property
Read-only. A plain text representation of an item’s value.
Defined in
Item
Data type
String
Syntax
public String getText()
throws NotesException
public String getText(int maxlen)
throws NotesException
Parameters
int maxlen
Usage
Multiple values in a list are separated by semicolons in the returned string.
If an item’s value is large, the returned string may be truncated.
For rich-text items, this property skips non-text data such as bitmaps and
file attachments.
For HTML items, this property returns null.
Type property
Read-only. The data type of an item.
Defined in
Item
Data type
int
Syntax
public int getType()
throws NotesException
Legal values
Item.ATTACHMENT (file attachment)
Item.AUTHORS
Item.DATETIMES (date-time or range of date-time values)
Item.EMBEDDEDOBJECT
Item.ERRORITEM (error occurred while getting type)
Item.FORMULA (Domino formula)
Item.HTML (HTML source text)
Item.ICON
Item.NAMES
Item.NOTELINKS (link to a database, view, or document)
Item.NOTEREFS (reference to the parent document)
Item.NUMBERS (number or number list)
Item.OTHEROBJECT
Item.RICHTEXT
Item.READERS
Item.SIGNATURE
Item.TEXT (text or text list)
Item.UNAVAILABLE
Item.UNKNOWN
Item.USERDATA
Item.USERID
Usage
You can also test for Names, Readers, and Authors items with:
IsNames
IsReaders
IsAuthors
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
if (doc != null) {
Enumeration items = doc.getItems().elements();
while (items.hasMoreElements()) {
Item item = (Item)items.nextElement();
String type;
switch (item.getType()) {
case Item.ACTIONCD : type = "Action CD"; break;
case Item.ASSISTANTINFO : type = "Assistant
information"; break;
case Item.ATTACHMENT : type = "File attachment";
break;
case Item.AUTHORS : type = "Authors"; break;
case Item.COLLATION : type = "Collation"; break;
case Item.DATETIMES :
type = "Date-time or range of date-times";
break;
case Item.EMBEDDEDOBJECT : type = "Embedded
object"; break;
case Item.ERRORITEM : type = "Error while
accessing
type"; break;
case Item.FORMULA : type = "Formula"; break;
case Item.HTML : type = "HTML source text"; break;
case Item.ICON : type = "Icon"; break;
case Item.LSOBJECT : type = "LotusScript object";
break;
case Item.NAMES : type = "Names"; break;
case Item.NOTELINKS :
type = "Link to database, view, or document";
break;
case Item.NOTEREFS :
type = "Reference to the parent document";
break;
case Item.NUMBERS : type = "Number or number
list";
break;
case Item.OTHEROBJECT : type = "Other object";
break;
case Item.QUERYCD : type = "Query CD"; break;
case Item.RICHTEXT : type = "Rich text"; break;
case Item.READERS : type = "Readers"; break;
case Item.SIGNATURE : type = "Signature"; break;
ValueDouble property
Read-write. The value of an item with a single numeric value.
Defined in
Item
Data type
double
Syntax
public double getValueDouble()
throws NotesException
public setValueDouble(double value)
throws NotesException
Usage
If the item has no value or the value is text, date-time, or empty, this
method returns 0.0.
If the item has mutiple values, this method returns the first value.
ValueInteger property
Read-write. The value of an item with a single numeric value.
Defined in
Item
Data type
int
Syntax
public int getValueInteger()
throws NotesException
public setValueInteger(int value)
throws NotesException
Usage
If the item has no value or the value is text, date-time, or empty, this
method returns 0.
If the item has mutiple values, this method returns the first value.
ValueLength property
Read-only. The bytes of internal storage, including overhead, required to
store an item.
Defined in
Item
Data type
int
Syntax
public int getValueLength()
throws NotesException
Values property
Read-write. The value of an item.
Defined in
Item
Data type
java.util.Vector. The data type of the value depends upon the type of
the item.
Item type Valid return type
Rich text java.util.Vector with one String element
rendered into plain text
Text (includes Names, Authors, and java.util.Vector with String elements
Readers item types)
Number or number list java.util.Vector with Double elements
Date-time or range of date-time values java.util.Vector with DateTime elements
Syntax
public java.util.Vector getValues()
throws NotesException
public void setValues(java.util.Vector values)
throws NotesException
Usage
This property returns the same value(s) for an item as getItemValue in
Document.
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
if (doc != null) {
// Text item
Item item = doc.getFirstItem("textItem");
System.out.println(item.getName());
System.out.println(item.getValueString());
// Numeric item
item = doc.getFirstItem("numberItem");
System.out.println("\n" + item.getName());
System.out.println("Integer value: " +
item.getValueInteger());
System.out.println("Double value: " +
item.getValueDouble());
// Date-time item
item = doc.getFirstItem("dateTimeItem");
System.out.println("\n" + item.getName());
System.out.println(
item.getDateTimeValue().getLocalTime());
// Multi-value text item
item = doc.getFirstItem("textListItem");
System.out.println("\n" + item.getName());
Enumeration values = item.getValues().elements();
while (values.hasMoreElements()) {
System.out.println((String)values.nextElement());
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This agent increments a numeric item and adds a value to a
multi-value text item.
import lotus.domino.*;
import java.util.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
if (doc != null) {
// Numeric item
Item item = doc.getFirstItem("numberItem");
System.out.println(item.getName());
System.out.println("Old value: " +
item.getValueInteger());
item.setValueInteger(item.getValueInteger() + 1);
System.out.println("New value: " +
item.getValueInteger());
// Multi-value text item
item = doc.getFirstItem("textListItem");
Vector v = item.getValues();
v.addElement("New value");
item.setValues(v);
System.out.println("\n" + item.getName());
Enumeration values = item.getValues().elements();
while (values.hasMoreElements()) {
System.out.println((String)values.nextElement());
}
doc.save(true, true);
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
ValueString property
Read-write. The value that an item holds.
Defined in
Item
Data type
String
Syntax
public String getValueString()
throws NotesException
public setValueString(String value)
throws NotesException
Usage
If the item has no value or the value is numeric or date-time, this method
returns an empty string.
This method returns a rich-text item rendered to plain text. Formatting and
embedded objects are lost.
If the item has multiple values, this method returns the first value.
abstractText method
Abbreviates the contents of a text item.
Defined in
Item
Syntax
public String abstractText(int maxlen, boolean dropvowels,
boolean userdict)
throws NotesException
Parameters
int maxlen
Specify true if you want to drop vowels from the words in the item.
Otherwise, specify false.
boolean userdict
Return value
String
appendToTextList method
For an item that’s a text list, adds a new value to the item without erasing
any existing values.
Defined in
Item
Syntax
public void appendToTextList(String value)
throws NotesException
public void appendToTextList(java.util.Vector values)
throws NotesException
Parameter
String value
The string(s) you want to add to the item. Each vector element is an
object of type String.
containsValue method
Checks whether a value matches at least one of an item’s values.
Defined in
Item
Syntax
public boolean containsValue(Object value)
throws NotesException
Parameter
Object value
Return Values
true if the value matches one of the values in the item
false if the value matches no value in the item
Usage
This method does not search a text item to see if it contains a specific word. It
is intended to search a text list, number list, or date-time range to see if one
of the values in the list or range matches value.
If value is a distinguished name, and if the item contains Domino user
names, the distinguished name matches the common version of the
hierarchical name.
copyItemToDocument method
Copies an item to a specified document.
Defined in
Item
Syntax
public Item copyItemToDocument(Document doc)
throws NotesException
public Item copyItemToDocument(Document doc, String newname)
throws NotesException
Parameters
Document doc
The name of the new item. Specify an empty string (“”) if you want to
keep the name of the original item.
Return value
Item
Usage
When you call this method using a RichTextItem object, file attachments,
embedded objects, and object links that are contained within the rich-text
item are not copied to the destination document.
remove method
Permanently deletes an item from a document.
Defined in
Item
Syntax
public void remove()
throws NotesException
Usage
After calling remove, you must call save in Document to save the change.
You can achieve the same result with removeItem in Document.
Log class
Enables you to record actions and errors that take place during a program’s
execution. You can record actions and errors in:
A Domino database
A mail memo
A file (for programs that run locally)
An agent log (for agents)
Syntax
public class Log extends Base
Containment
Contained by: Session
Properties
IsLogActions through isLogActions and setLogActions
IsLogErrors through isLogErrors and setLogErrors
IsOverwriteFile through isOverwriteFile and setOverwriteFile
NumActions through getNumActions
NumErrors through getNumErrors
Parent through getParent
ProgramName through getProgramName and setProgramName
Methods
close
logAction
logError
logEvent
openAgentLog
openFileLog
openMailLog
openNotesLog
Creation
To create a new log, use createLog in Session.
Usage
Once you create a log, you use one of the following methods to open it
before you begin logging:
To log to a database, use openNotesLog.
To log to a mail memo, use openMailLog.
To log to a file (only available to programs running locally), use
openFileLog.
To log to an agent log (only available to agents), use openAgentLog.
You must explicitly log each action and error using the following methods:
To log an action, use logAction.
To log an error, use logError.
Domino does not automatically log actions or errors for you.
2. This agent opens a mail log, logs an action for each document in
the current database, and sends the log to the current user when the
log closes.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Log log = session.createLog("Cleansing Agent");
Vector v = new Vector();
v.addElement(session.getUserName());
log.openMailLog(v, "Log for cleansing agent");
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
for (int j=0; j<dc.getCount(); j++) {
log.logAction("Processed document " + (j+1)); }
log.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
3. This example opens a Domino log and logs an error. The database
agentlog.nsf must be based on the StdR4AgentLog template.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Agent agent = agentContext.getCurrentAgent();
Database db = agentContext.getCurrentDatabase();
Log log = session.createLog(
db.getTitle() + " on " + db.getServer());
log.openNotesLog(null, "agentlog.nsf");
View view = db.getView("foo");
if (view==null) {
log.logError(0, "Unable to find view foo"); }
log.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsLogActions property
Read-write. Indicates if action logging is enabled or not.
Defined in
Log
Data type
boolean
Syntax
public boolean isLogActions()
throws NotesException
public void setLogActions(boolean flag)
throws NotesException
Return Values
true (default) enables action logging
false disables action logging
Usage
The logAction method has no effect while the logActions property is false.
IsLogErrors property
Read-write. Indicates if error logging is enabled or not.
Defined in
Log
Data type
boolean
Syntax
public boolean isLogErrors()
throws NotesException
public void setLogErrors(boolean flag)
throws NotesException
Return Values
true (default) enables error logging
false disables error logging
Usage
The logError method has no effect while the IsLogErrors property is false.
IsOverwriteFile property
Read-write. For a log that records to a file, indicates if the log should write
over the existing file or append to it. This property has no effect on logs that
record to a mail message or database.
Defined in
Log
Data type
boolean
Syntax
public boolean isOverwriteFile()
throws NotesException
public void setOverwriteFile(boolean flag)
throws NotesException
Legal values
true writes over the existing log file
false (default) appends to the existing log file
Usage
To write over an existing log file, you must set this property to true before
calling the openFileLog method.
NumActions property
Read-only. The number of actions logged so far.
Defined in
Log
Data type
int
Syntax
public int getNumActions()
throws NotesException
NumErrors property
Read-only. The number of errors logged so far.
Defined in
Log
Data type
int
Syntax
public int getNumErrors()
throws NotesException
Usage
The NumErrors property is not incremented until after logErrors is called.
To get the correct count at the time of a call to logErrors, increment
getNumErrors by 1.
Parent property
Read-only. The Domino session that contains a Log object.
Defined in
Log
Data type
Session
Syntax
public Session getParent()
throws NotesException
ProgramName property
Read-write. The name that identifies the agent whose actions and errors
you’re logging. The name is the same as the name specified with createLog.
Defined in
Log
Data type
Object of type java.lang.String
Syntax
public String getProgramName()
throws NotesException
public void setProgramName(String name)
throws NotesException
close method
Closes a log.
Defined in
Log
Syntax
public void close()
throws NotesException
Usage
If you are logging to a mail message, this method sends the mail message to
its recipient(s).
logAction method
Records an action in a log.
Defined in
Log
Syntax
public void logAction(String action)
throws NotesException
Parameter
String action
Usage
The behavior of this method depends upon the type of log you open.
If you open a Domino database using openNotesLog, this method
creates a new document in the database. The A$ACTION item in the
document contains the description.
If you open a mail memo using openMailLog, this method adds the
description to the Body item of the memo, along with the current date
and time.
If you open a file using openFileLog, this method adds the description
to the next line of the file, along with the log’s ProgramName and the
current date and time.
logError method
Records an error in a log.
Defined in
Log
Syntax
public void logError(int code, String text)
throws NotesException
Parameters
int code
Usage
The behavior of this method depends upon the type of log you open.
If you open a Domino database using openNotesLog, this method
creates a new document in the database. The A$ERRCODE item in the
document contains the code and the A$ERRMSG item contains the
description.
If you open a mail memo using openMailLog, this method adds the
code and the description to the Body item of the memo, along with the
current date and time.
If you open a file using openFileLog, this method adds the code and the
description to the next line of the file, along with the log’s
ProgramName and the current date and time.
logEvent method
Sends a Domino event out to the network. Only scripts running on a server
can use this method.
Defined in
Log
Syntax
public void logEvent(String text, String queue, int event, int
severity)
throws NotesException
Parameters
String text
The name of the queue. Domino picks a queue if you send an empty
string (“”).
int event
Indicates the kind of event being logged. May be any of the following:
Log.EV_ALARM
Log.EV_COMM
Log.EV_MAIL
Log.EV_MISC
Log.EV_REPLICA
Log.EV_RESOURCE
Log.EV_SECURITY
Log.EV_SERVER
Log.EV_UNKNOWN
Log.EV_UPDATE
int severity
Indicates the severity of the event being logged. May be any of the
following:
Log.SEV_FAILURE
Log.SEV_FATAL
Log.SEV_NORMAL
Log.SEV_WARNING1
Log.SEV_WARNING2
Log.SEV_UNKNOWN
Usage
This method does not affect other open logs (database, file, or mail). Using
the logAction or logError method has no effect on event logging.
openAgentLog method
Opens the agent log for the current agent.
Note This method does not work for remote (IIOP) operations.
Defined in
Log
Syntax
public void openAgentLog()
throws NotesException
Usage
This method stores output in the log for the current agent and fails if the
program is not running as an agent. To display an agent log, select the
agent and choose Agent - Log. The log also displays after you run an agent
with Actions - Run.
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Log log = session.createLog("Agent Log");
log.openAgentLog();
log.logAction("Action one");
log.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
openFileLog method
Starts logging to a file. This method returns an error if you call it on a
server.
Defined in
Log
Syntax
public void openFileLog(String filepath)
throws NotesException
Parameter
String filepath
The path and file name of the log file. If the file does not exist, the
method creates it for you. If a directory in the path does not exist, the
method throws an exception.
Usage
To write over an existing log file, you must set the IsOverwriteFile property
to true before calling openFileLog.
openMailLog method
Opens a new mail memo for logging. The memo is mailed when the log’s
close method is called, or when the object is deleted.
Note This method works only in Domino agents.
Defined in
Log
Syntax
public void openMailLog(java.util.Vector recipients, String
subject)
throws NotesException
Parameters
java.util.Vector recipients
Usage
When you call this method, Domino uses the current user’s mail database to
create and send the mail memo. The memo is not saved to the database.
openNotesLog method
Opens a specified Domino database for logging.
Defined in
Log
Syntax
public void openNotesLog(String server, String database)
throws NotesException
Parameters
String server
The server on which the database log resides. Use null or an empty
string (“”) to indicate the current computer: a local database if the agent
runs on a workstation; a database on that server if the agent runs on a
server.
String database
Usage
One document is created in the database for each error or action that you
log. Each document contains the following items:
Item Contents
Form “Log Entry”
A$PROGNAME The ProgramName property
A$LOGTIME The date and time that the error or action is logged
A$USER The user at the time the error or action is logged
continued
Item Contents
A$LOGTYPE “Error” or “Action”
A$ACTION A description of the action (actions only)
A$ERRCODE The error code (errors only)
A$ERRMSG A description of the error (errors only)
Opening a database
An agent that runs on a server cannot open a database on a different
server. An error is returned if you attempt to do so.
An agent that attempts to open a database to which it does not have
access returns an error. You need at least Reader access to a database to
open it.
} catch(Exception e) {
e.printStackTrace();
}
}
}
Name class
Represents a user or server name.
Syntax
public class Name extends Base
Containment
Contained by: AgentContext and Session
Properties
Abbreviated through getAbbreviated
Addr821 through getAddr821
Addr822Comment1 through getAddr822Comment1
Addr822Comment2 through getAddr822Comment2
Addr822Comment3 through getAddr822Comment3
Addr822LocalPart through getAddr822LocalPart
Addr822Phrase through getAddr822Phrase
ADMD through getADMD
Canonical through getCanonical
Common through getCommon
Country through getCountry
Generation through getGeneration
Given through getGiven
Initials through getInitials
IsHierarchical through isHierarchical
Keyword through getKeyword
Language through getLanguage
Organization through getOrganization
Creation
To create a new Name object, use createName in Session.
Usage
The properties of this class can be interrogated to distinguish different
elements of the name.
Use getUserNameList and getUserNameObject in Session to get the
primary and alternate names for the current Domino user. Use
getUserName and getCommonUserName in Session to get the full user
name and common user name in String format.
System.out.println
("Common name = " + n.getCommon());
if (n.getOrganization() != null)
System.out.println
("Organization = " + n.getOrganization());
if (n.getOrgUnit1() != null)
System.out.println
("OrgUnit1 = " + n.getOrgUnit1());
if (n.getOrgUnit2() != null)
System.out.println
("OrgUnit2 = " + n.getOrgUnit2());
if (n.getOrgUnit3() != null)
System.out.println
("OrgUnit3 = " + n.getOrgUnit3());
if (n.getOrgUnit4() != null)
System.out.println
("OrgUnit4 = " + n.getOrgUnit4());
if (n.getGiven() != null)
System.out.println
("Given = " + n.getGiven());
if (n.getSurname() != null)
System.out.println
("Surname = " + n.getSurname());
if (n.getInitials() != null)
System.out.println
("Initials = " + n.getInitials());
if (n.getGeneration() != null)
System.out.println
("Generation = " + n.getGeneration());
if (n.getADMD() != null)
System.out.println
("ADMD = " + n.getADMD());
if (n.getPRMD() != null)
System.out.println
("PRMD = " + n.getPRMD());
if (n.getKeyword() != null)
System.out.println
("Keyword = " + n.getKeyword());
if (n.getLanguage() != null)
System.out.println
("Language = " + n.getLanguage());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Abbreviated property
Read-only. A hierarchical name in abbreviated form, or null if the property
is undefined.
Defined in
Name
Data type
String
Syntax
public String getAbbreviated()
throws NotesException
Addr821 property
Read-only. Internet address in the format based on RFC 821 Address
Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr821()
throws NotesException
Addr822Comment1 property
Read-only. Comment1 component of Internet address in the format based
on RFC 822 Address Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr822Comment1()
throws NotesException
Addr822Comment2 property
Read-only. Comment2 component of Internet address in the format based
on RFC 822 Address Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr822Comment2()
throws NotesException
Addr822Comment3 property
Read-only. Comment3 component of Internet address in the format based
on RFC 822 Address Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr822Comment3()
throws NotesException
Addr822LocalPart property
Read-only. LocalPart component of Internet address in the format based on
RFC 822 Address Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr822LocalPart()
throws NotesException
Addr822Phrase property
Read-only. Phrase component of Internet address in the format based on
RFC 822 Address Format Syntax.
Defined in
Name
Data type
String
Syntax
public String getAddr822Phrase()
throws NotesException
ADMD property
Read-only. The administration management domain name (ADMD)
component of a hierarchical name (A=), or null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getADMD()
throws NotesException
Canonical property
Read-only. A hierarchical name in canonical form, or null if the property is
undefined.
Defined in
Name
Data type
String
Syntax
public String getCanonical()
throws NotesException
Common property
Read-only. The common name component of a hierarchical name (CN=), or
the entire name if it is flat.
Defined in
Name
Data type
String
Syntax
public String getCommon()
throws NotesException
Country property
Read-only. The country component of a hierarchical name (C=), or null if
the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getCountry()
throws NotesException
Generation property
Read-only. The generation component of a hierarchical name (Q=), for
example, “Jr,” or null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getGeneration()
throws NotesException
Given property
Read-only. The given component of a hierarchical name (G=), or null if the
property is undefined.
Defined in
Name
Data type
String
Syntax
public String getGiven()
throws NotesException
Initials property
Read-only. The initials component of a hierarchical name (I=), or null if the
property is undefined.
Defined in
Name
Data type
String
Syntax
public String getInitials()
throws NotesException
IsHierarchical property
Read-only. Indicates if a name is hierarchical.
Defined in
Name
Data type
boolean
Syntax
public boolean isHierarchical()
throws NotesException
Legal values
true if the name is hierarchical
false if the name is not hierarchical
Keyword property
Read-only. The following components of a hierarchical name in the order
shown separated by backslashes: country\organization\organizational unit
1\organizational unit 2\organizational unit 3\organizational unit 4.
Returns null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getKeyword()
throws NotesException
Language property
Read-only. The language tag associated with a name. Returns null if the
property is undefined.
Defined in
Name
Data type
String
Syntax
public String getLanguage()
throws NotesException
Usage
The language tags are as follows:
Tag Language
ar Arabic
ar-ae Arabic - United Arab Emirates
ar-bh Arabic - Bahrain
ar-dz Arabic - Algeria
ar-iq Arabic - Iraq
ar-jo Arabic - Jordan
ar-kw Arabic - Kuwait
ar-lb Arabic - Lebanon
ar-ly Arabic - Libyan Arab Jamahiriya
ar-ma Arabic - Morocco
ar-om Arabic - Oman
ar-qa Arabic - Qatar
ar-sa Arabic - Saudi Arabia
ar-sy Arabic - Syrian Arab Republic
ar-tn Arabic - Tunisia
ar-ye Arabic - Yemen
be Byelorussian
bg Bulgarian
ca Catalan
cs Czech
da Danish
de German
de-at German - Austria
de-ch German - Switzerland
de-li German - Liechtenstein
de-lu German - Luxembourg
el Greek
en English
continued
Tag Language
en-au English - Australia
en-ca English - Canada
en-gb English - United Kingdom
en-ie English - Ireland
en-jm English - Jamaica
en-nz English - New Zealand
en-us English - United States
en-za English - South Africa
es Spain (traditional collation)
es-ar Spanish - Argentina
es-bo Spanish - Bolivia
es-cl Spanish - Chile
es-co Spanish - Colombia
es-cr Spanish - Costa Rica
es-do Spanish - Dominican Republic
es-ec Spanish - Ecuador
es-gt Spanish - Guatemala
es-mx Spanish - Mexico
es-pa Spanish - Panama
es-pe Spanish - Peru
es-py Spanish - Paraguay
es-uy Spanish - Uruguay
es-ve Spanish - Venezuela
et Estonian
fi Finnish
fr French
fr-be French - Belgium
fr-ca French - Canada
fr-ch French - Switzerland
fr-lu French - Luxembourg
continued
Tag Language
he Hebrew
hr Croatian
hu Hungarian
it Italian
it-ch Italian - Switzerland
ja Japanese
ko Korean
lt Lithuanian
lv Latvian
mk Macedonian
nl Dutch
no Norwegian
pl Polish
pl-pl Polish - Poland
pt Portuguese
pt-br Portuguese - Brazil
ro Romanian
ru Russian
sk Slovak
sl Slovenian
sq Albanian
sr Serbian
sv Swedish
th Thai
tr Turkish
uk Ukranian
vi Vietnamese
zh-cn Chinese - China
zh-hk Chinese - Hong Kong
zh-sg Chinese - Singapore
zh-tw Chinese - Taiwan
Organization property
Read-only. The organization component of a hierarchical name (O=), or null
if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getOrganization()
throws NotesException
OrgUnit1 property
Read-only. The first organizational unit of a hierarchical name (OU=), or
null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getOrgUnit1()
throws NotesException
OrgUnit2 property
Read-only. The second organizational unit of a hierarchical name (OU=), or
null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getOrgUnit2()
throws NotesException
OrgUnit3 property
Read-only. The third organizational unit of a hierarchical name (OU=), or
null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getOrgUnit3()
throws NotesException
OrgUnit4 property
Read-only. The fourth organizational unit of a hierarchical name (OU=), or
null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getOrgUnit4()
throws NotesException
Parent property
Read-only. The Notes session that contains a Name object.
Defined in
Name
Data type
Session
Syntax
public Session getParent()
throws NotesException
PRMD property
Read-only. The private management domain name (PRMD) component of a
hierarchical name (P=), or null if the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getPRMD()
throws NotesException
SurName property
Read-only. The surname component of a hierarchical name (S=), or null if
the property is undefined.
Defined in
Name
Data type
String
Syntax
public String getSurName()
throws NotesException
Newsletter class
Document or set of documents that contains information from, or links to,
several other documents.
Syntax
public class Newsletter extends Base
Containment
Contained by: Session
Contains: Document
Properties
IsDoScore through isDoScore and setDoScore
IsDoSubject through isDoSubject and setDoSubject
Parent through getParent
SubjectItemName through getSubjectItemName and setSubjectItemName
Methods
formatDocument
formatMsgWithDoclinks
Creation
To create a new Newsletter, use a DocumentCollection object containing the
documents you want with createNewsletter in Session.
Usage
Once you create a newsletter, you can:
Use formatDocument to create a new document with a rendering of one
of the documents in the collection.
Use formatMsgWithDoclinks to create a new document with links to
each of the documents in the collection.
doc.send(false, session.getUserName()); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This agent performs a full-text search on the current database and
creates a newsletter. The agent formats a newsletter document for each
matching document and saves it in the database Reports.nsf.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
db.updateFTIndex(true);
DocumentCollection dc = db.FTSearch("arachnid", 15);
if (dc.getCount() > 0) {
Newsletter news = session.createNewsletter(dc);
Document doc;
Database reports = session.getDatabase(null,
"reports");
for (int j=0; j<dc.getCount(); j++) {
doc = news.formatDocument(reports, j+1);
doc.appendItemValue("Form", "Main Topic");
doc.appendItemValue("Subject", "The Arachnid
Report " + (j+1));
doc.appendItemValue("Categories", "Reports");
doc.appendItemValue("From",
session.getCommonUserName());
doc.save(true, true); }}
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsDoScore property
Read-write. For a newsletter document created using the
formatMsgWithDoclinks method, indicates if the newsletter includes the
relevance score for each document.
Defined in
Newsletter
Data type
boolean
Syntax
public boolean isDoScore()
throws NotesException
public void setDoScore(boolean flag)
throws NotesException
Legal values
true if the newsletter includes the relevance score for each document;
default
false if the newsletter does not include relevance scores
Usage
This property has no effect for a newsletter document created using the
formatDocument method.
This property applies only to newsletters with sorted collections; for
example, a collection produced by a call to the FTSearch method in
Database. If a newsletter collection is unsorted, this property has no effect.
IsDoSubject property
Read-write. For a newsletter document created using the
formatMsgWithDoclinks method, indicates if the newsletter includes a
string describing the subject of each document.
Defined in
Newsletter
Data type
boolean
Syntax
public boolean isDoSubject()
throws NotesException
public void setDoSubject(boolean flag)
throws NotesException
Legal values
true if the newsletter includes a subject line for each document; default
false if the newsletter does not include subject lines
Usage
This property has no effect for a newsletter document created using the
formatDocument method.
This property must be used in conjunction with the SubjectItemName
property. If you do not specify the SubjectItemName property, the
DoSubject property has no effect.
You must set both SubjectItemName and DoSubject before calling
FormatMsgWithDoclinks.
Parent property
Read-only. The Domino session that contains a Newsletter object.
Defined in
Newsletter
Data type
Session
Syntax
public Session getParent()
throws NotesException
SubjectItemName property
Read-write. For a newsletter document created using the
formatMsgWithDoclinks method, indicates the name of the item on
the documents of a newsletter that contains the text you want to use
as a subject line.
Defined in
Newsletter
Data type
String
Syntax
public String getSubjectItemName()
throws NotesException
public void setSubjectItemName(String name)
throws NotesException
Usage
This property has no effect for a newsletter document created using the
FormatDocument method.
This property must be used in conjunction with the DoSubject property. For
example, if the DoSubject property is true and SubjectItemName is
“Subject,” then the newsletter contains the contents of each document
Subject item next to the document link. If the DoSubject property is false,
the SubjectItemName property has no effect.
You must set both SubjectItemName and DoSubject before calling
formatMsgWithDoclinks.
formatDocument method
Creates a document containing a rendering of a document in the newsletter
collection. This is similar to forwarding a document, which displays a
rendering of the forwarded document.
Defined in
Newsletter
Syntax
public Document formatDocument(Database db, int index)
throws NotesException
Parameters
Database db
Return value
Document
Usage
If you want to save the rendered document, you must explicitly call the
save method of Document.
If you want to mail the rendered document, you must explicitly call the
send method of Document.
formatMsgWithDoclinks method
Creates a document that contains a link to each document in the newsletter
collection.
Defined in
Newsletter
Syntax
public Document formatMsgWithDoclinks(Database db)
throws NotesException
Parameter
Database db
Return value
Document
Usage
The Body item of the returned document contains the following:
The file name of the database that contains the documents in the
newsletter collection.
A link to each document in the newsletter collection.
If the collection is sorted and the DoScore property is true, the relevance
score of each document. You must set this property before calling the
formatMsgWithDoclinks method.
If the DoSubject property is true and the SubjectItemName property has
a value, a title for each document. You must set this property before
calling the formatMsgWithDoclinks method.
The query that produced the newsletter collection.
If you want to save the newsletter, you must explicitly call the save method
of Document.
If you want to mail the newsletter, you must explicitly call the send method
of Document.
Outline class
Represents an outline in a database.
Containment
Contained by: Database
Contains: OutlineEntry
Properties
Alias through getAlias
Comment through getComment
Name through getName
Methods
addEntry
createEntry
getFirst
getLast
getNext
getNextSibling
getParent
getPrev
getPrevSibling
moveEntry
removeEntry
save
Usage
An outline supports a hierarchy of outline entries and provides methods for
their navigation and manipulation.
case OutlineEntry.OUTLINE_CLASS_DOCUMENT:
entryClass = "Document"; break;
case OutlineEntry.OUTLINE_CLASS_FORM:
entryClass = "Form"; break;
case OutlineEntry.OUTLINE_CLASS_FOLDER:
entryClass = "Folder"; break;
case OutlineEntry.OUTLINE_CLASS_FRAMESET:
entryClass = "Frame set"; break;
case OutlineEntry.OUTLINE_CLASS_NAVIGATOR:
entryClass = "Navigator"; break;
case OutlineEntry.OUTLINE_CLASS_PAGE:
entryClass = "Page"; break;
case OutlineEntry.OUTLINE_CLASS_UNKNOWN:
entryClass = "Unknown"; break;
case OutlineEntry.OUTLINE_CLASS_VIEW:
entryClass = "View"; break;
}
System.out.println("\tEntry class: " +
entryClass);
System.out.println("\tLevel: " +
entry.getLevel());
if (entry.isInThisDB())
System.out.println("\tRefers to an element in
this database");
else
System.out.println
("\tDoes not refer to an element in this database");
if (entry.isPrivate())
System.out.println("\tEntry is private");
else
System.out.println("\tEntry is public");
if (entry.getFrameText().length() > 0)
System.out.println("\tFrame text: " +
entry.getFrameText());
if (entry.getImagesText().length() > 0)
System.out.println("\tImages text: " +
entry.getImagesText());
entry = outline.getNext(entry);
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
Alias property
Read-write. Alias name of an outline for programmatic access.
Defined in
Outline
Data type
String
Syntax
public String getAlias()
throws NotesException
public void setAlias(String value)
throws NotesException
Comment property
Read-write. An informational description of an outline.
Defined in
Outline
Data type
String
Syntax
public String getComment()
throws NotesException
public void setComment(String value)
throws NotesException
Name property
Read-write. Name of an outline.
Defined in
Outline
Data type
String
Syntax
public String getName()
throws NotesException
public void setName(String value)
throws NotesException
addEntry method
Adds an entry to an outline.
Defined in
Outline
Syntax
public void addEntry(OutlineEntry entry, OutlineEntry
referenceEntry)
throws NotesException
Parameters
OutlineEntry entry
The entry after or before which the entry being added is placed.
boolean after
True (default) to put the entry after the reference entry; false to put the
entry before the reference entry.
boolean asChild
True (default) to make the entry a child of the preceding entry. If the
after parameter is False and asChild parameter is True, an exception is
raised.
Usage
You must save the outline or the effect of this method is lost when the
program exits.
createEntry method
Creates an outline entry.
Defined in
Outline
Syntax
public OutlineEntry createEntry(String entryName)
throws NotesException
Parameters
String entryName
Usage
The new entry becomes a free entry. Use addEntry to position the
new entry.
You must save the outline or the effect of this method is lost when the
program exits.
getFirst method
Gets the first entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getFirst()
throws NotesException
Return value
OutlineEntry
getLast method
Gets the last entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getLast()
throws NotesException
Return value
OutlineEntry
getNext method
Gets the entry immediately following a specified entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getNext(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Return value
OutlineEntry
The entry following the one specified as the parameter, or null if there
is no next entry.
getNextSibling method
Gets the entry at the same level following a specified entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getNextSibling(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Return value
OutlineEntry
The entry at the same level following the one specified as the
parameter, or null if there is no next sibling.
getParent method
Returns the parent of a specified entry.
Defined in
Outline
Syntax
public OutlineEntry getParent(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Return value
OutlineEntry
The parent entry of the one specified as the parameter, or null if there is
no parent.
getPrev method
Gets the entry immediately preceding a specified entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getPrev(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Return value
OutlineEntry
The entry preceding the one specified as the parameter, or null if there
is no next entry.
getPrevSibling method
Gets the entry at the same level preceding a specified entry of an outline.
Defined in
Outline
Syntax
public OutlineEntry getPrevSibling(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Return value
OutlineEntry
The entry at the same level preceding the one specified as the parameter, or
null if there is no next sibling.
moveEntry method
Moves an outline entry from one location to another.
Defined in
Outline
Syntax
public void moveEntry(OutlineEntry entry, OutlineEntry
referenceEntry)
throws NotesException
public void moveEntry(OutlineEntry entry, OutlineEntry
referenceEntry, boolean after)
throws NotesException
public void moveEntry(OutlineEntry entry, OutlineEntry
referenceEntry, boolean after, boolean asChild)
throws NotesException
Parameters
OutlineEntry entry
The entry after or before which the entry being moved is placed.
boolean after
True (default) to move the entry after the reference entry; false to move
the entry before the reference entry.
boolean asChild
True (default) to make the entry a child of the preceding entry. If after
parameter is false, and asChild parameter is true, an exception is raised.
Usage
You must save the outline or the effect of this method is lost when the
program exits.
Moving an entry to the beginning of the outline makes it a top-level
(level 0) entry.
} catch(Exception e) {
e.printStackTrace();
}
}
}
removeEntry method
Removes an entry or entries from an outline.
Defined in
Outline
Syntax
public void removeEntry(OutlineEntry entry)
throws NotesException
Parameters
OutlineEntry entry
Usage
You must save the outline or the effect of this method is lost when the
program exits.
outline.removeEntry(thisEntry, false);
count++;
}
}
outline.save();
System.out.println(count + " outline entries removed");
} catch(Exception e) {
e.printStackTrace();
}
}
}
save method
Saves any changes made to the outline.
Defined in
Outline
Syntax
public void save()
Usage
You must save the outline before the program exits or the effect of a method
that changes the outline is lost. These methods include addEntry,
createEntry, and moveEntry.
OutlineEntry class
Represents an entry in an outline.
Containment
Contained by: Outline
Properties
Alias through getAlias and setAlias
Database through getDatabase
Document through getDocument
EntryClass through getClass
Formula through getFormula
FrameText through getFrameText and setFrameText
Methods
setAction
setNamedElement
setNoteLink
setURL
Alias property
Read-write. Name of an outline entry for programmatic access.
Defined in
OutlineEntry
Data type
String
Syntax
public String getAlias()
throws NotesException
public void setAlias(String value)
throws NotesException
Database property
Read-only. Database that is the resource link for an outline entry, or null.
Defined in
OutlineEntry
Data type
Database
Syntax
public Database getDatabase()
throws NotesException
Usage
This property applies if the outline entry type is
OUTLINE_TYPE_NOTELINK or OUTLINE_TYPE_NAMEDELEMENT
and the entry class is OUTLINE_CLASS_DATABASE,
OUTLINE_CLASS_DOCUMENT, or OUTLINE_CLASS_VIEW.
Document property
Read-only. Document that is the resource link for an outline entry, or null.
Defined in
OutlineEntry
Data type
Document
Syntax
public Document getDocument()
throws NotesException
Usage
This property applies if the outline entry type is
OUTLINE_TYPE_NOTELINK and the entry class is
OUTLINE_CLASS_DOCUMENT.
EntryClass property
Read-only. Class of outline entry.
Defined in
OutlineEntry
Data type
int
Syntax
public int getEntryClass()
throws NotesException
Legal values
OutlineEntry.OUTLINE_CLASS_DATABASE
OutlineEntry.OUTLINE_CLASS_DOCUMENT
OutlineEntry.OUTLINE_CLASS_FORM
OutlineEntry.OUTLINE_CLASS_FOLDER
OutlineEntry.OUTLINE_CLASS_FRAMESET
OutlineEntry.OUTLINE_CLASS_NAVIGATOR
OutlineEntry.OUTLINE_CLASS_PAGE
OutlineEntry.OUTLINE_CLASS_UNKNOWN
OutlineEntry.OUTLINE_CLASS_VIEW
Formula property
Read-only. Formula of an action outline, or an empty string.
Defined in
OutlineEntry
Data type
String
Syntax
public String getFormula()
throws NotesException
Usage
This property applies if the outline entry type is
OUTLINE_TYPE_ACTION.
FrameText property
Read-write. The name of the target frame for the entry’s OnClick event.
Defined in
OutlineEntry
Data type
String
Syntax
public String getFrameText()
throws NotesException
public void setFrameText(String value)
throws NotesException
HasChildren property
Read-only. Indicates whether an entry contains child entries.
Defined in
OutlineEntry
Data type
boolean
Syntax
public boolean hasChildren()
throws NotesException
Legal values
true if the entry contains child entries
false if the entry does not contain child entries
ImagesText property
Read-write. The name of the image file used to add an icon to an entry.
Defined in
OutlineEntry
Data type
String
Syntax
public String getImagesText()
throws NotesException
public void setImagesText(String value)
throws NotesException
IsHidden property
Read-write. Indicates if an entry is hidden.
Defined in
OutlineEntry
Data type
boolean
Syntax
public boolean isHidden()
throws NotesException
public void setHidden(boolean value)
throws NotesException
Legal values
true if the entry is hidden
false if the entry displays in the UI
IsInThisDB property
Read-only. Indicates if an entry refers to an element in the current database.
Defined in
OutlineEntry
Data type
boolean
Syntax
public boolean isInThisDB()
throws NotesException
Legal values
true if the entry is in the current database
false if the entry is not in the current database
IsPrivate property
Read-only. Indicates if an entry is specific to an individual.
Defined in
OutlineEntry
Data type
boolean
Syntax
public boolean isPrivate()
throws NotesException
Legal values
true if the entry is private
false if the entry is public
Label property
Read-write. Label (display text) for an entry.
Defined in
OutlineEntry
Data type
String
Syntax
public String getLabel()
throws NotesException
public void setLabel(String value)
throws NotesException
Level property
Read-only. The level of this entry.
Defined in
OutlineEntry
Data type
int
Syntax
public int getLevel()
throws NotesException
Usage
Level 0 is the top level.
NamedElement property
Read-only. Named element referenced by an outline entry, or an empty
string.
Defined in
OutlineEntry
Data type
String
Syntax
public String getNamedElement()
throws NotesException
Usage
This property applies if the outline entry type is
OUTLINE_TYPE_NAMEDELEMENT.
Type property
Read-only. Type of outline entry.
Defined in
OutlineEntry
Data type
int
Syntax
public int getType()
throws NotesException
Legal values
OutlineEntry.OUTLINE_OTHER_FOLDERS_TYPE
OutlineEntry.OUTLINE_OTHER_UNKNOWN_TYPE
OutlineEntry.OUTLINE_OTHER_VIEWS_TYPE
OutlineEntry.OUTLINE_TYPE_ACTION
OutlineEntry.OUTLINE_TYPE_NAMEDELEMENT
OutlineEntry.OUTLINE_TYPE_NOTELINK
OutlineEntry.OUTLINE_TYPE_URL
URL property
Read-only. URL of an outline entry, or an empty string.
Defined in
OutlineEntry
Data type
String
Syntax
public String getURL()
throws NotesException
Usage
This property applies if the outline entry type is OUTLINE_TYPE_URL.
View property
Read-only. View that is the resource link for an outline entry, or null.
Defined in
OutlineEntry
Data type
View
Syntax
public View getView()
throws NotesException
Usage
This property applies if the outline entry type is
OUTLINE_TYPE_NOTELINK and the entry class is
OUTLINE_CLASS_DOCUMENT or OUTLINE_CLASS_VIEW.
setAction method
Specifies a formula for an action outline entry.
Defined in
OutlineEntry
Syntax
public boolean setAction(String formula)
throws NotesException
Parameter
String formula
A Domino formula.
Return value
boolean
Usage
This method sets the outline entry type to OUTLINE_TYPE_ACTION.
setNamedElement method
Specifies a named element for an outline entry.
Defined in
OutlineEntry
Syntax
public boolean setNamedElement(Database db, String elementName, int
entryClass)
throws NotesException
Parameters
Database db
Return value
boolean
Usage
This method sets the outline entry type to
OUTLINE_TYPE_NAMEDELEMENT and the entry class as specified.
setNoteLink method
Specifies a resource link for an outline entry.
Defined in
OutlineEntry
Syntax
public boolean setNoteLink(Database db)
throws NotesException
public boolean setNoteLink(Document doc)
throws NotesException
public boolean setNoteLink(View view)
throws NotesException
Parameters
Database db
Return value
boolean
Usage
This method sets the outline entry type to OUTLINE_TYPE_NOTELINK
and the entry class to OUTLINE_CLASS_DATABASE,
OUTLINE_CLASS_DOCUMENT, or OUTLINE_CLASS_VIEW
depending on the particular method.
setURL method
Specifies a URL as the resource link for an outline entry.
Defined in
OutlineEntry
Syntax
public boolean setURL(String url)
throws NotesException
Parameter
String url
A URL.
Return value
boolean
Usage
This method sets the outline entry type to OUTLINE_TYPE_URL.
Registration class
Represents the creation or administration of an ID file.
Syntax
public class Registration extends Base
Containment
Contained by NotesSession class
Properties
CertifierIDFile property through getCertifierIDFile and setCertifierIDFile
CreateMailDb property through getCreateMailDb and setCreateMailDb
Expiration property through getExpiration and setExpiration
IDType property through getIDType and setIDType
IsNorthAmerican property through isNorthAmerican and
setNorthAmerican
MinPasswordLength property through getMinPasswordLength and
setMinPasswordLength
Methods
addCertifierToAddressbook method
addServerToAddressbook method
addUserProfile method
addUserToAddressBook method
crossCertify method
deleteIDOnServer method
getIDFromServer method
getUserInfo method
recertify method
registerNewCertifier method
registerNewServer method
registerNewUser method
switchToID method
Creation
To create a new Registration object, use the createRegistration method
in Session.
CertifierIDFile property
Read-write. The complete file specification of the certifier ID to use when
creating IDs.
Defined in
Registration
Data type
String
Syntax
public String getCertifierIDFile()
throws NotesException
public void setCertifierIDFile(String file)
throws NotesException
Usage
Specify the complete path, for example, c:\notes\data\cert.id.
CreateMailDb property
Read-write. Indicates whether a mail database is created with the ID file
when calling registerNewUser.
Defined in
Registration
Data type
boolean
Syntax
public boolean getCreateMailDb()
throws NotesException
public void setCreateMailDb(boolean flag)
throws NotesException
Legal values
True to create a mail database
False to not create a mail database; it will be created during setup
Expiration property
Read-write. The expiration date to use when creating ID files.
Defined in
Registration
Data type
DateTime
Syntax
public DateTime getExpiration()
throws NotesException
public void setExpiration(DateTime date)
throws NotesException
Usage
Can be set to null.
IDType property
Read-write. The type of ID file to create when calling registerNewUser,
registerNewServer, and registerNewCertifier.
Defined in
Registration
Data type
int
Syntax
public int getIDType()
throws NotesException
public void setIDType(int type)
throws NotesException
Legal Values
ID_FLAT to create a flat ID
ID_HIERARCHICAL to create a hierarchical ID
ID_CERTIFIER to create an ID that depends on whether the certifier
ID is flat or hierarchical
IsNorthAmerican property
Read-write. indicates whether an ID file is North American. Useful when
calling registerNewUser, registerNewServer, and registerNewCertifier.
Defined in
Registration
Data type
boolean
Syntax
public boolean isNorthAmerican()
throws NotesException
public void setNorthAmerican(boolean flag)
throws NotesException
Legal Values
True if the ID is North American.
False if the ID is not North American.
MinPasswordLength property
Read-write. The minimum number of characters required for a password in
an ID file when calling registerNewUser, registerNewServer, and
registerNewCertifier.
Defined in
Registration
Data type
int
Syntax
public int getMinPasswordLength()
throws NotesException
public void setMinPasswordLength(int len)
throws NotesException
Usage
This property defines the minimum password length required for
subsequent changes to the password by the user. The password used when
the certifier is created is not restricted by the MinPasswordLength property.
OrgUnit property
Read-write. The organizational unit to use when creating ID files.
Defined in
Registration
Data type
String
Syntax
public String getOrgUnit()
throws NotesException
public void setOrgUnit(String unit)
throws NotesException
RegistrationLog property
Read-write. The log file to use when creating IDs.
Defined in
Registration class
Data type
String
Syntax
public String getRegistrationLog()
throws NotesException
public void setRegistrationLog(String name)
throws NotesException
RegistrationServer property
Read-write. The server to use when creating IDs. This property is used only
when the created ID is stored in the server Domino Directory, or when a
mail database is created for the new user.
Defined in
Registration
Data type
String
Syntax
public String getRegistrationServer()
throws NotesException
public void setRegistrationServer(String server)
throws NotesException
StoreIDInAddressBook property
Read-write. Indicates whether the ID file is stored in the server’s Domino
Directory.
Defined in
Registration
Data type
boolean
Syntax
public boolean getStoreIDInAddressBook()
throws NotesException
public void setStoreIDInAddressBook(boolean flag)
throws NotesException
Legal Values
True to store the ID in the Domino Directory
False to not store the ID in the Domino Directory
UpdateAddressbook property
Read-write. Indicates whether the server entry in the Domino Directory is
updated when the ID file is created when calling registerNewUser,
registerNewServer, and registerNewCertifier.
Defined in
Registration class
Data type
boolean
Syntax
public boolean getUpdateAddressBook()
throws NotesException
public void setUpdateAddressBook(boolean flag)
throws NotesException
Legal Values
True to update the Domino Directory.
False to not update the Doimino Directory.
addCertifierToAddressbook method
Adds the certifier ID file to the Domino Directory.
Defined in
Registration
Syntax
public boolean addCertifierToAddressBook(String idfile)
throws NotesException
public boolean addCertifierToAddressBook(String idfile, String
password, String location, String comment)
throws NotesException
Parameters
String idfile
Return value
boolean
addServerToAddressbook method
Adds a server to the Domino Directory.
Defined in
NotesRegistration
Syntax
public boolean addServerToAddressBook(String idfile, String server,
String domain)
throws NotesException
public boolean addServerToAddressBook(String idfile, String server,
String domain, String userpw, String network, String adminname,
String title, String location, String comment)
throws NotesException
Parameters
String idfile
The ID file for the server to be added to the Domino Directory. Specify
the full path; for example, c:\notes\data\cert.id.
String server
Return value
boolean
addUserProfile method
Adds a user profile document to the ID file.
Defined in
Registration
Syntax
public void addUserProfile(String username, String profile)
throws NotesException
Parameters
String username
addUserToAddressbook method
Adds a user to the Domino Directory.
Defined in
Registration
Syntax
public boolean addUserToAddressBook(String idfile, String fullname,
String lastn)
throws NotesException
public boolean addUserToAddressBook(String idfile, String fullname,
String lastn, String userpw, String firstn, String middle, String
mailserv, String mailfilepath, String fwdaddr, String location,
String comment)
throws NotesException
Parameters
String idfile
The ID file for the user to be added to the Domino Directory. Specify
the full path, for example, c:\notes\data\cert.id.
String fullname
Return value
boolean
crossCertify method
Cross-certifies an ID file.
Defined in
Registration
Syntax
public boolean crossCertify(String idfile)
throws NotesException
public boolean crossCertify(String idfile, String certpw, String
comment)
throws NotesException
Parameters
String idfile
Return value
boolean
deleteIDOnServer method
Deletes an ID file from the server.
Defined in
Registration
Syntax
public void deleteIDOnServer(String username, boolean isserverid)
throws NotesException
Parameters
String username
True if the name you query represents a server ID. False if the name is
that of a person. While the information always comes from the
designated server Domino Directory, this argument helps you to choose
a view to search.
getIDFromServer method
Gets an ID file from the server.
Defined in
Registration
Syntax
public void getIDFromServer(String username, String filepath,
boolean isserverid)
throws NotesException
Parameters
String username
True if the name you query represents a server ID. False if the name is
that of a person. While the information always comes from the
designated server Domino Directory, this argument helps you to choose
a view to search.
getUserInfo method
Gets information about the user from the server.
Defined in
NotesRegistration
Syntax
public void getUserInfo(String username, StringBuffer mailserver,
StringBuffer mailfile, StringBuffer maildomain, StringBuffer
mailsystem, Vector profile)
throws NotesException
Parameters
String username
Usage
The parameters, except for the first, are return values.
recertify method
Recertifies an ID file.
Defined in
Registration
Syntax
public boolean recertify(String idfile)
throws NotesException
public boolean recertify(String idfile, String certpw, String
comment)
throws NotesException
Parameters
String idfile
Return value
boolean
registerNewCertifier method
Registers a new certfier ID file.
Defined in
Registration
Syntax
public boolean registerNewCertifier(String org, String idfile,
String userpw)
throws NotesException
public boolean registerNewCertifier(String org, String idfile,
String certpw, String country, String userpw)
throws NotesException
Parameters
String org
String userpw
Return value
boolean
registerNewServer method
Registers a new server ID file.
Defined in
Registration
Syntax
public boolean registerNewServer(String server, String idfile,
String domain, String pw)
throws NotesException
public boolean registerNewServer(String server, String idfile,
String domain, String serverpw, String certpw, String location,
String comment, String network, String adminname, String title)
throws NotesException
Parameters
String server
String comment
Return value
boolean
registerNewUser method
Registers a new server ID file.
Defined in
Registration
Syntax
public boolean registerNewUser(String lastn, String idfile, String
server)
throws NotesException
public boolean registerNewUser(String lastn, String idfile, String
server, String firstn, String middle, String certpw, String
location, String comment, String maildbpath, String forward, String
userpw)
throws NotesException
Parameters
String lastn
String firstn
Optional. The path of the user’s mail file relative to the mail directory;
for example, mail\jones.nsf.
String forward
Return value
boolean
switchToID method
Switches to a different ID file.
Defined in
Registration
Syntax
public String switchToID(String idfile, String userpw)
throws NotesException
Parameters
String idfile
The ID file to which you want to switch. Specify the complete path; for
example, c:\notes\data\cert.id.
String userpw
Return Value
String
Replication class
Represents the replication settings of a database.
Syntax
public class Replication extends Base
Containment
Contained by: Database
Properties
CutoffDate through getCutoffDate
CutoffInterval through getCutoffInterval and setCutoffInterval
IsAbstract through isAbstract and setAbstract
IsCutoffDelete through isCutoffDelete and setCutoffDelete
IsDisabled through isDisabled and setDisabled
IsDoNotBrowse through isDoNotBrowse and setDoNotBrowse
IsDoNotCatalog through isDoNotCatalog and setDoNotCatalog
IsHideDesign through isHideDesign and setHideDesign
IsIgnoreDeletes through isIgnoreDeletes and setIgnoreDeletes
IsIgnoreDestDeletes through isIgnoreDestDeletes and setIgnoreDestDeletes
IsMultiDbIndex through isMultiDbIndex and setMultiDbIndex
Methods
clearHistory
reset
save
Creation
Each Database object has exactly one associated Replication object. Use
getReplicationInfo in Database to get the Replication object.
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsAbstract property
Read-write. Indicates if large documents should be truncated and
attachments removed during replication.
Defined in
Replication
Data type
boolean
Syntax
public boolean isAbstract()
throws NotesException
public void setAbstract(boolean bValue)
throws NotesException
Legal values
True to truncate large documents and remove attachments
False to replicate large documents in their entirety
CutoffDate property
Read-only. Today’s date plus the cutoff interval.
Defined in
Replication
Data type
DateTime
Syntax
public DateTime getCutoffDate()
throws NotesException
CutoffInterval property
Read-write. Number of days after which documents are automatically
deleted if isCutoffDelete is in effect.
Defined in
Replication
Data type
long
Syntax
public long getCutoffInterval()
throws NotesException
public void setCutoffInterval(long interval)
throws NotesException
IsCutoffDelete property
Read-write. Indicates if documents that are older than the cutoff date
should be automatically deleted.
Defined in
Replication
Data type
boolean
Syntax
public boolean isCutoffDelete()
throws NotesException
public void setCutoffDelete(boolean bValue)
throws NotesException
Legal values
True to automatically delete documents that are older than the
cutoff date
False to not delete old documents
IsDisabled property
Read-write. Indicates if replication is disabled.
Defined in
Replication
Data type
boolean
Syntax
public boolean isDisabled()
throws NotesException
public void setDisabled(boolean bValue)
throws NotesException
Legal values
True to disable replication
False to enable replication
Usage
You can disable replication with this property and isNeverReplicate. This
property is accessible through the UI while isNeverReplicate is not.
replication.save();
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsDoNotBrowse property
Read-write. Indicates if a database should not be shown in the “Open
Database” dialog box.
Defined in
Replication
Data type
boolean
Syntax
public boolean isDoNotBrowse()
throws NotesException
public void setDoNotBrowse(boolean bValue)
throws NotesException
Legal values
True to not show the database in the “Open Database” dialog box
False to how the database in the “Open Database” dialog box
replication.isDoNotBrowse());
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsDoNotCatalog property
Read-write. Indicates if a database should not be listed in the database
catalog (catalog.nsf).
Defined in
Replication
Data type
boolean
Syntax
public boolean isDoNotCatalog()
throws NotesException
public void setDoNotCatalog(boolean bValue)
throws NotesException
Legal values
True to not list the database in the database catalog
False to list the database in the database catalog
replication.isDoNotCatalog());
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsHideDesign property
Read-write. Indicates if a database design should be hidden.
Defined in
Replication
Data type
boolean
Syntax
public boolean isHideDesign()
throws NotesException
public void setHideDesign(boolean bValue)
throws NotesException
Legal values
True to hide the database design
False to not hide the database design
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsIgnoreDeletes property
Read-write. Indicates if deletions should not be replicated.
Defined in
Replication
Data type
boolean
Syntax
public boolean isIgnoreDeletes()
throws NotesException
public void setIgnoreDeletes(boolean bValue)
throws NotesException
Legal values
True to not replicate deletions
False to replicate deletions
replication.isIgnoreDeletes());
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsIgnoreDestDeletes property
Read-write. Indicates if deletions should not be replicated to destination
databases.
Defined in
Replication
Data type
boolean
Syntax
public boolean isIgnoreDestDeletes()
throws NotesException
public void setIgnoreDestDeletes(boolean bValue)
throws NotesException
Legal values
True to not replicate deletions to destination databases
False to replicate deletions to destination databases
replication.isIgnoreDestDeletes());
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsMultiDbIndex property
Read-write. Indicates if a database can be included in multi-database
indexing.
Defined in
Replication
Data type
boolean
Syntax
public boolean isMultiDbIndex()
throws NotesException
public void setMultiDbIndex(boolean bValue)
throws NotesException
Legal values
True to include the database in multi-database indexing
False to not include the database in multi-database indexing
replication.isMultiDbIndex());
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsNeverReplicate property
Read-write. Indicates if replication is disabled.
Defined in
Replication
Data type
boolean
Syntax
public boolean isNeverReplicate()
throws NotesException
public void setNeverReplicate(boolean bValue)
throws NotesException
Legal values
True to disable replication
False to enable replication
Usage
You can disable replication with this property and isDisabled. This property
is not accessible through the UI while isDisabled is.
IsNoChronos property
Read-write. Indicates if background agents are disabled.
Defined in
Replication
Data type
boolean
Syntax
public boolean isNoChronos()
throws NotesException
public void setNoChronos(boolean bValue)
throws NotesException
Legal values
True to disable background agents
False to enable background agents
Priority property
Read-write. Replication priority.
Defined in
Replication
Data type
int
Syntax
public int getPriority()
throws NotesException
public void setPriority(int priority)
throws NotesException
Legal values
Replication.DB_REPLICATION_PRIORITY_HIGH
Replication.DB_REPLICATION_PRIORITY_LOW
Replication.DB_REPLICATION_PRIORITY_MED
Replication.DB_REPLICATION_PRIORITY_NOTSET
} catch(Exception e) {
e.printStackTrace();
}
}
}
clearHistory method
Clears the replication history.
Defined in
Replication
Syntax
public int clearHistory()
throws NotesException
reset method
Resets the replication properties to their last saved values.
Defined in
Replication
Syntax
public int reset()
throws NotesException
save method
Saves the replication properties. If you don’t call save before closing the
database, any changes to the replication properties are lost.
Defined in
Replication
Syntax
public int save()
throws NotesException
RichTextItem class
Represents an item of type rich text.
Syntax
public class RichTextItem extends Item
Base class
Inherits from: Item
Containment
Contained by: Document
Contains: EmbeddedObject and RichTextStyle
Property
EmbeddedObjects through getEmbeddedObjects
Methods
addNewLine
addPageBreak
addTab
appendDocLink
appendParagraphStyle
appendRTItem
appendStyle
appendText
embedObject
getEmbeddedObject
getFormattedText
Creation
To create a new RichTextItem object, use createRichTextItem in Document.
Access
To access an existing RichTextItem object, use getFirstItem in Document.
You must explicitly cast the return value to RichTextItem.
Because RichTextItem inherits from Item, all of the Item properties and
methods can be used on a RichTextItem, too.
When you change the value of a RichTextItem object, the change is not
written to disk until you call save for the parent Document object.
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc = dc.getFirstDocument();
Item subject = doc.getFirstItem("Subject");
RichTextItem body =
(RichTextItem)doc.getFirstItem("Body");
// Print text of subject and body
System.out.println(subject.getText());
System.out.println(body.getText());
} catch(Exception e) {
e.printStackTrace();
}
}
}
EmbeddedObjects property
Read-only. All the embedded objects, object links, and file attachments
contained in a rich-text item.
Note EmbeddedObjects is not supported under OS/2, under UNIX, and
on the Macintosh.
Defined in
RichTextItem
Data type
java.util.Vector; elements are EmbeddedObject
Syntax
public java.util.Vector getEmbeddedObjects()
throws NotesException
Usage
This property includes OLE/1 and OLE/2 embedded objects and object
links as well as file attachments.
If you need access to OLE/2 embedded objects that exist on a document but
are not part of a rich-text item (for example, because the object was
originally created on the document’s form), use the EmbeddedObjects
property in Document.
addNewLine method
Appends one or more new lines (carriage returns) to the end of a rich-text
item.
Defined in
RichTextItem
Syntax
public void addNewLine()
throws NotesException
public void addNewLine(int count)
throws NotesException
public void addNewLine(int count, boolean newparagraph)
throws NotesException
Parameters
int count
body.addNewLine();
body.appendText("Element A2");
body.addTab();
body.appendText("Element B2");
// Save the document
doc.save(true, true);
} catch(Exception e) {
e.printStackTrace();
}
}
}
addPageBreak method
Appends a page break to the end of a rich-text item.
Defined in
RichTextItem
Syntax
public void addPageBreak()
throws NotesException
public void addPageBreak(RichTextParagraphStyle pstyle)
throws NotesException
Parameters
RichTextParagraphStyle pstyle
Starts the new page with the specified paragraph style.
addTab method
Appends one or more tabs to the end of a rich-text item.
Defined in
RichTextItem
Syntax
public void addTab()
throws NotesException
public void addTab(int count)
throws NotesException
Parameter
int count
appendDocLink method
Adds a doclink to the end of a rich-text item.
Defined in
RichTextItem
Syntax
public void appendDocLink(Document doc)
throws NotesException
public void appendDocLink(Database db)
throws NotesException
public void appendDocLink(View vw)
throws NotesException
public void appendDocLink(Document doc, String comment)
throws NotesException
public void appendDocLink(Database db, String comment)
throws NotesException
public void appendDocLink(View vw, String comment)
throws NotesException
public void appendDocLink(Document doc, String comment, String
hotspottext)
throws NotesException
public void appendDocLink(Database db, String comment, String
hotspottext)
throws NotesException
public void appendDocLink(View vw, String comment, String
hotspottext)
throws NotesException
Parameters
Document doc
Database vw
The text that appears when a user presses and holds the mouse over the
link.
String hotspottext
Boxed text that appears that the user clicks to follow the link. This text
appears in place of a token.
appendParagraphStyle method
Appends a paragraph style to the end of a rich text item. Text following the
paragraph style is rendered using the attributes of that paragraph style.
Defined in
RichTextItem
Syntax
public void appendParagraphFile(RichTextParagraphStyle pstyle)
throws NotesException
Parameter
RichTextParagraphStyle pstyle
Usage
See RichTextParagraphStyle for details and examples.
appendRTItem method
Appends the contents of one rich text item to the end of another rich text
item.
Defined in
RichTextItem
Syntax
public void appendRTItem(RichTextItem item)
throws NotesException
Parameter
RichTextItem item
appendStyle method
Appends a style to the end of a rich text item. Text following the style is
rendered using the attributes of that style until another style is appended.
Defined in
RichTextItem
Syntax
public void appendStyle(RichTextStyle style)
throws NotesException
Parameter
RichTextStyle style
Usage
This method does not affect text appended by appendRTItem.
See RichTextStyle for details and examples.
appendText method
Appends text to the end of a rich text item. The text is rendered in the
current style of the item.
Defined in
RichTextItem
Syntax
public void appendText(String text)
throws NotesException
Parameter
String text
embedObject method
Given the name of a file or an application, does one of the following:
Attaches the file you specify to a rich-text item.
Embeds an object in a rich-text item. The object is created using either
the application or the file you specify.
Places an object link in a rich-text item. The link is created using the file
you specify.
Note EmbedObject is not supported under OS/2, under UNIX, or on
the Macintosh.
Defined in
RichTextItem
Syntax
public EmbeddedObject embedObject(int type, String class, String
source, String name)
throws NotesException
Parameters
int type
String class
Return value
EmbeddedObject
Usage
Files can be attached on any supported platform, but objects and links can
only be created on platforms supporting OLE.
Files can be embedded as OLE/2 objects only on platforms supporting OLE,
but they can be embedded as OLE/1 objects on any supported platform (if
the file is of a supported type, such as a Lotus® application data file).
getEmbeddedObject method
Given the name of a file attachment, embedded object, or object link in a
rich-text item, returns the corresponding EmbeddedObject.
Note getEmbeddedObject is not supported under OS/2, under UNIX, and
on the Macintosh.
Defined in
RichTextItem
Syntax
public EmbeddedObject getEmbeddedObject(String name)
throws NotesException
Parameter
String name
Return value
EmbeddedObject
Usage
If you modify the object returned by getEmbeddedObject, the changes are
saved but the rendering of the object in the Domino document is not
updated until you manually activate the object.
getFormattedText method
Returns the contents of a rich-text item as plain text.
Defined in
RichTextItem
Syntax
public String getFormattedText(boolean tabstrip, int linelen, int
maxlen)
throws NotesException
Parameters
boolean tabstrip
If true, tabs are stripped out. If false, tabs are not stripped out.
int linelen
Return value
String
Usage
This method strips out non-text data, such as bitmaps and file attachments.
RichTextParagraphStyle class
Represents rich text paragraph attributes.
Syntax
public class RichTextParagraphStyle extends Base
Containment
Contained by: Session
Properties
Alignment through getAlignment and setAlignment
FirstLineLeftMargin through getFirstLineLeftMargin and
setFirstLineLeftMargin
InterLineSpacing through getInterLineSpacing and setInterLineSpacing
LeftMargin through getLeftMargin and setLeftMargin
Pagination through getPagination and setPagination
RightMargin through getRightMargin and setRightMargin
SpacingAbove through getSpacingAbove and setSpacingAbove
SpacingBelow through getSpacingBelow and setSpacingBelow
Tabs through getTabs
Methods
clearAllTabs
setTab
setTabs
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
Document doc = db.createDocument();
Item subject = doc.replaceItemValue
("Subject", "Rich text paragraph style");
RichTextItem body = doc.createRichTextItem("Body");
RichTextParagraphStyle h = headerStyle(session);
RichTextParagraphStyle b = bodyStyle(session);
body.appendParagraphStyle(h);
body.appendText("Header");
body.appendParagraphStyle(b);
for (int i=0; i<16; i++)
body.appendText("Line one of body. ");
body.addNewLine();
for (int i=0; i<16; i++)
body.appendText("Line two of body. ");
// Save the document
doc.save(true, true);
} catch(Exception e) {
e.printStackTrace();
}
}
RichTextParagraphStyle headerStyle(Session s) {
RichTextParagraphStyle r=null;
try {
r = s.createRichTextParagraphStyle();
r.setAlignment(RichTextParagraphStyle.ALIGN_CENTER);
r.setPagination
(RichTextParagraphStyle.PAGINATE_KEEP_WITH_NEXT);
r.setSpacingAbove
(RichTextParagraphStyle.SPACING_SINGLE);
r.setSpacingBelow(
RichTextParagraphStyle.SPACING_DOUBLE);
} catch(Exception e) {
e.printStackTrace();
}
return r;
}
RichTextParagraphStyle bodyStyle(Session s) {
RichTextParagraphStyle r=null;
try {
r = s.createRichTextParagraphStyle();
r.setAlignment(RichTextParagraphStyle.ALIGN_LEFT);
r.setSpacingAbove(RichTextParagraphStyle.SPACING_SINGLE);
r.setSpacingBelow
(RichTextParagraphStyle.SPACING_ONE_POINT_50);
r.setInterLineSpacing(RichTextParagraphStyle.SPACING_SINGLE);
r.setLeftMargin(RichTextParagraphStyle.RULER_ONE_INCH);
r.setFirstLineLeftMargin
((int)(RichTextParagraphStyle.RULER_ONE_INCH * 1.5));
r.setRightMargin(0);
} catch(Exception e) {
e.printStackTrace();
}
return r;
}
}
Alignment property
Read-write. Horizontal alignment of text in each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getAlignment()
throws NotesException
public void setAlignment(int value)
throws NotesException
Legal values
RichTextParagraphStyle.ALIGN_CENTER
RichTextParagraphStyle.ALIGN_FULL
RichTextParagraphStyle.ALIGN_LEFT
RichTextParagraphStyle.ALIGN_NOWRAP
RichTextParagraphStyle.ALIGN_RIGHT
FirstLineLeftMargin property
Read-write. Left margin of first line of each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getFirstLineLeftMargin()
throws NotesException
public void setFirstLineLeftMargin(int value)
throws NotesException
Legal values
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
Usage
You can apply arithmetic to the constants to obtain other measurements.
For example, RULER_ONE_CENTIMETER * 2 for two centimeters or
(int)(RULER_ONE_INCH * 0.75) for three-quarters of an inch. The actual
int value is in “twips,” where one centimeter is 537 twips and one inch is
1440 twips.
InterLineSpacing property
Read-write. Vertical spacing between lines in each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getInterLineSpacing()
throws NotesException
public void setInterLineSpacing(int value)
throws NotesException
Legal values
RichTextParagraphStyle.SPACING_DOUBLE
RichTextParagraphStyle.SPACING_ONE_POINT_50
RichTextParagraphStyle.SPACING_SINGLE
LeftMargin property
Read-write. Left margin of each line except the first in each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getLeftMargin()
throws NotesException
public void setLeftMargin(int value)
throws NotesException
Legal values
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
Usage
You can apply arithmetic to the constants to obtain other measurements.
For example, RULER_ONE_CENTIMETER * 2 for two centimeters or
(int)(RULER_ONE_INCH * 0.75) for three-quarters of an inch. The actual
int value is in “twips,” where one centimeter is 537 twips and one inch is
1440 twips.
Pagination property
Read-write. How page breaks affect each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getPagination()
throws NotesException
public void setPagination(int value)
throws NotesException
Legal values
RichTextParagraphStyle.PAGINATE_BEFORE
RichTextParagraphStyle.PAGINATE_DEFAULT
RichTextParagraphStyle.PAGINATE_KEEP_TOGETHER
RichTextParagraphStyle.PAGINATE_KEEP_WITH_NEXT
RightMargin property
Read-write. Right margin of each line in each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getRightMargin()
throws NotesException
public void setRightMargin(int value)
throws NotesException
Legal values
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
Usage
You can apply arithmetic to the constants to obtain other measurements.
For example, RULER_ONE_CENTIMETER * 2 for two centimeters or
(int)(RULER_ONE_INCH * 0.75) for three-quarters of an inch. The actual
int value is in “twips,” where one centimeter is 537 twips and one inch is
1440 twips.
SpacingAbove property
Read-write. Vertical spacing above each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getSpacingAbove()
throws NotesException
public void setSpacingAbove(int value)
throws NotesException
Legal values
RichTextParagraphStyle.SPACING_DOUBLE
RichTextParagraphStyle.SPACING_ONE_POINT_50
RichTextParagraphStyle.SPACING_SINGLE
SpacingBelow property
Read-write. Vertical spacing below each paragraph.
Defined in
RichTextParagraphStyle
Data type
int
Syntax
public int getSpacingBelow()
throws NotesException
public void setSpacingBelow(int value)
throws NotesException
Legal values
RichTextParagraphStyle.SPACING_DOUBLE
RichTextParagraphStyle.SPACING_ONE_POINT_50
RichTextParagraphStyle.SPACING_SINGLE
Tabs property
Read-only. Tabs in a rich-text paragraph style.
Defined in
RichTextParagraphStyle
Data type
java.util.Vector; elements are RichTextTab
Syntax
public java.util.Vector getTabs()
throws NotesException
Return value
java.util.Vector
Usage
See RichTextTab for additional information and an example.
clearAllTabs method
Clears all tabs in a rich-text paragraph style.
Defined in
RichTextParagraphStyle
Syntax
public void clearAllTabs()
throws NotesException
Usage
See RichTextTab for additional information and an example.
setTab method
Sets a tab in a rich-text paragraph style.
Defined in
RichTextParagraphStyle
Syntax
public void setTab(int position, int type)
throws NotesException
Parameters
int position
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
int type
RichTextParagraphStyle.TAB_CENTER
RichTextParagraphStyle.TAB_DECIMAL
RichTextParagraphStyle.TAB_LEFT
RichTextParagraphStyle.TAB_RIGHT
Usage
See RichTextTab for additional information and an example.
You can apply arithmetic to the position constants to obtain other
measurements. For example, RULER_ONE_CENTIMETER * 2 for two
centimeters or (int)(RULER_ONE_INCH * 0.75) for three-quarters of an
inch. The actual int value is in “twips,” where one centimeter is 537 twips
and one inch is 1440 twips.
setTabs method
Sets tabs at even intervals in a rich-text paragraph style.
Defined in
RichTextParagraphStyle
Syntax
public void setTabs(int count, int startpos, int interval)
throws NotesException
public void setTabs(int count, int startpos, int interval, int type)
throws NotesException
Parameters
int count
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
int interval
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
int type
RichTextParagraphStyle.TAB_CENTER
RichTextParagraphStyle.TAB_DECIMAL
RichTextParagraphStyle.TAB_LEFT
RichTextParagraphStyle.TAB_RIGHT
Usage
See RichTextTab for additional information and an example.
You can apply arithmetic to the position and interval constants to obtain
other measurements. For example, RULER_ONE_CENTIMETER * 2 for two
centimeters or (int)(RULER_ONE_INCH * 0.75) for three-quarters of an
inch. The actual int value is in “twips,” where one centimeter is 537 twips
and one inch is 1440 twips.
RichTextStyle class
Represents rich text attributes.
Syntax
public class RichTextStyle extends Base
Containment
Contained by: Session and RichTextItem
Properties
Bold through getBold and setBold
Color through getColor and setColor
Effects through getEffects and setEffects
Font through getFont and setFont
FontSize through getFontSize and setFontSize
Italic through getItalic and setItalic
Parent through getParent
PassThruHTML through getPassThruHTML and setPassThruHTML
StrikeThrough through getStrikeThrough and setStrikeThrough
Underline through getUnderline and setUnderline
Bold property
Read-write. Bold rich-text attribute.
Defined in
RichTextStyle
Data type
int
Syntax
public int getBold()
throws NotesException
public void setBold(int value)
throws NotesException
Legal values
RichTextStyle.YES for bold
RichTextStyle.NO for non-bold
RichTextStyle.STYLE_NO_CHANGE to maintain previous state
RichTextStyle.MAYBE to maintain previous state
Color property
Read-write. Color rich-text attribute as listed below.
Defined in
RichTextStyle
Data type
int
Syntax
public int getColor()
throws NotesException
public void setColor(int value)
throws NotesException
Legal values
RichTextStyle.COLOR_BLACK
RichTextStyle.COLOR_BLUE
RichTextStyle.COLOR_CYAN
RichTextStyle.COLOR_DARK_BLUE
RichTextStyle.COLOR_DARK_CYAN
RichTextStyle.COLOR_DARK_GREEN
RichTextStyle.COLOR_DARK_MAGENTA
RichTextStyle.COLOR_DARK_RED
RichTextStyle.COLOR_DARK_YELLOW
RichTextStyle.COLOR_GRAY
RichTextStyle.COLOR_GREEN
RichTextStyle.COLOR_LIGHT_GRAY
RichTextStyle.COLOR_MAGENTA
RichTextStyle.COLOR_RED
RichTextStyle.COLOR_WHITE
RichTextStyle.COLOR_YELLOW
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
Effects property
Read-write. Effects as listed below.
Defined in
RichTextStyle
Data type
int
Syntax
public int getEffects()
throws NotesException
public void setEffects(int value)
throws NotesException
Legal values
RichTextStyle.EFFECTS_EMBOSS
RichTextStyle.EFFECTS_EXTRUDE
RichTextStyle.EFFECTS_NONE
RichTextStyle.EFFECTS_SHADOW
RichTextStyle.EFFECTS_SUBSCRIPT
RichTextStyle.EFFECTS_SUPERSCRIPT
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
Font property
Read-write. Font rich-text attribute as listed below.
Defined in
RichTextStyle
Data type
int
Syntax
public int getFont()
throws NotesException
public void setFont(int value)
throws NotesException
Legal values
RichTextStyle.FONT_COURIER
RichTextStyle.FONT_HELV
RichTextStyle.FONT_ROMAN
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
FontSize property
Read-write. Font size in points.
Defined in
RichTextStyle
Data type
int
Syntax
public int getFontSize()
throws NotesException
public void setFontSize(int value)
throws NotesException
Legal values
An integer value in the range 1-250 representing a font size
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
Italic property
Read-write. Italic rich-text attribute.
Defined in
RichTextStyle
Data type
int
Syntax
public int getItalic()
throws NotesException
public void setItalic(int value)
throws NotesException
Legal values
RichTextStyle.YES for italic
RichTextStyle.NO for non-italic
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
Parent property
Read-only. The session that contains a RichTextStyle object.
Defined in
RichTextStyle
Data type
Session
Syntax
public Session getParent()
throws NotesException
StrikeThrough property
Read-write. Strikethrough rich-text attribute.
Defined in
RichTextStyle
Data type
int
Syntax
public int getStrikeThrough()
throws NotesException
public void setStrikeThrough(int value)
throws NotesException
Legal values
RichTextStyle.YES for strikethrough
RichTextStyle.NO for non-strikethrough
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
Underline property
Read-write. Underline rich-text attribute.
Defined in
RichTextStyle
Data type
int
Syntax
public int getUnderline()
throws NotesException
public void setUnderline(int value)
throws NotesException
Legal values
RichTextStyle.YES for underline
RichTextStyle.NO for non-underline
RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
RichTextStyle.MAYBE to maintain previous state
RichTextTab class
Represents a tab in a rich text paragraph style.
Syntax
public class RichTextTab extends Base
Containment
Contained by: RichTextParagraphStyle
Properties
Position through getPosition
Type through getType
Methods
clear
body.addTab();
body.appendText("Column 2");
body.addTab();
body.appendText("Column 3");
body.addTab();
body.appendText("Column 4");
// Append para style b2 and write para
body.appendParagraphStyle(b2);
body.appendText("Column 1");
body.addTab();
body.appendText("Column 2");
body.addTab();
body.appendText("Column 3");
// Save the document
doc.save(true, true);
} catch(Exception e) {
e.printStackTrace();
}
}
}
Position property
Read-only. Position of a tab in a rich text paragraph style.
Defined in
RichTextTab
Data type
int
Syntax
public int getPosition()
throws NotesException
Legal values
RichTextParagraphStyle.RULER_ONE_CENTIMETER
RichTextParagraphStyle.RULER_ONE_INCH
Usage
You can apply arithmetic to the constants to obtain other measurements.
For example, RULER_ONE_CENTIMETER * 2 for two centimeters or
(int)(RULER_ONE_INCH * 0.75) for three-quarters of an inch.
The returned int value is in “twips,” where one centimeter is 537 twips and
one inch is 1440 twips.
Type property
Read-only. Type of tab.
Defined in
RichTextTab
Data type
int
Syntax
public int getType()
throws NotesException
Legal values
RichTextParagraphStyle.TAB_CENTER
RichTextParagraphStyle.TAB_DECIMAL
RichTextParagraphStyle.TAB_LEFT
RichTextParagraphStyle.TAB_RIGHT
clear method
Clears a tab.
Defined in
RichTextTab
Syntax
public void clear()
throws NotesException
Session class
Is the root of the Domino Objects containment hierarchy, providing access
to the other Domino objects, and represents the Domino environment of the
current program.
Syntax
public class Session extends Base
throws NotesException
Containment
Contained by: AgentBase, NotesFactory
Contains: AgentContext, Database, DateRange, DateTime, DbDirectory,
International, Log, Name, Newsletter, Registration,
RichTextParagraphStyle, RichTextStyle
Properties
AddressBooks through getAddressBooks
AgentContext through getAgentContext
CommonUserName through getCommonUserName
International through getInternational
IsOnServer through isOnServer
NotesVersion through getNotesVersion
Platform through getPlatform
ServerName through getServerName
UserName through getUserName
UserNameList through getUserNameList
UserNameObject through getUserNameObject
Methods
createDateRange
createDateTime
createLog
createName
createNewsletter
createRegistration
createRichTextParagraphStyle
createRichTextStyle
evaluate
freeTimeSearch
getDatabase
getDbDirectory
getEnvironmentString
getEnvironmentValue
getURLDatabase
resolve
setEnvironmentVar
Usage
For a local session, the Session object represents the machine on which the
code is running. A reference to the current server such as a null server
parameter means the local Notes/Domino environment. You can access
servers connected to the local environment by specifying their names.
For a remote (IIOP) session, the Session object represents the Domino server
handling the remote requests. A reference to the current server such as a
null server parameter means that Domino server. You cannot access other
servers.
(String)s.getCommonUserName());
System.out.println("Domino " +
(String)s.getNotesVersion() + " running on " +
(String)s.getPlatform());
System.out.println("***Address books***");
Database db;
Vector books = s.getAddressBooks();
Enumeration e = books.elements();
while (e.hasMoreElements()) {
db = (Database)e.nextElement();
String fn = db.getFileName();
String server;
if (db.getServer() != null)
server = db.getServer();
else
server = "Local";
String title = db.getTitle();
System.out.println(server + " " + fn + " \"" +
title + "\"");
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
AddressBooks property
Read-only. The Domino Directories and Personal Address Books that are
known to the current session.
Defined in
Session
Data type
java.util.Vector; elements are Database
Syntax
public java.util.Vector getAddressBooks()
throws NotesException
Usage
To find out if an address book is a Domino Directory or a Personal Address
Book, use isPublicAddressBook and isPrivateAddressBook of Database.
catch (Exception e)
{
e.printStackTrace();
}
}
}
AgentContext property
Read-only. Represents the agent environment of the current program, if an
agent is running it.
Note This property is illegal for remote (IIOP) calls.
Defined in
Session
Data type
AgentContext
Syntax
public AgentContext getAgentContext()
throws NotesException
Usage
If the current program is not running from an agent, this property
returns null.
See the AgentContext class for descriptions and examples.
CommonUserName property
Read-only. The common name of the user that created the session.
Defined in
Session
Data type
String
Syntax
public String getCommonUserName()
throws NotesException
Usage
If the user name is flat (non-hierarchical), CommonUserName is the same
as UserName.
International property
Read-only. The international (regional) settings for the session’s operating
environment.
Defined in
Session
Data type
International
Syntax
public International getInternational()
throws NotesException
Usage
See the International class for descriptions and examples.
IsOnServer property
Read-only. Indicates if the session is running on a server.
Defined in
Session
Data type
boolean
Syntax
public boolean isOnServer()
throws NotesException
Legal values
true if the program is running on a server
false if the program is running on a workstation
Usage
A remote (IIOP) session always runs on a server.
A local session is running on a server if it is an agent in a server-based
database, and the agent has one of the following triggers:
When new mail arrives
When documents have been created or modified
When documents have been pasted
On schedule hourly, daily, weekly, or monthly
All other programs run on a workstation.
String ms = session.getEnvironmentString("MailServer",
true);
db = session.getDatabase(ms, "names.nsf"); }
else {
db = session.getDatabase(null, "names.nsf"); }
System.out.println("Title of names.nsf: \""
+ db.getTitle() + "\"");
} catch(Exception e) {
e.printStackTrace();
}
}
}
NotesVersion property
Read-only. The release of Domino the session is running on.
Defined in
Session
Data type
String
Syntax
public String getNotesVersion()
throws NotesException
catch (Exception e)
{
e.printStackTrace();
}
}
}
Platform property
Read-only. The name of the platform the session is running on.
Defined in
Session
Data type
String
Syntax
public String getPlatform()
throws NotesException
Legal Values
“Macintosh” Macintosh
“MS-DOS” MS-DOS
“Netware” NetWare
“OS/2v1” OS/2® 16-bit
“OS/2v2” OS/2 32-bit
“Windows/16” Windows 16-bit
“Windows/32” Windows 32-bit
“UNIX” UNIX (Sun, SCO, HP-UX, AIX®)
ServerName property
Read-only. The full name of the server that the session is running on.
Defined in
Session
Data type
String
Syntax
public String getServerName()
throws NotesException
Usage
If the server name is hierarchical, this property returns the fully
distinguished name.
This property is null if the session is not running on a server.
} catch(Exception e) {
e.printStackTrace();
}
}
}
UserName property
Read-only. The full name of the user or server that created the session.
Defined in
Session
Data type
String
Syntax
public String getUserName()
throws NotesException
Usage
If the user name is hierarchical, this property returns the fully distinguished
name. To get only the common name, use the CommonUserName property.
UserNameList property
Read-only. The name of the user or server that created the session, and the
alternate name if it exists.
Defined in
Session
Data type
java.util.Vector; elements are Name
Syntax
public java.util.Vector getUserNameList()
throws NotesException
Usage
If the user does not have an alternate name, getUserNameList returns a
vector of one element containing the user name. If the user does have an
alternate name, getUserNameList returns a vector of two elements
containing the user name and the alternate user name.
UserNameObject property
Read-only. The name, in the form of a Name object, of the user or server
that created the session.
Defined in
Session
Data type
Name
Syntax
public Name getUserNameObject()
throws NotesException
createDateRange method
Creates a new DateRange object.
Defined in
Session
Syntax
public DateRange createDateRange()
throws NotesException
public DateRange createDateRange(DateTime startt, DateTime endt)
throws NotesException
public DateRange createDateRange(java.util.Date startt,
java.util.Date endt)
throws NotesException
Parameters
DateTime startt
Return value
DateRange
Usage
See the DateRange class for descriptions and examples.
createDateTime method
Creates a DateTime object that represents a specified date and time.
Defined in
Session
Syntax
public DateTime createDateTime(String date)
throws NotesException
public DateTime createDateTime(java.util.Date date)
throws NotesException
Parameters
String date
The date and time you want the object to represent. See DateTime for
formats. An invalid date-time or empty string results in an “Invalid
date” exception.
java.util.Date date
The date and time you want the object to represent using a
java.util.Date object.
Return value
DateTime
Usage
See DateTime for descriptions and examples.
createLog method
Creates a new Log object with the name you specify.
Defined in
Session
Syntax
public Log createLog(String name)
throws NotesException
Parameter
String name
Return value
Log
Usage
See the Log class for descriptions and examples.
createName method
Creates a new Name object.
Defined in
Session
Syntax
public Name createName(String name)
throws NotesException
public Name createName(String name, String lang)
throws NotesException
Parameters
String name
A language associated with the user name. For primary user names, the
language should be null. For alternate user names, a language can be
specified. See the Language property in Name.
Return value
Name
Usage
See the Name class for descriptions and examples.
createNewsletter method
Given a DocumentCollection containing the documents you want, creates a
new Newsletter.
Defined in
Session
Syntax
public Newsletter createNewsletter(DocumentCollection collection)
throws NotesException
Parameter
DocumentCollection collection
The documents that you want included in the newsletter. Can be null.
Return value
Newsletter
Usage
See the Newsletter for descriptions and examples.
createRegistration method
Creates a new Registration object.
Note This property is illegal for remote (IIOP) calls.
Defined in
Session
Syntax
public Registration createRegistration()
throws NotesException
Return value
Registration
Usage
See the Registration class for descriptions and examples.
createRichTextParagraphStyle method
Creates a new RichTextParagraphStyle object.
Defined in
Session
Syntax
public RichTextParagraphStyle createRichTextParagraphStyle()
throws NotesException
Return value
RichTextParagraphStyle
Usage
See the RichTextParagraphStyle class for descriptions and examples.
createRichTextStyle method
Creates a new RichTextStyle object.
Defined in
Session
Syntax
public RichTextStyle createRichTextStyle()
throws NotesException
Return value
RichTextStyle
Usage
See the RichTextStyle class for descriptions and examples.
evaluate method
Evaluates a Domino formula.
Defined in
Session
Syntax
public java.util.Vector evaluate(String formula)
throws NotesException
public java.util.Vector evaluate(String formula, Document doc)
throws NotesException
Parameters
String formula
The formula.
Document doc
Return value
java.util.Vector
Usage
If the formula contains the name of a field, you must use the 2-parameter
method. The formula takes the field from the document specified as
parameter 2.
@Functions that affect the user interface do not work in evaluate. These
include: @Command, @DbManager, @DbName, @DbTitle, @DDEExecute,
@DDEInitiate, @DDEPoke, @DDETerminate, @DialogBox, @PickList,
@PostedCommand, @Prompt, and @ViewTitle.
You cannot change a document with evaluate; you can only get a result. To
change a document, write the result to the document with a method such as
Document.replaceItemValue.
2. This agent applies the @Sum @function to the Amount field (which
allows multiple values) in each document and prints the result.
import lotus.domino.*;
import java.util.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
DocumentCollection dc = db.getAllDocuments();
Document doc;
System.out.println("Count = " + dc.getCount());
for (int j=0; j<dc.getCount(); j++)
{
doc = dc.getNthDocument(j+1);
Vector v = session.evaluate("@Sum(Amount)", doc);
System.out.println(v.firstElement() + " " +
doc.getItemValue("Subject"));
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
freeTimeSearch method
Searches for free time slots for calendaring and scheduling.
Defined in
Session
Syntax
public java.util.Vector freeTimeSearch(DateRange window, int
duration, Object names, boolean firstfit)
throws NotesException
Parameters
DateRange window
Starting and ending times within which to search for a match. Cannot
be null.
int duration
True if you just want the first matching date range. False if you want all
matching times.
Return value
java.util.Vector
getDatabase method
Creates a Database object that represents the database located at the server
and file name you specify, and opens the database, if possible.
Defined in
Session
Syntax
public Database getDatabase(String server, String db)
throws NotesException
public Database getDatabase(String server, String db, boolean
createonfail)
throws NotesException
Parameters
String server
The name of the server on which the database resides. Use null to
indicate the session’s environment. Must be null for remote (IIOP)
operations.
String db
The file name and location of the database within the Domino data
directory. Use a full path name if the database is not within the Domino
data directory.
boolean createonfail
Return value
Database
A Database object that can be used to access the database you have
specified.
Usage
See the Database class for descriptions and examples.
getDbDirectory method
Creates a new DbDirectory object using the name of the server you want to
access.
Defined in
Session
Syntax
public DbDirectory getDbDirectory(String server)
throws NotesException
Parameter
String server
The name of the server with database files you want to navigate. Use
null to indicate the session’s environment. Must be null for remote
(IIOP) operations.
Return value
DbDirectory
Usage
See the DbDirectory class for descriptions and examples.
getEnvironmentString method
Given the name of a string or numeric environment variable, retrieves its
value.
Defined in
Session
Syntax
public String getEnvironmentString(String vname)
throws NotesException
public String getEnvironmentString(String vname, boolean issystem)
throws NotesException
Parameters
String vname
If true, the method uses the exact name of the environment variable. If
false or omitted, the method prepends “$” to the name before retrieving
its value.
Return value
String
Usage
This method retrieves the environment variable from the notes.ini file for
the current session.
else
System.out.println("MailServer = " + ms);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
getEnvironmentValue method
Given the name of a numeric environment variable, retrieves its value.
Defined in
Session
Syntax
public Object getEnvironmentValue(String vname)
throws NotesException
public Object getEnvironmentValue(String vname, boolean issystem)
throws NotesException
Parameter
String vname
If true, the method uses the exact name of the environment variable. If
false or omitted, the method prepends “$” to the name before retrieving
its value.
Return value
Object
Usage
This method retrieves the environment variable from the notes.ini file for
the current session.
Do not use this method for string values.
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
getURLDatabase method
Finds and opens the default Web Navigator database.
Defined in
Session
Syntax
public Database getURLDatabase()
throws NotesException
Return value
Database
e.printStackTrace();
}
}
}
resolve method
Returns the Domino object that a URL addresses.
Defined in
Session
Syntax
public Base resolve(String url)
throws NotesException
Parameters
String url
Return value
Base
A Database, View, Form, Document, or Agent object. You must cast the
return value to the expected type.
setEnvironmentVar method
Sets the value of a string or numeric environment variable.
Defined in
Session
Syntax
public void setEnvironmentVar(String vname, Object value)
throws NotesException
public void setEnvironmentVar(String vname, Object value, boolean
issystem)
throws NotesException
Parameters
String vname
Object value
Usage
If an environment variable called vname already exists, it is assigned the
new value. Otherwise, a new environment variable is added to the notes.ini
(or Notes Preferences) file.
SetEnvironmentVar prepends a dollar sign character (“$”) to the name
before setting the value of the environment variable, unless you specify
issystem as false or have already included a “$” as the first character of the
name. When you examine the environment variable in the notes.ini (or
Notes Preferences) file, you see the “$” character. When retrieving
environment variables with the getEnvironmentString or
getEnvironmentValue methods, you have the option of including or
omitting the “$” from the variable name.
The environment variable is set in the notes.ini file for the current session.
View class
Represents a view or folder of a database and provides access to
documents within it.
Syntax
public class View extends Base
Containment
Contained by: Database
Contains: Document, DateTime, ViewColumn, ViewEntry,
ViewEntryCollection, ViewNavigator
Properties
Aliases through getAliases
AllEntries through getAllEntries
BackgroundColor through getBackgroundColor
Methods
clear
createViewNav
createViewNavFrom
createViewNavFromCategory
createViewNavFromChildren
createViewNavFromDescendants
createViewNavMaxLevel
FTSearch
getAllDocumentsByKey
getAllEntriesByKey
getChild
getColumn
getDocumentByKey
getEntryByKey
getFirstDocument
getLastDocument
getNextDocument
getNextSibling
getNthDocument
getParentDocument
getPrevDocument
getPrevSibling
refresh
remove
Access
You access a view or folder through the Database object that contains it.
There are two ways:
To access a view or folder when you know its name or alias, use
getView.
To access all the views and folders in a database, use getViews.
Returned is a View object or a vector of View objects that represent public
views and/or folders in the database. If a program runs on a workstation,
the View objects may also represent personal views and folders.
To access a view or folder when you have a view entry, use getParent in
ViewEntry.
Usage
A View object provides access to ViewEntry, ViewEntryCollection, and
ViewNavigator objects:
A ViewEntry object represents a row in the view and can be a
document, category, or total. A document entry provides a handle to
the associated Document object.
A ViewEntryCollection object provides access to selected or all
document ViewEntry objects. (Excluded are category and total
ViewEntry objects.)
A ViewNavigator object provides methods for navigating through
selected or all ViewEntry and Document objects.
A View object provides access to ViewColumn objects, which contain
information on each column in the view.
2. This agent finds the “($All)” hidden view in a database and gets the
first document in the view.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = session.getDatabase
("FrenchFry", "NotesUA\\progwork");
View view = db.getView("($All)");
Document doc = view.getFirstDocument();
System.out.println
(doc.getItemValueString("Subject"));
} catch(Exception e) {
e.printStackTrace();
}
}
}
3. This agent finds the default view in a database.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = session.getDatabase
("FrenchFry", "NotesUA\\progwork");
Vector views = db.getViews();
View view = null;
for (int i=0; i<views.size(); i++) {
view = (View)views.elementAt(i);
if (view.isDefaultView()) break; }
System.out.println
(view.getName() + " is the default view");
} catch(Exception e) {
e.printStackTrace();
}
}
}
Aliases property
Read-only. The aliases of a view.
Defined in
View
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getAliases()
throws NotesException
Usage
This property does not return the name of the view. Use getName to return
the name.
Old-style aliases that are in the name field, separated from the name by
vertical bars, are returned as part of the name.
System.out.println
("\t" + aliases.elementAt(j)); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
AllEntries property
Read-only. The document entries in a view in view order.
Defined in
View
Data type
ViewEntryCollection
Syntax
public ViewEntryCollection getAllEntries()
throws NotesException
Usage
A view entry collection contains only document entries (no categories or
totals).
If a view is filtered by FTSearch, this property returns the entries in the
filtered view.
} catch(Exception e) {
e.printStackTrace();
}
}
}
BackgroundColor property
Read-only. The background color of a view.
Defined in
View
Data type
int
Syntax
public int getBackgroundColor()
throws NotesException
Legal values
RichTextStyle.COLOR_BLACK
RichTextStyle.COLOR_WHITE
RichTextStyle.COLOR_RED
RichTextStyle.COLOR_GREEN
RichTextStyle.COLOR_BLUE
RichTextStyle.COLOR_MAGENTA
RichTextStyle.COLOR_YELLOW
RichTextStyle.COLOR_CYAN
RichTextStyle.COLOR_DARK_RED
RichTextStyle.COLOR_DARK_GREEN
RichTextStyle.COLOR_DARK_BLUE
RichTextStyle.COLOR_DARK_MAGENTA
RichTextStyle.COLOR_DARK_YELLOW
RichTextStyle.COLOR_DARK_CYAN
RichTextStyle.COLOR_GRAY
RichTextStyle.COLOR_LIGHT_GRAY
ColumnCount property
Read-only. The number of columns in a view.
Defined in
View
Data type
int
Syntax
public int getColumnCount()
throws NotesException
ColumnNames property
Read-only. The names of the columns in a view.
Defined in
View
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getColumnNames()
throws NotesException
Usage
The order of the column names in the vector corresponds to the order of the
columns in the view, from left to right.
Columns property
Read-only. The columns in a view.
Defined in
View
Data type
java.util.Vector; elements are ViewColumn
Syntax
public java.util.Vector getColumns()
throws NotesException
Usage
The order of ViewColumn objects in the vector corresponds to the order of
the columns in the view, from left to right.
Created property
Read-only. The date and time when a view was created.
Defined in
View
Data type
DateTime
Syntax
public DateTime getCreated()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
HeaderLines property
Read-only. The number of lines in the header of a view.
Defined in
View
Data type
int
Syntax
public int getHeaderLines()
throws NotesException
("\tTopLevelEntryCount = " +
view.getTopLevelEntryCount());
System.out.println
("\tIsHierarchical = " + view.isHierarchical());
}
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsAutoUpdate property
Read-write. Indicates whether the View object is updated before a
navigation operation if the view has changed since being opened or
refreshed.
Defined in
View
Data type
boolean
Syntax
public boolean isAutoUpdate()
throws NotesException
public void setAutoUpdate(boolean flag)
throws NotesException
Legal values
true if the view is automatically updated (default for local operations)
false if the view is not automatically updated (default for remote IIOP
operations)
Usage
If this value is false, the View object is not updated unless you call refresh.
You may want to set this value to false to save time.
If this value is true for remote (IIOP) operations, caching is turned off.
IsCalendar property
Read-only. Indicates whether a view is a calendar view.
Defined in
View
Data type
boolean
Syntax
public boolean isCalendar()
throws NotesException
Legal values
true if the view is a calendar view
false if the view is not a calendar view
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
Vector views = db.getViews();
for (int i=0; i<views.size(); i++) {
View view = (View)views.elementAt(i);
String cal = null;
if (view.isCalendar()) {
cal = "calendar view";
if (view.isConflict())
cal = cal + " with conflict checking";
else
cal = cal + " without conflict checking"; }
else
cal = "standard outline view";
System.out.println
(view.getName() + " is a " + cal); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsCategorized property
Read-only. Indicates whether a view is categorized.
Defined in
View
Data type
boolean
Syntax
public boolean isCategorized()
throws NotesException
Legal values
true if the view is categorized
false if the view is not categorized
IsConflict property
Read-only. Indicates whether a view is enabled for conflict checking.
Defined in
View
Data type
boolean
Syntax
public boolean isConflict()
throws NotesException
Legal values
true if the view is enabled for conflict checking
false if the view is not enabled for conflict checking
IsDefaultView property
Read-only. Indicates whether a view is the default view of the database.
Defined in
View
Data type
boolean
Syntax
public boolean isDefaultView()
throws NotesException
Legal values
true if the view is the default view
false if the view is not the default view
IsFolder property
Read-only. Indicates whether a View object represents a folder.
Defined in
View
Data type
boolean
Syntax
public boolean isFolder()
throws NotesException
Legal values
true if the View object represents a folder
false if the View object represents a view
IsHierarchical property
Read-only. Indicates whether a view shows response documents in a
hierarchy.
Defined in
View
Data type
boolean
Syntax
public boolean isHierarchical()
throws NotesException
Legal values
true if the view is hierarchical
false if the view is not hierarchical
IsModified property
Read-only. Indicates whether a view is modified.
Defined in
View
Data type
boolean
Syntax
public boolean isModified()
throws NotesException
Legal values
true if the view is modified
false if the view is not modified
IsPrivate property
Read-only. Indicates whether a view is private or private on first use.
Defined in
View
Data type
boolean
Syntax
public boolean isPrivate()
throws NotesException
Legal values
true if the view is private
false if the view is shared
System.out.println("View is shared");
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
IsProtectReaders property
Read-write. Protects $Readers items from being overwritten by replication.
Defined in
View class
Data type
boolean
Syntax
public boolean isProtectReaders()
throws NotesException
public void setProtectReaders(boolean flag)
throws NotesException
Legal values
true if $Readers items are protected
false if $Readers items are not protected
System.out.println
("Protect readers is set"); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
LastModified property
Read-only. The date that a view was last modified.
Defined in
View
Data type
DateTime
Syntax
public DateTime getLastModified()
throws NotesException
Name property
Read-only. The name of a view.
Defined in
View
Data type
String
Syntax
public String getName()
throws NotesException
Usage
Use getAliases to get the aliases.
Old-style aliases that are in the name field, separated from the name by
vertical bars, are returned as part of the name.
Parent property
Read-only. The database to which a view belongs.
Defined in
View
Data type
Database
Syntax
public Database getParent()
throws NotesException
Readers property
Read-write. The contents of the $Readers field associated with the view.
Defined in
View class
Data type
java.util.Vector; elements are String
Syntax
public java.util.Vector getReaders()
throws NotesException
public void setReaders(java.util.Vector reader)
throws NotesException
Usage
Setting this property replaces prior values.
Set the property to null to remove all reader restrictions.
RowLines property
Read-only. The number of lines in each row of a view.
Defined in
View
Data type
int
Syntax
public int getRowLines()
throws NotesException
Spacing property
Read-only. The spacing between rows of a view.
Defined in
View
Data type
int
Syntax
public int getSpacing()
throws NotesException
Legal values
View.SPACING_DOUBLE
View.SPACING_ONE_POINT_25
View.SPACING_ONE_POINT_50
View.SPACING_ONE_POINT_75
View.SPACING_SINGLE
TopLevelEntryCount property
Read-only. The number of top-level entries in a view.
Defined in
View
Data type
int
Syntax
public int getTopLevelEntryCount()
throws NotesException
Usage
If the view is categorized, this count is the number of main categories.
If the view has totals, this count includes the grand total.
UniversalID property
Read-only. The universal ID of a view, which is a 32-character hexadecimal
value that uniquely identifies a view across all replicas of a database.
Defined in
View
Data type
String
Syntax
public String getUniversalID()
throws NotesException
Usage
A typical universal ID looks like this:
FF864D9ACB6E2210752561BC005867C6.
clear method
Clears the full-text search filtering on a view.
Defined in
View
Syntax
public void clear()
throws NotesException
Usage
Subsequent calls to getDocument methods get all documents in the view,
not just the search results.
createViewNav method
Creates a view navigator for all entries in a view.
Defined in
View
Syntax
public ViewNavigator createViewNav()
throws NotesException
public ViewNavigator createViewNav(int cacheSize)
throws NotesException
Parameters
int cacheSize
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The navigator contains all entries even if the view is filtered for a full-text
search. Use a ViewEntryCollection object to navigate a view filtered by a
full-text search.
An empty view results in an empty navigator. All navigation methods
return null.
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
createViewNavFrom method
Creates a view navigator for all entries in a view starting at a
specified entry.
Defined in
View
Syntax
public ViewNavigator createViewNavFrom(Object entry)
throws NotesException
public ViewNavigator createViewNavFrom(Object entry, int cacheSize)
throws NotesException
Parameters
Object entry
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The first entry in the navigator is the specified entry. The remaining entries
are all the entries in the view that follow the first entry.
If the object is not found, the result is an empty navigator. All navigation
methods return null.
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
createViewNavFromCategory method
Creates a view navigator for all entries in a view under a specified category.
Defined in
View
Syntax
public ViewNavigator createViewNavFromCategory(String categoryName)
throws NotesException
public ViewNavigator createViewNavFromCategory(String categoryName,
int cacheSize)
throws NotesException
Parameters
String categoryName
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The entries in the navigator are all the entries in the view under the
specified category. The category entry itself is excluded.
If the category does not exist, the result is an empty navigator. All
navigation methods return null.
Subcategories can be specified using backslash notation (don’t forget to
escape the backslashes), for example, “Asia\\Korea” means the
subcategory “Korea” under the main category “Asia.”
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
createViewNavFromChildren method
Creates a view navigator for the immediate children of a specified entry.
Defined in
View
Syntax
public ViewNavigator createViewNavFromChildren(Object entry)
throws NotesException
public ViewNavigator createViewNavFromChildren(Object entry, int
cacheSize)
throws NotesException
Parameters
Object entry
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The entries in the navigator are all the entries in the view that fall
hierarchically at the next level under the specified entry. The parent entry
itself is excluded.
If the entry has no children, the result is an empty navigator. All navigation
methods return null.
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
createViewNavFromDescendants method
Creates a view navigator for all the descendants of a specified entry.
Defined in
View
Syntax
public ViewNavigator createViewNavFromDescendants(Object entry)
throws NotesException
public ViewNavigator createViewNavFromDescendants(Object entry, int
cacheSize)
throws NotesException
Parameters
Object entry
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The entries in the navigator are the entries in the view that fall
hierarchically at all levels under the specified entry. The parent itself is
excluded.
If the entry has no children, the result is an empty navigator. All navigation
methods return null.
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
createViewNavMaxLevel method
Creates a view navigator for all entries in a view down to a specified level.
Defined in
View
Syntax
public ViewNavigator createViewNavMaxLevel(int level)
throws NotesException
public ViewNavigator createViewNavMaxLevel(int level, int cacheSize)
throws NotesException
Parameters
int level
The size of the navigator cache in view entries. Legal values are 0 (no
cache) through 128 (default). Applies only to remote (IIOP) operations.
Return value
ViewNavigator
Usage
The entries in the navigator are all the entries in the view at levels 0 through
the specified level.
An empty view results in an empty navigator. All navigation methods
return null.
The cache enhances performance for iterative processing of entries using
the navigation methods that do not take a parameter.
FTSearch method
Conducts a full-text search on all documents in a view and filters the view
so it represents only those documents that match the full-text query. This
method does not find word variants.
Defined in
View
Syntax
public int FTSearch(String query)
throws NotesException
public int FTSearch(String query, int maxdocs)
throws NotesException
Parameters
String query
Return value
int
The number of documents in the view after the search. Each of these
documents matches the query.
Usage
If the database is not full-text indexed, this method works, but less
efficiently. To test for an index, use isFTIndexed. To create an index on a
local database, use updateFTIndex.
After calling FTSearch, you can use the regular View methods to navigate
the view. The methods navigate to a subset of the documents in the view.
For example, getAllEntries returns only those entries that match the full-text
query, getFirstDocument returns the first document in the view that
matches the full-text query, getLastDocument returns the last document in
the view that matches the full-text query, and so on.
Use the clear to clear the full-text search filtering. The View methods now
navigate to the full set of documents in the view.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see “To use operators to refine a search” in Notes 5 help.
System.out.println(doc.getItemValueString("Subject"));
doc = view.getNextDocument(doc); } }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getAllDocumentsByKey method
Finds documents based on their column values within a view. You create a
key or vector of keys, where each key corresponds to a value in a sorted
column in the view. The method returns all documents whose column
values match the keys.
Defined in
View
Syntax
public DocumentCollection getAllDocumentsByKey(java.util.Vector
keys)
throws NotesException
public DocumentCollection getAllDocumentsByKey(Object key)
throws NotesException
public DocumentCollection getAllDocumentsByKey(java.util.Vector
keys, boolean exact)
throws NotesException
public DocumentCollection getAllDocumentsByKey(Object key, boolean
exact)
throws NotesException
Parameters
java.util.Vector keys
boolean exact
True if you want to find an exact match. If you specify false or omit this
parameter, a partial match succeeds.
Return value
DocumentCollection
All documents in the view whose column values match each of the
keys. If no documents match, the collection is empty and the count
is zero.
Usage
This method returns all the documents whose column values match the
keys. To locate just the first document, use getDocumentByKey.
Documents returned by this method are in no particular order, and do not
provide access to column values. Use getAllEntriesByKey for these
capabilities.
The use of partial matches with multiple keys may result in missed
documents. If the first key is partial and the second column does not sort
the same with the partial key as with the exact key, documents that fall out
of sequence are missed.
2. This agent gets all the documents in the category “Boots” and the
subcategory “Spanish leather” in the By Category view of the current
database, and puts them in the Boots folder.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
Vector v = new Vector();
v.addElement("Boots");
v.addElement("Spanish leather");
Document doc =
view.getDocumentByKey(v, false);
doc.putInFolder("Boots");
} catch(Exception e) {
e.printStackTrace();
}
}
}
getAllEntriesByKey method
Finds view entries of type document based on their column values within a
view. You create a key or vector of keys, where each key corresponds to a
value in a sorted column in the view. The method returns all entries whose
column values match the keys.
Defined in
View
Syntax
public ViewEntryCollection getAllEntriesByKey(java.util.Vector keys)
throws NotesException
public ViewEntryCollection getAllEntriesByKey(Object key)
throws NotesException
Parameters
java.util.Vector keys
True if you want to find an exact match. If you specify false or omit this
parameter, a partial match succeeds.
Return value
ViewEntryCollection
All entries of type document in the view whose column values match
each of the keys. If no entries match, the collection is empty and the
count is zero.
Usage
This method returns all the view entries of type document whose column
values match the keys. To locate just the first entry, use getEntryByKey.
Entries returned by this method are in view order and provide access to
column values, unlike getAllDocumentsByKey.
The use of partial matches with multiple keys may result in missed
entries. If the first key is partial and the second column does not sort the
same with the partial key as with the exact key, entries that fall out of
sequence are missed.
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
ViewEntryCollection vec =
view.getAllEntriesByKey("Spanish leather", false);
System.out.println("Number of entries found = " +
vec.getCount());
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This example gets all document entries in the category “Boots” and the
subcategory “Spanish leather” in the By Category view of the current
database.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
Vector v = new Vector();
v.addElement("Boots");
v.addElement("Spanish leather");
ViewEntryCollection vec =
view.getAllEntriesByKey(v, false);
System.out.println("Number of entries = " +
vec.getCount());
} catch(Exception e) {
e.printStackTrace();
}
}
}
getChild method
Given a document in a view, returns the first response to the document.
Defined in
View
Syntax
public Document getChild(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
The first response document to the parameter you specify. Returns null
if there are no responses to the document.
Usage
To find additional response documents, use getNextSibling. The
combination of getChild and getNextSibling allows you to access a
document responses, sorted in the same order that they appear in a view.
To get all the immediate responses for a document unsorted, use
getResponses in Document.
If you’ve filtered the view with the FTSearch method, getChild returns the
next document in the view, regardless of level.
Document rtor;
while (response != null) {
System.out.println
("\t" + response.getItemValueString("Subject"));
rtor = view.getChild(response);
while (rtor != null) {
System.out.println
("\t\t" + rtor.getItemValueString("Subject"));
rtor = view.getNextSibling(rtor); }
response = view.getNextSibling(response); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getColumn method
Returns a specified column in a view.
Defined in
View
Syntax
public ViewColumn getColumn(int columnNumber)
throws NotesException
Parameter
int columnNumber
Return value
ViewColumn
Database db = agentContext.getCurrentDatabase();
View view = db.getView("All Documents");
ViewColumn column = view.getColumn(1);
String title = column.getTitle();
if (title.length() == 0) title = "No title";
System.out.println
("First column is \"" + title + "\"");
} catch(Exception e) {
e.printStackTrace();
}
}
}
getDocumentByKey method
Finds a document based on its column values within a view. You create a
key or vector of keys, where each key corresponds to a value in a sorted
column in the view. The method returns the first document with column
values that match the keys.
Defined in
View
Syntax
public Document getDocumentByKey(java.util.Vector keys)
throws NotesException
public Document getDocumentByKey(Object key)
throws NotesException
public Document getDocumentByKey(java.util.Vector keys, boolean
exact)
throws NotesException
public Document getDocumentByKey(Object key, boolean exact)
throws NotesException
Parameters
java.util.Vector keys
boolean exact
True if you want to find an exact match. If you specify false or omit this
parameter, a partial match succeeds.
Return value
Document
The first document in the view with column valuesthat match the keys.
Returns null if there are no matching documents.
Usage
This method returns only the first document with column values that match
the strings you indicate. To locate all matching documents, use
getAllDocumentsByKey.
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
Vector v = new Vector();
v.addElement("Boots");
v.addElement("Spanish leather");
Document doc =
view.getDocumentByKey(v, false);
doc.putInFolder("Boots");
} catch(Exception e) {
e.printStackTrace();
}
}
}
getEntryByKey method
Finds a view entry based on its column values within a view. You create a
key or vector of keys, where each key corresponds to a value in a sorted
column in the view. The method returns the first entry with column values
that match the keys.
Defined in
View
Syntax
public ViewEntry getEntryByKey(java.util.Vector keys)
throws NotesException
public ViewEntry getEntryByKey(Object key)
throws NotesException
public ViewEntry getEntryByKey(java.util.Vector keys, boolean exact)
throws NotesException
public ViewEntry getEntryByKey(Object key, boolean exact)
throws NotesException
Parameters
java.util.Vector keys
Object key
True if you want to find an exact match. If you specify false or omit this
parameter, a partial match succeeds.
Return value
ViewEntry
The first entry in the view with column values that match the keys.
Returns null if there are no matching entries.
Usage
This method returns only the first entry with column values that match the
strings you indicate. To locate all matching documents, use
getAllEntriesByKey.
2. This agent gets the first entry in the category “Boots” in the subcategory
“Spanish leather” in the By Category view of the current database.
import lotus.domino.*;
import java.util.Vector;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
Vector v = new Vector();
v.addElement("Boots");
v.addElement("Spanish leather");
ViewEntry entry =
view.getEntryByKey(v, false);
if (entry != null) {
Vector columns = entry.getColumnValues();
for (int i=0; i<columns.size(); i++)
System.out.println((i+1) + " " +
columns.elementAt(i)); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getFirstDocument method
Returns the first document in a view.
Defined in
View
Syntax
public Document getFirstDocument()
throws NotesException
Return value
Document
The first document in the view. Returns null if there are no documents
in the view.
Usage
If the view is filtered by FTSearch, this method returns the first document in
the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient
methods for navigating views and accessing entries.
getLastDocument method
Returns the last document in a view.
Defined in
View
Syntax
public Document getLastDocument()
throws NotesException
Return value
Document
The last document in the view. Returns null if there are no documents
in the view.
Usage
If the view is filtered by FTSearch, this method returns the last document in
the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient
methods for navigating views and accessing entries.
getNextDocument method
Given a document in a view, returns the document immediately following
it.
Defined in
View
Syntax
public Document getNextDocument(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
Usage
This method returns the next document in the view regardless of what type
of document it is (document, response, or response-to-response). If you
want the next sibling document in the view, use getNextSibling.
If the view is filtered by FTSearch, this method returns the next document
in the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient
methods for navigating views and accessing entries.
getNextSibling method
Given a document in a view, returns the document immediately following
it at the same level. If you send the method a main document, the next main
document in the view is returned. If you send a response document, the
next response document with the same parent is returned.
If the view is categorized, the next sibling is in the same category as the
original document.
Defined in
View
Syntax
public Document getNextSibling(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
The document following the parameter, at the same level in the view.
Returns null if there are no more siblings.
Usage
You can use getNextSibling to:
Move from one main document to the next, skipping any response
documents in between
Visit the response documents of a particular parent document (use
getChild to find the first response)
Visit the response-to-response documents of a particular parent
document (use getChild to find the first response-to-response)
If you filtered the view with FTSearch, getNextSibling returns the next
document in the view, regardless of level.
Siblings
Two documents are siblings if:
They are both main documents, or
They are both responses or response-to-responses and they share the
same parent document
getNthDocument method
Returns the document at a specified position in the top level of a view.
Defined in
View
Syntax
public Document getNthDocument(int n)
throws NotesException
Parameter
int n
Return value
Document
The document in the nth position in the view. Returns null if there is no
document at the specified position.
Usage
This method accesses only top-level (main) documents in a view; response
documents are excluded.
In a categorized view, this method returns only the first document in each
main category (not each subcategory).
If you do not have reader access to the specified document, this method
returns the next document to which you have reader access. If you
increment n, the increment is relative to the actual value of n, not the
document that was accessed. So you will access the same document
repeatedly until that document actually is the nth document.
This method is useful when used in combination with FTSearch, which
returns the number of documents that remain in a view after it’s been
filtered with a full-text search.
getParentDocument method
Given a response document in a view, returns its parent document.
Defined in
View
Syntax
public Document getParentDocument(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
Usage
The document returned by getParentDocument may be a main document, a
response, or a response-to-response.
getPrevDocument method
Given a document in a view, returns the document immediately
preceding it.
Defined in
View
Syntax
public Document getPrevDocument(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
Usage
If the view is filtered by FTSearch, this method returns the next document
in the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient
methods for navigating views and accessing entries.
doc = view.getPrevDocument(doc); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getPrevSibling method
Given a document in a view, returns the document immediately preceding
it at the same level. If you use this method on a main document, the
preceding main document in the view is returned. If you use it on a
response document, the preceding response document with the same
parent is returned.
If the view is categorized, the previous sibling is in the same category as the
original document.
Defined in
View
Syntax
public Document getPrevSibling(Document doc)
throws NotesException
Parameter
Document doc
Return value
Document
The document preceding the parameter, at the same level. Returns null
if there is no previous sibling in the view.
Usage
You can use getPrevSibling to move from one main document to the next,
skipping any response documents in between.
If you filtered the view using FTSearch, getPrevSibling returns the previous
document in the view, regardless of level.
Siblings
Two documents are siblings if:
They are both main documents, or
They are both responses or response-to-responses and share the same
parent document.
refresh method
Updates view contents with any changes that have occurred to the database
since the View object was created, or since the last refresh.
Defined in
View
Syntax
public void refresh()
throws NotesException
Usage
Navigation through a view is not normally affected by changes to the
actual database, since the View object is a snapshot of the view contents
at a particular time. Additions and deletions to the view that occur after
the View object is created may not be reflected in the View object until you
call refresh.
After a refresh, existing ViewEntry objects may contain invalid information.
They should not be used for navigation or the creation of ViewNavigator
objects.
If isAutoUpdate is true, refresh occurs automatically on every navigation in
the view.
For remote (IIOP) operations, refresh invalidates the cache.
remove method
Permanently removes a view from a database.
Defined in
View
Syntax
public void remove()
throws NotesException
Usage
The removed view may still appear in the user interface until the user closes
and opens the database.
A subsequent call to a method of the view, or a method of a navigator based
on the view, throws an exception.
ViewColumn class
Represents a column in a view or folder.
Syntax
public class ViewColumn extends Base
Containment
Contained by: View
Properties
Alignment through getAlignment
DateFmt through getDateFmt
FontColor through getFontColor
FontFace through getFontFace
FontPointSize through getFontPointSize
FontStyle through getFontStyle
Formula through getFormula
HeaderAlignment through getHeaderAlignment
Access
You access an existing ViewColumn object through the view or folder that
contains it. Use getColumns or getColumn in View.
Alignment property
Read-only. The alignment of data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getAlignment()
throws NotesException
Legal values
ViewColumn.ALIGN_CENTER
ViewColumn.ALIGN_LEFT
ViewColumn.ALIGN_RIGHT
String theAlignment(int n) {
String align = null;
switch (n) {
case ViewColumn.ALIGN_CENTER : align = "center"; break;
case ViewColumn.ALIGN_LEFT : align = "left";break;
case ViewColumn.ALIGN_RIGHT : align = "right"; break; }
return align; }
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
Vector columns = view.getColumns();
for (int i=0; i<columns.size(); i++) {
ViewColumn column = (ViewColumn)columns.elementAt(i);
System.out.println(column.getPosition() +
" Alignment = " + theAlignment(column.getAlignment())
+ ", Header alignment = " +
theAlignment(column.getHeaderAlignment())); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
DateFmt property
Read-only. The format of date data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getDateFmt()
throws NotesException
Legal values
ViewColumn.DT_MD (month and day)
ViewColumn.DT_YM (year and month)
ViewColumn.DT_Y4M (4-digit year and month)
ViewColumn.DT_YMD (year, month, and day)
FontColor property
Read-only. The font color of data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getFontColor()
throws NotesException
Legal values
RichTextStyle.COLOR_BLACK
RichTextStyle.COLOR_BLUE
RichTextStyle.COLOR_CYAN
RichTextStyle.COLOR_DARK_BLUE
RichTextStyle.COLOR_DARK_CYAN
RichTextStyle.COLOR_DARK_GREEN
RichTextStyle.COLOR_DARK_MAGENTA
RichTextStyle.COLOR_DARK_RED
RichTextStyle.COLOR_DARK_YELLOW
RichTextStyle.COLOR_GRAY
RichTextStyle.COLOR_GREEN
RichTextStyle.COLOR_LIGHT_GRAY
RichTextStyle.COLOR_MAGENTA
RichTextStyle.COLOR_RED
RichTextStyle.COLOR_WHITE
RichTextStyle.COLOR_YELLOW
case RichTextStyle.COLOR_DARK_CYAN :
fc = "dark cyan"; break;
case RichTextStyle.COLOR_GRAY :
fc = "gray"; break;
case RichTextStyle.COLOR_LIGHT_GRAY :
fc = "light gray"; break;
default : fc = "no color"; }
String fs = null;
if ((column.getFontStyle() & ViewColumn.FONT_BOLD) ==
ViewColumn.FONT_BOLD) fs = "bold";
else fs = "plain";
if ((column.getFontStyle() &
ViewColumn.FONT_ITALIC) ==
ViewColumn.FONT_ITALIC) fs = fs + " italic";
if ((column.getFontStyle() &
ViewColumn.FONT_UNDERLINE) ==
ViewColumn.FONT_UNDERLINE) fs = fs + " underline";
if ((column.getFontStyle() &
ViewColumn.FONT_STRIKEOUT) ==
ViewColumn.FONT_STRIKEOUT) fs = fs + " strikeout";
System.out.println(column.getPosition() + " " +
column.getFontFace() + " " + column.getFontPointSize()
+ " " + fs + " " + fc); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
FontFace property
Read-only. The font face of data in a column.
Defined in
ViewColumn
Data type
String
Syntax
public String getFontFace()
throws NotesException
FontPointSize property
Read-only. The font point size of data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getFontPointSize()
throws NotesException
FontStyle
Read-only. The font style of data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getFontStyle()
throws NotesException
Legal values
ViewColumn.FONT_BOLD
ViewColumn.FONT_ITALIC
ViewColumn.FONT_UNDERLINE
ViewColumn.FONT_STRIKEOUT
Usage
The font style can have multiple values. For example, the style might be
ViewColumn.FONT_BOLD and ViewColumn.FONT_ITALIC.
Formula property
Read-only. The formula for a column, if applicable.
Defined in
ViewColumn
Data type
String
Syntax
public String getFormula()
throws NotesException
Usage
If the column is a field, this property usually returns an empty string, but in
some cases returns the field name. To reliably access the field name, use
getItemName.
If the column is a simple function, this property returns the @function
formula equivalent. For example, if the column is the simple function
Creation Date, this property returns “@Created.”
If the column is a formula, this property returns the entire formula.
System.out.println("\n" + column.getPosition() +
" " + vtitle);
if (column.isFormula())
colAction = column.getFormula();
else if (column.isField())
colAction = column.getItemName();
System.out.println(colAction); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
HeaderAlignment property
Read-only. The alignment of the header in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getHeaderAlignment()
throws NotesException
Legal values
ViewColumn.ALIGN_CENTER
ViewColumn.ALIGN_LEFT
ViewColumn.ALIGN_RIGHT
IsAccentSensitiveSort property
Read-only. Indicates if a column is sorted with regard to accent.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isAccentSensitiveSort()
throws NotesException
Legal values
True if the column is sorted with regard to accent.
False if the column is sorted without regard to accent.
IsCaseSensitiveSort property
Read-only. Indicates if a column is sorted with regard to case.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isCaseSensitiveSort()
throws NotesException
Legal values
True if the column is sorted with regard to case.
False if the column is sorted without regard to case.
IsCategory property
Read-only. Indicates if a column is categorized.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isCategory()
throws NotesException
Legal values
True if the column is categorized.
False if the column is not categorized.
Usage
If isCategory returns true, isSorted also returns true, since columns that are
categorized must also be sorted.
IsField property
Read-only. Indicates if column values are based on field values.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isField()
throws NotesException
Legal values
True if the column is based on field values.
False if the column is not based on field values.
Usage
This property returns true if the column is a field.
IsFormula property
Read-only. Indicates if column values are based on a formula.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isFormula()
throws NotesException
Legal values
True if the column is based on a formula.
False if the column is not based on a formula.
Usage
This property returns true in the following cases:
The column is a simple function.
The column is a formula, even if the formula is a field name or
evaluates to a field name.
IsHidden property
Read-only. Indicates if a column is hidden.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isHidden()
throws NotesException
Legal values
True if the column is hidden.
False if the column is not hidden.
IsHideDetail property
Read-only. Indicates if the details for total columns are hidden.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isHideDetail()
throws NotesException
Legal values
True if the details for totals are hidden.
False if the details for totals are displayed.
IsIcon property
Read-only. Indicates if column values are displayed as icons.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isIcon()
throws NotesException
Legal values
True if column values are displayed as icons.
False if column values are not displayed as icons.
IsResize property
Read-only. Indicates if a column is resizable.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isResize()
throws NotesException
Legal values
True if a column is resizable.
False if a column is not resizable.
IsResortAscending property
Read-only. Indicates if a resortable column can be resorted in ascending
order.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isResortAscending()
throws NotesException
Legal values
True if a resortable column can be resorted in ascending order.
False if a resortable column cannot be resorted in ascending order.
IsResortDescending property
Read-only. Indicates if a resortable column can be resorted in descending
order.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isResortDescending()
throws NotesException
Legal values
True if a resortable column can be resorted in descending order.
False if a resortable column cannot be resorted in descending order.
IsResortToView property
Read-only. Indicates if a sorted column is resortable, that is, if the user can
click on the column header to resort.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isResortToView()
throws NotesException
Legal values
True if a column is resortable.
False if a column is resortable.
IsResponse property
Read-only. Indicates if a column contains only response documents.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isResponse()
throws NotesException
Legal values
True if the column contains only response documents.
False if the column contains any kind of document.
IsSecondaryResort property
Read-only. Indicates if a column is a secondary resortable column.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isSecondaryResort()
throws NotesException
Legal values
True if a column is a secondary resortable column.
False if a column is a secondary resortable column.
IsSecondaryResortDescending property
Read-only. Indicates if a secondary resortable column is sorted in
descending order.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isSecondaryResortDescending()
throws NotesException
Legal values
True if a secondary resortable column is descending.
False if a secondary resortable column is ascending.
IsShowTwistie property
Read-only. Indicates if an expandable column displays a twistie.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isShowTwistie()
throws NotesException
Legal values
True if an expandable column displays a twistie.
False if an expandable column does not display a twistie.
IsSortDescending property
Read-only. Indicates if a sorted column is sorted in descending order.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isSortDescending()
throws NotesException
Legal values
True if a sorted column is descending.
False if a sorted column is ascending.
IsSorted property
Read-only. Indicates if a column is sorted.
Defined in
ViewColumn
Data type
boolean
Syntax
public boolean isSorted()
throws NotesException
Legal values
True if the column is sorted.
False if the column is not sorted.
Usage
If the user can sort the column in the user interface by clicking its heading,
but the column is not otherwise sorted, this property returns false.
if (column.isSorted()) {
if (column.isCategory()) {
System.out.println("Column is categorized");
if (column.isShowTwistie())
System.out.println("Column displays twistie"); }
System.out.println("Column is sorted");
if (column.isSortDescending())
System.out.println("Sort is descending");
else System.out.println("Sort is ascending");
if (column.isCaseSensitiveSort())
System.out.println("Sort is case sensitive");
if (column.isAccentSensitiveSort())
System.out.println("Sort is accent sensitive");
if (column.isResortToView()) {
System.out.println("Column is resortable");
if (column.isResortAscending())
System.out.println("\tResort can be ascending");
if (column.isResortDescending())
System.out.println("\tResort can be
descending");
if (column.isSecondaryResort()) {
System.out.println("\tColumn is secondary
resortable");
if (column.isSecondaryResortDescending())
System.out.println("\tSecondary resort is
descending"); } } }
else
System.out.println("Column is not sorted"); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
ItemName property
Read-only. The name of the field with the value that is shown in the
column.
Defined in
ViewColumn
Data type
String
Syntax
public String getItemName()
throws NotesException
Usage
If the column is a field, this property returns the field name. This property
also returns the field name for a formula with a value that is just the name
of a field.
If the column is a simple function or formula (whose value is not just the
name of a field), this property returns an internal name. In these cases, you
can access the formula or formula equivalent with getFormula.
ListSep property
Read-only. List (multi-value) separator for values in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getListSep()
throws NotesException
Legal values
ViewColumn.SEP_COMMA
ViewColumn.SEP_NEWLINE
ViewColumn.SEP_SEMICOLON
ViewColumn.SEP_SPACE
NumberAttrib property
Read-only. Attributes for numeric values in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getNumberAttrib()
throws NotesException
Legal values
ViewColumn.ATTR_PARENS (parentheses on negative numbers)
ViewColumn.ATTR_PERCENT (percent sign)
ViewColumn.ATTR_PUNCTUATED (punctuated at thousands)
Usage
The number attribute can have multiple values. For example, the attribute
might be ViewColumn.ATTR_PARENS and
ViewColumn.ATTR_PUNCTUATED.
ViewColumn.ATTR_PARENS) != 0)
System.out.println("Parentheses on negative
numbers");
if ((column.getNumberAttrib() &
ViewColumn.ATTR_PERCENT) != 0)
System.out.println("Percent sign");
if ((column.getNumberAttrib() &
ViewColumn.ATTR_PUNCTUATED) != 0)
System.out.println("Punctuated");
System.out.println("Number of decimal places is " +
column.getNumberDigits());
}
} catch(Exception e) {
e.printStackTrace();
}
}
}
NumberDigits property
Read-only. Number of decimal places for numeric values in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getNumberDigits()
throws NotesException
NumberFormat property
Read-only. Format for numeric values in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getNumberFormat()
throws NotesException
Legal values
ViewColumn.FMT_CURRENCY
ViewColumn.FMT_FIXED
ViewColumn.FMT_GENERAL
ViewColumn.FMT_SCIENTIFIC
Parent property
Read-only. The view that contains a column.
Defined in
ViewColumn
Data type
View
Syntax
public View getParent()
throws NotesException
Position property
Read-only. The position of a column in its view. Columns are numbered
from left to right, starting with 1.
Defined in
ViewColumn
Data type
int
Syntax
public int getPosition()
throws NotesException
Usage
The Columns property in View returns a vector of ViewColumn objects.
The vector is zero-based, so the first element in the vector is element 0
and contains the ViewColumn at position 1. The second element in the
vector is element 1 and contains the ViewColumn at position 2, and so on.
Remember to add one to the vector index to get the correct position value.
TimeDateFmt property
Read-only. The format of time-date data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getTimeDateFmt()
throws NotesException
Legal values
ViewColumn.FMT_DATE (Date only)
ViewColumn.FMT_DATETIME (Date and time)
ViewColumn.FMT_TIME (Time only)
ViewColumn.FMT_TODAYTIME (Date or ‘Today’ or ‘Yesterday’ —
and time)
TimeFmt property
Read-only. The format of time data in a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getTimeFmt()
throws NotesException
Legal values
ViewColumn.FMT_HM (hour and minute)
ViewColumn.FMT_HMS (hour, minute, and second)
TimeZoneFmt property
Read-only. The format of the zone in a time-date column value.
Defined in
ViewColumn
Data type
int
Syntax
public int getTimeZoneFmt()
throws NotesException
Legal values
ViewColumn.FMT_ALWAYS (always show time zone)
ViewColumn.FMT_NEVER (never show time zone)
ViewColumn.FMT_SOMETIMES (show time zone if the time is
not local)
Title property
Read-only. The title of a column or an empty string if the column does not
have a title.
Defined in
ViewColumn
Data type
String
Syntax
public String getTitle()
throws NotesException
Width property
Read-only. The width of a column.
Defined in
ViewColumn
Data type
int
Syntax
public int getWidth()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
ViewEntry class
Represents a view entry. A view entry describes a row in a view.
Syntax
public class ViewEntry extends Base
Containment
Contained by: View, ViewEntryCollection, ViewNavigator
Contains: Document
Properties
ChildCount through getChildCount
ColumnIndentLevel through getColumnIndentLevel
ColumnValues through getColumnValues
DescendantCount through getDescendantCount
Document through getDocument
FTSearchScore through getFTSearchScore
IndentLevel through getIndentLevel
IsCategory through isCategory
IsConflict through isConflict
IsDocument through isDocument
IsTotal through isTotal
IsValid through isValid
NoteID through getNoteID
Parent through getParent
SiblingCount through getSiblingCount
UniversalID through getUniversalID
Methods
getPosition
Access
You access a view entry through the get methods in ViewEntryCollection
and ViewNavigator, and through View.getEntryByKey.
Usage
The three types of view entries are document, category, and total.
ViewEntryCollection");
else System.out.println("\tParent is View");
System.out.println("\tSibling count: " +
entry.getSiblingCount());
System.out.println("\tChild count: " +
entry.getChildCount());
System.out.println
("\tDescendant count: " + entry.getDescendantCount());
if (entry.isValid()) System.out.println("\tEntry is
valid");
else System.out.println("\tEntry is deletion stub");
entry = nav.getNext(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
ChildCount property
Read-only. The number of immediate children belonging to the current
view entry.
Defined in
ViewEntry
Data type
int
Syntax
public int getChildCount()
throws NotesException
ColumnIndentLevel property
Read-only. The indent level of a view entry within its column.
Defined in
ViewEntry
Data type
int
Syntax
public int getColumnIndentLevel()
throws NotesException
Usage
This property is useful for determining the response level of a document.
Main documents are always at indent level 0, response documents at indent
level 1, and so on.
ColumnValues property
Read-only. The value of each column in the view entry.
Defined in
ViewEntry
Data type
java.util.Vector; elements are Double, DateTime, or String
Syntax
public Vector getColumnValues()
throws NotesException
} catch(Exception e) {
e.printStackTrace();
}
}
}
DescendantCount property
Read-only. The number of descendants belonging to the current view entry.
Defined in
ViewEntry
Data type
int
Syntax
public int getDescendantCount()
throws NotesException
Document property
Read-only. The document associated with the view entry.
Defined in
ViewEntry
Data type
Document
Syntax
public Document getDocument()
throws NotesException
Usage
Returns null if the view entry is not a document. Returns null if the
document is deleted after the ViewEntry object is created.
Document objects retrieved through ViewEntry do not have the following
properties set: FTSearchScore, ColumnValues, and ParentView. Use
FTSearchScore, ColumnValues, and Parent in ViewEntry.
FTSearchScore property
Read-only. The full-text search score of a view entry, if it was retrieved as
part of a full-text search.
Defined in
ViewEntry
Data type
int
Syntax
public int getFTSearchScore()
throws NotesException
Usage
The score is determined by the number of target words that are found
in the entry, the term weights assigned to the target words, and any
proximity operators in the search query. If the entries are not retrieved
as part of a full-text search, returns 0. If the entry is retrieved using
an FTSearch method on a database without a full-text index, returns
an unpredictable number.
IndentLevel property
Read-only. The indent level of a view entry within the view.
Defined in
ViewEntry
Data type
int
Syntax
public int getIndentLevel()
throws NotesException
Usage
The indent level corresponds to the number of levels in the position.
Position 1 is indent level 0, position 1.1 is indent level 1, position 1.1.1 is
indent level 2, and so on.
IsCategory property
Read-only. Indicates if a view entry is a category.
Defined in
ViewEntry
Data type
boolean
Syntax
public boolean isCategory()
throws NotesException
Legal values
True if the entry is a category
False if the entry is not a category
IsConflict property
Read-only. Indicates if a view entry is for a document on which a
replication or save conflict occurred.
Defined in
ViewEntry
Data type
boolean
Syntax
public boolean isConflict()
throws NotesException
Legal values
True if the entry is a conflict document
False if the entry is not a conflict document
IsDocument property
Read-only. Indicates if a view entry is a document.
Defined in
ViewEntry
Data type
boolean
Syntax
public boolean isDocument()
throws NotesException
Legal values
True if the entry is a document
False if the entry is not a document
IsTotal property
Read-only. Indicates if a view entry is a total.
Defined in
ViewEntry
Data type
boolean
Syntax
public boolean isTotal()
throws NotesException
Legal values
True if the entry is a total
False if the entry is not a total
IsValid property
Read-only. Indicates if a view entry is a valid entry and not a deletion stub.
Defined in
ViewEntry
Data type
boolean
Syntax
public boolean isValid()
throws NotesException
Legal values
True if the entry is valid
False if the entry is not valid
Usage
If a document is removed after a view entry collection containing it is
created, you can use the corresponding view entry for navigation but
cannot access the document. If the possibility of removal exists, you should
check isValid before attempting to access the document.
NoteID property
Read-only. The note ID of a view entry of type document.
Defined in
ViewEntry
Data type
String
Syntax
public String getNoteID()
throws NotesException
Usage
This property returns the empty string for entries of type category and total.
Parent property
Read-only. The parent ViewEntryCollection, ViewNavigator, or View object
of a view entry.
Defined in
ViewEntry
Data type
Object
Syntax
public Object getParent()
throws NotesException
SiblingCount property
Read-only. The number of siblings belonging to the current view entry.
Defined in
ViewEntry
Data type
int
Syntax
public int getSiblingCount()
throws NotesException
Usage
The sibling count includes the current entry unless it is a total.
UniversalID property
Read-only. The universal ID of a document associated with a view entry.
The ID is a 32-character combination of hexadecimal digits (0-9, A-F) that
uniquely identifies a document across all replicas of a database.
Defined in
ViewEntry
Data type
String
Syntax
public String getUniversalID()
throws NotesException
Usage
This property returns the empty string for entries of type category and total.
getPosition method
Returns the position of the entry in the view hierarchy, for example, “2.3”
for the third document of the second category.
Defined in
ViewEntry
Syntax
public String getPosition(char separator)
throws NotesException
Parameters
char separator
Return value
String
ViewEntryCollection class
Represents a collection of view entries of type document sorted in view
order.
Syntax
public class ViewEntryCollection extends Base
Containment
Contained by: View
Contains: ViewEntry
Properties
Count through getCount
Parent through getParent
Query through getQuery
Methods
addEntry
deleteEntry
FTSearch
getEntry
getFirstEntry
getLastEntry
getNextEntry
getNthEntry
getPrevEntry
putAllInFolder
removeAll
removeAllFromFolder
stampAll
updateAll
Access
A ViewEntryCollection represents all or a subset of all the document entries
in a view. A ViewEntryCollection does not include entries of type category
and total. The following View methods return ViewEntryCollection objects:
getAllEntries
getAllEntriesByKey
The FTSearch method in ViewEntryCollection changes the content of
the collection.
A current pointer is maintained for view entry collections. All navigation
methods set the current pointer to the retrieved entry. Add and delete
methods do not move the current pointer. The current pointer is set to the
first entry after FTSearch and removeAll. For remote (IIOP) operations only,
the current pointer is set to the first entry after putAllInFolder,
removeAllFromFolder, and stampAll.
Count property
Read-only. The number of entries in a view entry collection.
Defined in
ViewEntryCollection
Data type
int
Syntax
public int getCount()
throws NotesException
Parent property
Read-only. The view that contains a view entry collection.
Defined in
ViewEntryCollection
Data type
View
Syntax
public View getParent()
throws NotesException
Query property
Read-only. The text of the query that produced a view entry collection if the
collection results from a full-text search.
Defined in
ViewEntryCollection
Data type
String
Syntax
public String getQuery()
throws NotesException
Usage
For collections produced without a search, this property returns an
empty string.
addEntry method
Adds an entry to a view entry collection.
Defined in
ViewEntryCollection
Syntax
public void addEntry(Object obj)
throws NotesException
public void addEntry(Object obj, boolean checkDups)
throws NotesException
Parameters
Object obj
Usage
The entry or document represented by the parameter must exist. For
example, if you create a new Document object, you must save it before
calling addEntry.
This method increments the view entry collection count returned by
getCount.
deleteEntry method
Deletes an entry from a view entry collection.
Defined in
ViewEntryCollection
Syntax
public void deleteEntry(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Usage
This method decrements the view entry collection count returned by
getCount.
This method throws an exception if the entry is already deleted.
This method throws an exception if the entry is from another collection.
A deleted ViewEntry object is invalid and cannot be used for navigation
purposes.
} catch(Exception e) {
e.printStackTrace();
}
}
}
FTSearch method
Conducts a full-text search on all entries in a view entry collection and
filters the collection so that it respresents only the entries that match the
full-text query.
Defined in
ViewEntryCollection
Syntax
public void FTSearch(String query)
throws NotesException
public void FTSearch(String query, int maxdocs)
throws NotesException
Parameters
String query
Usage
The collection of entries that match the full-text query are sorted by
relevance with highest relevance first. You can access the relevance score of
each entry in the collection with getFTSearchScore in ViewEntry.
If the database is not full-text indexed, this method works, but less
efficiently. To test for an index, use isFTIndexed in Database. To create an
index on a local database, use updateFTIndex in Database.
The current pointer is reset to the first document in the collection.
Query syntax
To search for a word or phrase, enter the word or phrase as is, except that
search keywords must be enclosed in quotes. Remember to escape quotes if
you are inside a literal.
Wildcards, operators, and other syntax are permitted. For the complete
syntax rules, see “To use operators to refine a search” in Notes 5 help.
getEntry method
Gets a specified entry in a view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getEntry(Object entry)
throws NotesException
Parameter
Object obj
Return value
ViewEntry
Usage
This method can be used to get the entry in this collection that corresponds
to an entry from another collection or retrieved through other means.
getFirstEntry method
Gets the first entry in a view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getFirstEntry()
throws NotesException
Return value
ViewEntry
The first entry in the view entry collection. If there are no entries in the
collection, returns null.
2. This example gets the second and next to last entries in a view entry
collection.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext =
session.getAgentContext();
// (Your code goes here)
Database db = agentContext.getCurrentDatabase();
View view = db.getView("By Category");
ViewEntryCollection vec = view.getAllEntries();
ViewEntry entryFirst = vec.getFirstEntry();
ViewEntry entryLast = vec.getLastEntry();
System.out.println("Second entry is at position " +
vec.getNextEntry(entryFirst).getPosition('.'));
System.out.println("Next to last entry is at
position " +
vec.getPrevEntry(entryLast).getPosition('.'));
} catch(Exception e) {
e.printStackTrace();
}
}
}
getLastEntry method
Gets the last entry in a view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getLastEntry()
throws NotesException
Return value
ViewEntry
The last entry in the view entry collection. If there are no entries in the
collection, returns null.
getNextEntry method
Gets the entry immediately following the current or a specified entry in a
view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getNextEntry()
throws NotesException
public ViewEntry getNextEntry(ViewEntry entry)
throws NotesException
Parameters
ViewEntry entry
Return value
ViewEntry
getNthEntry method
Gets the entry at a specified position in a view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getNthEntry(int n)
throws NotesException
Parameters
int n
A number indicating the entry to return. Use 1 to indicate the first entry
in the collection, 2 to indicate the second entry, and so on.
Return value
ViewEntry
The entry in the nth position in the view entry collection. If there is no
document at the specified position, returns null.
Usage
View collections are renumbered when deletions occur so that the positions
of entries after the deleted entry change.
getPrevEntry method
Gets the entry immediately preceding the current or a specified entry in a
view entry collection.
Defined in
ViewEntryCollection
Syntax
public ViewEntry getPrevEntry()
throws NotesException
public ViewEntry getPrevEntry(ViewEntry entry)
throws NotesException
Parameters
ViewEntry entry
Return value
ViewEntry
putAllInFolder method
Adds the documents associated with all the entries in a view entry
collection to a specified folder.
Defined in
ViewEntryCollection
Syntax
public void putAllInFolder(String folderName)
throws NotesException
public void putAllInFolder(String folderName, boolean createOnFail)
throws NotesException
Parameters
String folderName
The name of the folder in which to place the documents. The folder may
be personal if the program is running on the workstation. If the folder is
within another folder, specify a path to it, separating folder names with
backslashes and escaping the backslashes in a literal, for example:
vec.putAllInFolder("Vehicles\\Bikes");
boolean createOnFail
If true (default), creates the folder if it does not exist. If false and the
folder does not exist, this method does nothing.
Usage
If a document is already inside the folder you specify, putAllInFolder does
nothing for that document. If you specify a path to a folder, and none of the
folders exist, the method creates all of them for you.
removeAll method
Permanently removes the documents associated with the entries in a view
entry collection from a database.
Defined in
ViewEntryCollection
Syntax
public void removeAll(boolean force)
throws NotesException
Parameter
boolean force
Usage
All documents removed from the database as a result of this operation are
also removed from the collection.
The current pointer is reset to the first entry.
} catch(Exception e) {
e.printStackTrace();
}
}
}
removeAllFromFolder method
Removes the documents associated with the entries in a view entry
collection from a specified folder.
Defined in
ViewEntryCollection
Syntax
public void removeAllFromFolder(String folderName)
throws NotesException
Parameters
String folderName
The name of the folder from which to remove the documents. The
folder may be personal if the program is running on the workstation. If
the folder is within another folder, specify a path to it, separating folder
names with backslashes and escaping the backslashes in a literal, for
example:
vec.removeAllFromFolder("Vehicles\\Bikes");
Usage
This method does nothing for documents not in the folder you specify. This
method does nothing if the folder you specify does not exist.
stampAll method
Replaces the value of a specified item in the documents of all the entries in a
view entry collection.
Defined in
ViewEntryCollection
Syntax
public void stampAll(String itemName, Object value)
throws NotesException
Parameters
String itemName
Usage
If the item does not exist, it is created.
The item values are immediately written to the documents in storage. You
do not have to use the save method of Document after stampAll. However,
any documents modified by your program must be saved before calling
stampAll.
This method does not modify existing Document objects. Documents must
be retrieved again to see the changes.
updateAll method
Marks all documents in a collection as processed by an agent.
Note Does not work for remote (IIOP) calls.
Defined in
ViewEntryCollection
Syntax
public void updateAll()
throws NotesException
Usage
See the updateProcessedDoc method in AgentContext for a description of
the update process.
ViewNavigator class
Represents a view navigator. A view navigator provides access to all or a
subset of the entries in a view.
Syntax
public class ViewNavigator extends Base
Containment
Contained by: View
Contains: ViewEntry
Properties
CacheSize through getCacheSize and setCacheSize
MaxLevel through getMaxLevel and setMaxLevel
ParentView through getParentView
Methods
getChild
getCurrent
getFirst
getFirstDocument
getLast
getLastDocument
getNext
getNextCategory
getNextDocument
getNextSibling
getNth
getParent
getPos
getPrev
getPrevCategory
getPrevDocument
getPrevSibling
gotoChild
gotoEntry
gotoFirst
gotoFirstDocument
gotoLast
gotoLastDocument
gotoNext
gotoNextCategory
gotoNextDocument
gotoNextSibling
gotoParent
gotoPos
gotoPrev
gotoPrevCategory
gotoPrevDocument
gotoPrevSibling
Creation
You create a view navigator through the following View methods:
createViewNav
createViewNavFrom
createViewNavFromCategory
createViewNavFromChildren
createViewNavFromDescendants
createViewNavMaxLevel
Returned is a ViewNavigator object that represents some or all of the entries
in the view.
Usage
The ViewNavigator methods let you:
Access categories and totals as well as documents.
Access information specific to the view such as the number of siblings
of a view entry.
Subset the view.
CacheSize property
Read-write. The size of the navigator cache in view entries.
Note This property applies only to remote (IIOP) operations. For local
operations, getCacheSize always returns zero and setCacheSize has
no effect.
Defined in
ViewNavigator
Data type
int
Syntax
public int getCacheSize()
throws NotesException
public void setCacheSize(int numEntries)
throws NotesException
Legal values
0 minimum (no cache)
128 maximum (default)
MaxLevel property
Read-write. The navigator’s maximum level of navigation.
Defined in
ViewNavigator
Data type
int
Syntax
public int getMaxLevel()
throws NotesException
public void setMaxLevel(int mLevel)
throws NotesException
Legal values
0 minimum (top level)
30 maximum (default)
Usage
The maximum cannot be less than the minimum implied by the navigator
type, for example, category, children, or descendants.
ParentView property
Read-only. The view containing a navigator.
Defined in
ViewNavigator
Data type
int
Syntax
public View getParentView()
throws NotesException
getChild method
Returns the first child of an entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getChild()
throws NotesException
public ViewEntry getChild(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
ViewEntry
The first child of the current or specified entry. Returns null if there are
no children.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
A child of a category entry can be a category or document entry.
getEntryType(entry3));
entry3 = nav.getNextSibling(entry3); }
entry2 = nav.getNextSibling(entry2); }
entry = nav.getNextSibling(entry); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
2. This agent gets view entries in a hierarchy down to three levels using
one variable to represent the entries at different levels.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
n++;
System.out.println
("\t\tEntry #" + n + " is a " +
getEntryType(entry));
entry = nav.getNextSibling(); }
entry = nav.getParent(); }
entry = nav.getNextSibling(); }
entry = nav.getParent(); }
entry = nav.getNextSibling(); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getCurrent method
Returns the current entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getCurrent()
throws NotesException
Return value
ViewEntry
getFirst method
Returns the first entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getFirst()
throws NotesException
Return value
ViewEntry
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
if (entry.isCategory()) t = "category";
else if (entry.isDocument()) t = "document";
else if (entry.isTotal()) t = "total";
System.out.println("Entry # 2 is a " + t); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
getFirstDocument method
Returns the first document entry in a view navigator, skipping any category
entries.
Defined in
ViewNavigator
Syntax
public ViewEntry getFirstDocument()
throws NotesException
Return value
ViewEntry
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getLast method
Returns the last entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getLast()
throws NotesException
Return value
ViewEntry
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
If the view has totals, this method retrieves the grand total.
getLastDocument method
Returns the last document entry in a view navigator, skipping any category
and totals entries.
Defined in
ViewNavigator
Syntax
public ViewEntry getLastDocument()
throws NotesException
Return value
ViewEntry
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getNext method
Returns the next entry following the current or specified entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getNext()
throws NotesException
public ViewEntry getNext(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
ViewEntry
The entry following the current or specified entry. Returns null if there
is no next entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getNextCategory method
Returns the next category entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getNextCategory()
throws NotesException
Return value
ViewEntry
The category entry following the current entry. Returns null if there is
no next category entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
For purposes of navigation, total entries are considered category entries.
This method can return either.
getNextDocument method
Returns the next document entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getNextDocument()
throws NotesException
Return value
ViewEntry
The document entry following the current entry. Returns null if there is
no next document entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getNextSibling method
Returns the next sibling entry after the current or specified entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getNextSibling()
throws NotesException
public ViewEntry getNextSibling(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
ViewEntry
The sibling entry following the current or specified entry. Returns null
if there is no next sibling entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getNth method
Returns the entry at a specified position in the top level of a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getNth(int n)
throws NotesException
Parameter
int n
Return value
ViewEntry
The nth top-level entry. Returns null if there is no nth top-level entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
If you do not have reader access to the specified document, this method
returns the next document to which you have reader access. If you
increment n, the increment is relative to the actual value of n, not the
document that was accessed. So you will access the same document
repeatedly until that document actually is the nth document.
getParent method
Returns the parent entry of the current or a specified entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getParent()
throws NotesException
public ViewEntry getParent(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
ViewEntry
The parent entry of the current or specified entry. Returns null if there
is no parent entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getPos method
Returns the entry at a specified position in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getPos(String pos, char separator)
throws NotesException
Parameters
String pos
Return value
ViewEntry
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getPrev method
Returns the previous entry of the current or specified entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getPrev()
throws NotesException
public ViewEntry getPrev(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
ViewEntry
The entry preceding the current or specified entry. Returns null if there
is no previous entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getPrevCategory method
Returns the previous category entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getPrevCategory()
throws NotesException
Return value
ViewEntry
The category entry preceding the current entry. Returns null if there is
no previous category entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getPrevDocument method
Returns the previous document entry in a view navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getPrevDocument()
throws NotesException
Return value
ViewEntry
The document entry preceding the current entry. Returns null if there is
no previous document entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
getPrevSibling method
Returns the previous sibling entry of the current or specified entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public ViewEntry getPrevSibling()
throws NotesException
public ViewEntry getPrevSibling(ViewEntry entry)
throws NotesException
Parameters
ViewEntry entry
Return value
ViewEntry
The sibling entry preceding the current or specified entry. Returns null
if there is no previous sibling entry.
Usage
This method moves the current pointer to the retrieved entry unless the
return value is null.
gotoChild method
Moves the current pointer to the first child of the current or specified entry
in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoChild()
throws NotesException
public boolean gotoChild(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
boolean
Usage
A child of a category entry can be a category or document entry.
if (nav.gotoChild()) { do {
// Print 3rd-level entries two tabs in
n++;
System.out.println("\t\tEntry # " + n + " is a " +
getEntryType(nav.getCurrent()));
} while (nav.gotoNextSibling());
nav.gotoParent(); }
nav.gotoParent(); }
} while (nav.gotoNextSibling());
} catch(Exception e) {
e.printStackTrace();
}
}
}
gotoEntry method
Moves the current pointer to a specified document or view entry.
Defined in
ViewNavigator
Syntax
public boolean gotoEntry(Object entry)
throws NotesException
Parameter
Object entry
Return value
boolean
Usage
The Document or ViewEntry object provided as the parameter does not
have to come from the current view navigator. The gotoEntry method
searches for the existence of the entry in the current view navigator.
gotoFirst method
Moves the current pointer to the first entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoFirst()
throws NotesException
Return value
boolean
gotoFirstDocument method
Moves the current pointer to the first document entry in a view navigator,
skipping any category entries.
Defined in
ViewNavigator
Syntax
public boolean gotoFirstDocument()
throws NotesException
Return value
boolean
gotoLast method
Moves the current pointer to the last entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoLast()
throws NotesException
Return value
boolean
gotoLastDocument method
Moves the current pointer to the last document entry in a view navigator,
skipping any totals and category entries.
Defined in
ViewNavigator
Syntax
public boolean gotoLastDocument()
throws NotesException
Return value
boolean
gotoNext method
Moves the current pointer to the next entry of the current or specified entry
in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoNext()
throws NotesException
public boolean gotoNext(ViewEntry entry)
throws NotesException
Parameters
ViewEntry entry
Return value
boolean
gotoNextCategory method
Moves the current pointer to the next category entry of the current entry in
a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoNextCategory()
throws NotesException
Return value
boolean
gotoNextDocument method
Moves the current pointer to the next document entry of the current entry
in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoNextDocument()
throws NotesException
Return value
boolean
gotoNextSibling method
Moves the current pointer to the next sibling entry of the current or
specified entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoNextSibling()
throws NotesException
public boolean gotoNextSibling(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
boolean
gotoParent method
Moves the current pointer to the parent entry of the current or specified
entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoParent()
throws NotesException
public boolean gotoParent(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
boolean
gotoPos method
Moves the current pointer to the entry at a specified position in a view
navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoPos(String pos, char separator)
throws NotesException
Parameters
String pos
char separator
Return value
boolean
gotoPrev method
Moves the current pointer to the previous entry of the current or specified
entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoPrev()
throws NotesException
public boolean gotoPrev(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
boolean
gotoPrevCategory method
Moves the current pointer to the previous category entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoPrevCategory()
throws NotesException
Return value
boolean
gotoPrevDocument method
Moves the current pointer to the previous document entry in a view
navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoPrevDocument()
throws NotesException
Return value
boolean
gotoPrevSibling method
Moves the current pointer to the previous sibling entry of the current or
specified entry in a view navigator.
Defined in
ViewNavigator
Syntax
public boolean gotoPrevSibling()
throws NotesException
public boolean gotoPrevSibling(ViewEntry entry)
throws NotesException
Parameter
ViewEntry entry
Return value
boolean
while (nav.gotoParent());
int n = 0;
boolean first = true;
do {
if (first) first = false;
else entry = nav.getCurrent();
System.out.println("Last category minus " + n + "
has " +
entry.getDescendantCount() + " descendants");
n++; }
while (nav.gotoPrevSibling()); }
} catch(Exception e) {
e.printStackTrace();
}
}
}
Index-1
@DbColumn function, 76, 101, 131 [DesignViewNewColumn] [EditLocations] command, 445
Notes database, 128, 190 command, 430 [EditMakeDocLink] command, 445
ODBC, 195 [DesignViews] command, 430 [EditNextField] command, 445
@DbCommand function, 201 [DesignViewSelectFormula] [EditOpenLink] command, 445
ODBC, 131 command, 431 [EditPaste] command, 446
@DbExists function, 206 [DialingRules] command, 431 [EditPasteSpecial] command, 446
@DbLookup function, 76, 102, 128, @DialogBox function, 76, 96, 230 [EditPhoneNumbers] command, 446
131, 207, 214 @Do function, 78, 233 [EditPrevField] command, 447
@DbManager function, 122, 220 @DocChildren function, 102, [EditProfile] command, 447
@DbName function, 122, 221 124, 234 [EditResizePicture] command, 448
@DbTitle function, 222 @DocDescendants function, 102, [EditRight] command, 449
@DDEExecute function, 76, 223 123, 236 [EditSelectAll] command, 449
@DDEInitiate function, 76, 225 @DocFields function, 126, 238 [EditSelectByDate] command, 450
@DDEPoke function, 76, 227 @DocLength function, 126, 238 [EditShowHideHiddenChars]
@DDETerminate function, 76, 228 @DocLevel function, 102, 123, 239 command, 450
[DebugLotusScript] command, 424 @DocMark function, 102, 126, 240 [EditTableDeleteRowColumn]
@DeleteDocument function, 102, 229 @DocNumber function, 102, 123, 240 command, 450
@DeleteField function, 102, 125, 230 @DocParentNumber function, 102, [EditTableFormat] command, 451
[DesignDocumentInfo] 123, 241 [EditTableInsertRowColumn]
command, 424 @DocSiblings function, 102, 123, 242 command, 451
[DesignFormAttributes] @DocumentUniqueID function, [EditTop] command, 452
command, 424 126, 243 [EditUndo] command, 452
[DesignFormFieldDef] @Domain function, 246 [EditUntruncate] command, 452
command, 425 [EditBottom] command, 431 [EditUp] command, 453
[DesignFormNewField] [EditButton] command, 432 @EditUserECL function, 247
command, 425 [EditClear] command, 432 @Elements function, 87, 97, 247
[DesignForms] command, 425 [EditCopy] command, 432 [EmptyTrash] command, 453
[DesignFormShareField] [EditCut] command, 433 @EnableAlarms function, 248
command, 425 [EditDeselectAll] command, 433 @Ends function, 109, 248
[DesignFormUseField] [EditDetach] command, 434 @Environment function, 97, 102, 250
command, 426 [EditDocument] command, 435 @Error function, 99, 253
[DesignFormWindowTitle] [EditDown] command, 436 [ExchangeUnreadMarks]
command, 426 @EditECL function, 246 command, 454
[DesignHelpAboutDocument] [EditEncryptionKeys] command, 436 [Execute] command, 454
command, 426 [EditFind] command, 437 @Exp function, 114, 254
[DesignHelpUsingDocument] [EditFindInPreview] command, 437 @Explode function, 87, 254
command, 427 [EditFindNext] command, 438 @Failure function, 99, 102, 257
[DesignIcon] command, 427 [EditGotoField] command, 438 @False function, 257
[DesignMacros] command, 427 [EditHeaderFooter] command, 439 @FIELD function, 102
[DesignRefresh] command, 428 [EditHorizScrollbar] command, 439 [FileCloseWindow] command, 455
[DesignReplace] command, 428 [EditIndent] command, 439 [FileDatabaseACL] command, 455
[DesignSharedFields] command, 428 [EditIndentFirstLine] command, 440 [FileDatabaseCompact]
[DesignSynopsis] command, 429 [EditInsertButton] command, 440 command, 455
[DesignViewAppendColumn] [EditInsertFileAttachment] [FileDatabaseCopy] command, 456
command, 429 command, 440 [FileDatabaseDelete] command, 456
[DesignViewAttributes] [EditInsertObject] command, 441 [FileDatabaseInfo] command, 456
command, 429 [EditInsertPageBreak] [FileDatabaseRemove]
[DesignViewColumnDef] command, 442 command, 457
command, 429 [EditInsertPopup] command, 442 [FileDatabaseUseServer]
[DesignViewEditActions] [EditInsertTable] command, 443 command, 457
command, 430 [EditInsertText] command, 443 [FileExit] command, 457
[DesignViewFormFormula] [EditLeft] command, 444 [FileExport] command, 458
command, 430 [EditLinks] command, 444 [FileFullTextCreate] command, 460
Index-2
[FileFullTextDelete] command, 460 [HelpTableOfContents] @Left function, 109, 286
[FileFullTextInfo] command, 460 command, 478 @LeftBack function, 109, 287
[FileFullTextUpdate] command, 461 [HelpUsingDatabase] command, 479 @Length function, 106, 288
[FileImport] command, 461 [HelpV3ReleaseMenuFinder] @Like function, 106, 289
[FileNewDatabase] command, 463 command, 478 @Ln function, 114, 290
[FileNewReplica] command, 463 [HotSpotClear] command, 479 @Locale function, 291
[FileOpenDatabase] command, 464 [HotSpotProperties] command, 479 @Log function, 114, 292
[FileOpenDBRepID] command, 466 @Hour function, 119, 262 @LowerCase function, 112, 293
[FilePageSetup] command, 467 @If function, 78, 90, 263 [MailAddress] command, 482
[FilePrint] command, 468 @Implode function, 87, 265 [MailComposeMemo]
[FilePrintSetup] command, 470 $Info field, 65 command, 482
[FileSave] command, 470 @InheritedDocumentUniqueID @MailDbName function, 121, 294
[FileSaveNewVersion] function, 126, 266 @MailEncryptSavedPreference
command, 470 [InsertSubForm] command, 480 function, 295
[FindFree]TimeDialog @Integer function, 113, 266 @MailEncryptSentPreference
command, 471 @IsAgentEnabled function, 267 function, 296
[Folder] command, 472 @IsAvailable function, 126, 268 [MailForward] command, 483
[FolderCollapse] command, 473 @IsCategory function, 102, 124, 269 [MailForwardAsAttachment]
[FolderCustomize] command, 473 @IsDocBeingEdited function, command, 483
[FolderExpand] command, 474 126, 270 [MailOpen] command, 483
[FolderExpandAll] command, 474 @IsDocBeingLoaded function, 102, [MailRequestCrossCert]
[FolderExpandWithChildren] 126, 270 command, 483
command, 474 @IsDocBeingMailed function, 102, [MailRequestNewName]
[FolderMove] command, 475 126, 271 command, 484
[FolderProperties] commandx, 475 @IsDocBeingRecalculated function, [MailRequestNewPublicKey]
[FolderRename] command, 475 102, 126, 272 command, 484
@FontList function, 259 @IsDocBeingSaved function, 102, @MailSavePreference function, 296
[FormActions] command, 476 126, 273 [MailScanUnread] command, 484
[FormTestDocument] command, 476 @IsDocTruncated function, 274 [MailSend] command, 485
@Functions @IsError function, 99, 274 @MailSend function, 76, 102,
@Commands, 77 @IsExpandable function, 102, 125, 297
described, 101 124, 275 [MailSendCertificateRequest]
in LotusScript, 549 @IsMember function, 87, 276 command, 485
operating, 133, 143 @IsModalHelp function, 277 [MailSendEncryptionKey]
order of evaluation, 77 @IsNewDoc function, 102, 126, 278 command, 485
reference, 133 @IsNotMember function, 87, 278 [MailSendPublicKey] command, 486
restrictions, 101 @IsNumber function, 105, 280 @MailSignPreference function, 301
return value, 76 @IsResponseDoc function, 126, 280 @Matches function, 106, 302
syntax, 75 @IsText function, 105, 281 @Max function, 113, 303
using, 75, 133, 143 @IsTime function, 105, 282 @Member function, 87, 304
@GetDocField function, 129, 259 @IsUnavailable function, 282 @Middle function, 109, 305
@GetPortsList function, 260 @IsValid function, 283 @MiddleBack function, 109, 307
@GetProfileField function, 261 @Keywords function, 87, 284 @Min function, 113, 308
[GoUpLevel] command, 476 @LanguagePreference, 285 @Minute function, 119, 310
[Help] command, 476 [LayoutAddGraphic] command, 480 @Modified function, 118, 310
[HelpAboutDatabase] [LayoutAddText] command, 480 @Modulo function, 114, 311
command, 477 [LayoutElementBringToFront] @Month function, 119, 312
[HelpAboutNotes] command, 477 command, 481 @Name function, 121, 313
[HelpFunctions] command, 477 [LayoutElementProperties] @NameLookup function, 317
[HelpIndex] command, 477 command, 481 @Narrow function, 319
[HelpKeyboard] command, 478 [LayoutElementSendToBack] [NavigateNext] command, 486
[HelpMessages] command, 478 command, 481 [NavigateNextHighlight]
[HelpReleaseNotes] command, 478 [LayoutProperties] command, 482 command, 486
Index-3
[NavigateNextMain] command, 487 @Prompt [OKCANCELCOMBO] [SectionDefineEditors]
[NavigateNextSelected] function, 94 command, 503
command, 487 @Prompt [OKCANCELEDIT] [SectionExpand] command, 504
[NavigateNextUnread] function, 94 [SectionExpandAll] command, 504
command, 488 @Prompt [SectionProperties] command, 504
[NavigatePrev] command, 488 [OKCANCELEDITCOMBO] [SectionRemoveHeader]
[NavigatePrevHighlight] function, 94 command, 505
command, 489 @Prompt [OKCANCELLIST] @Select function, 349
[NavigatePrevMain] command, 489 function, 94 @Set function, 350
[NavigatePrevSelected] @Prompt [OKCANCELLISTMULT] [SetCurrentLocation] command, 505
command, 490 function, 94 @SetDocField function, 103, 129, 351
[NavigatePrevUnread] @Prompt [PASSWORD] function, 94 @SetEnvironment function, 97,
command, 490 @Prompt [YESNO] function, 93 103, 352
[NavigateToBackLink] @Prompt [YESNOCANCEL] @SetField function, 103, 125, 353
command, 490 function, 93 @SetProfileField function, 354
[NavigatorProperties] @Prompt function, 76, 81, 93, @SetTargetFrame function, 354
command, 491 103, 331 [ShowHideLinkPreview]
[NavigatorTest] command, 491 @ProperCase function, 112, 336 command, 505
@NewLine function, 112, 320 [PublishDatabase] command, 498 [ShowHideParentPreview]
@No function, 321 @Random function, 114, 337 command, 506
@NoteID function, 126, 322 @RefreshECL function, 338 [ShowHidePreviewPane]
@Now function, 118, 322 [RefreshHideFormulas] command, 506
[ObjectDisplayAs] command, 491 command, 499 [ShowProperties] command, 506
[ObjectOpen] command, 492 [RefreshParentNote] command, 498 @Sign function, 113, 356
[ObjectProperties] command, 492 %Rem directive @Sin function, 114, 356
[OpenCalendar] command, 492 in Script Editor, 50 [SmartIconsFloating] command, 507
[OpenDocument] command, 493 [RemoveFromFolder] command, 499 [SmartIconsNextSet] command, 507
[OpenFrameset] command, 494 [RenameDatabase] command, 499 @Soundex function, 357
[OpenHelpDocument] @Repeat function, 112, 339 @Sqrt function, 114, 358
command, 494 @Replace function, 87, 340 [StyleCycleKey] command, 507
[OpenNavigator] command, 495 @ReplaceSubstring function, 341 @Subset function, 87, 358
[OpenPage] command, 496 [Replicator] command, 500 @Success function, 99, 103, 359
[OpenView] command, 496 [ReplicatorReplicateHigh] @Sum function, 113, 359
@OptimizeMailAddress function, command, 500 @Tan function, 114, 361
121, 322 [ReplicatorReplicateNext] @Text function, 105, 361
@Password function, 121, 323 command, 501 [TextAlignCenter] command, 508
[PasteBitmapAsBackground] [ReplicatorReplicateSelected] [TextAlignFull] command, 508
command, 497 command, 501 [TextAlignLeft] command, 508
[PasteBitmapAsObject] [ReplicatorReplicateWithServer] [TextAlignNone] command, 509
command, 498 command, 501 [TextAlignRight] command, 509
@Pi function, 114, 324 [ReplicatorSendMail] command, 502 [TextBold] command, 509
@PickList [CUSTOM] function, 94 [ReplicatorSendReceiveMail] [TextBullet] command, 510
@PickList [NAME] function, 94 command, 502 [TextCycleSpacing] command, 510
@PickList function, 76, 102, 325 [ReplicatorStart] command, 502 [TextEnlargeFont] command, 511
[PictureProperties] command, 498 [ReplicatorStop] command, 502 [TextFont] command, 511
@Platform function, 102, 121, 328 @Responses function, 103, 123, [TextItalic] command, 512
@PostedCommand, 76 126, 342 [TextNormal] command, 512
@PostedCommand function, @Return function, 78, 99, 103, 343 [TextNumbers] command, 513
103, 330 @Right function, 109, 344 [TextOutdent] command, 513
@Power function, 114, 330 @RightBack function, 109, 345 [TextParagraph] command, 514
@Prompt([OK], 93 @Round function, 113, 346 [TextParagraphStyles]
@Prompt([OKCANCELLIST], 93 @Second function, 119, 347 command, 514
@Prompt[LOCALBROWSE] [SectionCollapse] command, 503 [TextPermanentPen] command, 514
function, 94 [SectionCollapseAll] command, 503 [TextReduceFont] command, 515
Index-4
[TextSetFontColor] command, 515 @URLHistory function, 373 [ViewShowOnlySearchResults]
[TextSetFontFace] command, 516 @URLOpen function, 374 command, 538
[TextSetFontSize] command, 517 @UserAccess function, 377 [ViewShowOnlySelected]
[TextSpacingDouble] command, 517 [UserIDCertificates] command, 527 command, 538
[TextSpacingOneAndAHalf] [UserIDClearPassword] [ViewShowOnlyUnread]
command, 518 command, 527 command, 539
[TextSpacingSingle] command, 518 [UserIDCreateSafeCopy] [ViewShowPageBreaks]
@TextToNumber function, 363 command, 528 command, 539
@TextToTime function, 364 [UserIDEncryptionKeys] [ViewShowRuler] command, 539
[TextUnderline] command, 518 command, 528 [ViewShowSearchBar]
@Time function, 119, 365 [UserIDInfo] command, 528 command, 539
$Title field, 65 [UserIDMergeCopy] command, 529 [ViewShowServerNames]
@Today function, 118, 366 [UserIDSetPassword] command, 529 command, 540
@Tomorrow function, 118, 367 [UserIDSwitch] command, 529 [ViewShowUnread] command, 540
[ToolsCall] command, 519 @UserName function, 121, 379 [ViewSwitchForm] command, 540
[ToolsCategorize] command, 519 @UserNameLanguage function, 381 @ViewTitle function, 103, 122, 389
[ToolsHangUp] command, 520 @UserNamesList function, 382 @Weekday function, 118, 389
[ToolsMarkAllRead] command, 520 @UserPrivileges function, 383 @Wide function, 390
[ToolsMarkAllUnread] @UserRoles function, 121, 383 [WindowMaximize] command, 541
command, 520 @V2If function, 384 [WindowMaximizeAll]
[ToolsMarkSelectedRead] @V3Command function, 77 command, 541
command, 521 [V3EditNextField] command, 530 [WindowMinimize] command, 541
[ToolsMarkSelectedUnread] [V3EditPrevField] command, 530 [WindowMinimizeAll]
comand, 521 @V3UserName function, 385 command, 542
[ToolsRefreshAllDocs] @ValidateInternetAddress $WindowTitle field, 65
command, 522 function, 386 [WindowWorkspace] command, 542
[ToolsRefreshSelectedDocs] @Version function, 121, 388 @Word function, 110, 391
command, 522 [ViewArrangeIcons] command, 531 [WorkspaceProperties]
[ToolsReplicate] command, 522 [ViewBelowFolders] command, 531 command, 542
[ToolsRunBackgroundMacros] [ViewBesideFolders] commnd, 531 [WorspaceStackReplicaIcons]
command, 523 [ViewCertify] command, 531 command, 543
[ToolsRunMacro] command, 523 [ViewChange] command, 532 @Year function, 119, 392
[ToolsScanUnreadChoose] [ViewCollapse] command, 533 @Yes function, 393
command, 524 [ViewCollapseAll] command, 533 @Yesterday function, 118, 393
[ToolsScanUnreadPreferred] [ViewExpand] command, 534 @Zone function, 119, 394
command, 524 [ViewExpandAll] command, 534 [ZoomPreview] command, 543
[ToolsScanUnreadSelected] [ViewExpandWithChildren]
command, 524 command, 534
[ToolsSetupLocation] command, 525 [ViewHorizScrollBar] command, 535
A
[ToolsSetupMail] command, 525 [ViewMoveName] command, 535 Abbreviated property
[ToolsSetupPorts] command, 525 [ViewNavigatorsFolders] Name class, 2065
[ToolsSetupUserSetup] command, 535 NotesName class, 1075
command, 526 [ViewNavigatorsNone] Abs function, 113, 154
[ToolsSmartIcons] command, 526 command, 536 Abstract method
[ToolsSpellCheck] command, 526 [ViewRefreshFields] command, 536 NotesItem class, 1048
[ToolsUserLogoff] command, 527 [ViewRefreshUnread] command, 536 Abstract property
@Trim function, 112, 367 [ViewRenamePerson] command, 537 NotesReplication class, 1246
@True function, 368 [ViewShowFieldHelp] abstractText method
@Unavailable function, 103, 369 command, 537 Item class, 2034
@UndeleteDocument function, 369 [ViewShowObject] command, 537 Accelerators
@Unique function, 87, 370 [ViewShowOnlyCategories] in a formula, 81
@UpperCase function, 112, 370 command, 538 Accent sensitive
@URLGetHeader function, 371 ViewColumn class, 2285
Index-5
Access levels addNewLine method AdjustHour method
getCurrentAccessLevel RichTextItem class, 2150 NotesDateTime class, 892
method, 1788 AddPageBreak method adjustHour method
through Java, 1724 NotesRichTextItem class, 1263 DateTime class, 1867
Accessed function, 118, 162 addPageBreak method, 2152 AdjustMinute method
Accessing RichTextItem, 2150 NotesDateTime class, 893
LS:DO class, 666 Addr821 property adjustMinute method
Programmer's pane, 36 Name class, 2065 DateTime class, 1869
ACL NotesName class, 1076 AdjustMonth method
accessing in Java, 1616 Addr822Comment1 property NotesDateTime class, 894
accessing in LotusScript, 565 Name class, 2065 adjustMonth method
ACL class, 1616, 1696 NotesName class, 1076 DateTime class, 1870
ACL property Addr822Comment2 property AdjustSecond method
Database class, 1783 Name class, 2066 NotesDateTime class, 895
NotesDatabase class, 793 NotesName class, 1076 adjustSecond method
ACLEntry class, 1616, 1711 Addr822Comment3 property DateTime class, 1871
ACos function, 114, 164 Name class, 2066 AdjustYear method
Action scripts and formulas, 85 NotesName class, 1077 NotesDateTime class, 896
Actions, 3, 10 Addr822LocalPart property adjustYear method
Activate method Name class, 2066 DateTime class, 1872
NotesEmbeddedObject NotesName class, 1077 ADMD property
class, 1003 Addr822Phrase property Name class, 2067
activate method Name class, 2067 NotesName class, 1078
EmbeddedObject class, 1984 NotesName class, 1077 AdminCertify command, 402
AddBookmark command, 400 AddressBooks property AdminCreateGroup command, 402
AddCertifierToAddressbook NotesSession class, 1305 AdminCrossCertifyIDFile
method Session class, 2185 command, 403
NotesRegistration class, 1230 AddRole method AdminCrossCertifyKey
addCertifierToAddressbook method NotesACL class, 733 command, 403
Registration class, 2119 addRole method AdminDatabaseAnalysis
AddDatabase command, 400 ACL class, 1702 command, 403
AddDatabase method AddRow method AdminDatabaseQuotas
NotesUIWorkspace class, 1430 ODBCResultSet class, 1140 command, 404
AddDatabaseRepID command, 401 AddServerToAddressbook method AdminIDFileClearPassword
AddDocument method NotesRegistration class, 1230 command, 404
NotesDocumentCollection addServerToAddressbook method AdminIDFileExamine
class, 980 Registration class, 2120 command, 404
addDocument method AddTab method AdminIDFileSetPassword
DocumentCollection class, 1961 NotesRichTextItem class, 1264 command, 405
AddEntry method RichTextItem class, 2152 Administration servers, 1714
NotesOutline class, 1199 AddToFolder function, 164 AdminNewOrganization
NotesViewEntryCollection AddUserProfile method command, 405
class, 1558 NotesRegistration class, 1232 AdminNewOrgUnit command, 406
addEntry method addUserProfile method AdminOpenAddressBook
Outline class, 2089 Registration class, 2121 command, 406
ViewEntryCollection class, 2317 AddUserToAddressbook method AdminOpenCatalog command, 406
Adding NotesRegistration class, 1232 AdminOpenCertLog command, 407
a new line, 112 addUserToAddressbook method AdminOpenGroupsView
Addition, 113 Registration class, 2121 command, 407
Addition operator (+) Adjust function, 119, 165 AdminOpenServerLog
Formula Language, 69 AdjustDay method command, 407
AddNewLine method NotesDateTime class, 891 AdminOpenServersView
NotesRichTextItem class, 1262 adjustDay method command, 408
DateTime class, 1866 AdminOpenStatistics command, 408
Index-6
AdminOpenUsersView AgentRun command, 413 AppendDocLink method
command, 408 AgentRunner NotesRichTextItem class, 1266
AdminOutgoingMail command, 409 AgentContext document, 46 RichTextItem class, 2153
AdminRegisterFromFile creating a project, 45 AppendItemValue method
command, 409 debugging a Java agent, 46 NotesDocument class, 942
AdminRegisterServer command, 409 using, 45 appendItemValue method
AdminRegisterUser command, 410 Agents Document class, 1921
AdminRemoteConsole accessing in Java, 1650, 2143 AppendParagraphStyle method
command, 410 accessing in LotusScript, 650 NotesRichTextItem class, 1268
AdminSendMailTrace overview, 3, 6 appendParagraphStyle method
command, 410 running in Java, 1591 RichTextItem class, 2155
AdminStatisticsConfig writing a script and formula, 85 AppendRTItem method
command, 411 Agents property NotesRichTextItem class, 1269
AdminTraceConnection Database class, 1784 RichTextItem class, 2155
command, 411 NotesDatabase class, 793 AppendStyle method
AfterAddRow event, 1142 AgentSetServerName command, 413 NotesRichTextItem class, 1270
AfterClose event, 1143 AgentTestRun command, 413 RichTextItem class, 2156
AfterConnect event, 1104 Alarm event AppendText method
AfterConnectTo event, 1104 NotesTimer class, 1344 NotesRichTextItem class, 1271
AfterDeleteRow event, 1146 Alias property RichTextItem class, 2157
AfterDisconnect event, 1105 NotesOutline class, 1197 AppendToTextList method
AfterExecute event, 1148 NotesOutlineEntry class, 1208 NotesItem class, 1048
AfterFirstRow event, 1163 Outline class, 2088 appendToTextList method
AfterGetParameter event, 1165 OutlineEntry class, 2100 Item class, 2035
AfterGetParameterName event, 1166 Aliases property AppletBase class, 1668
AfterGetValue event, 1170 Form class, 1988 Applets
AfterLastRow event, 1180 NotesForm class, 1009 running, 1593
AfterListDataSources event, 1109 NotesView class, 1460 Arithmetic operators
AfterListFields event, 1110 View class, 2217 Formula Language, 71
AfterListProcedures event, 1111 Alignment property LotusScript, 71
AfterListTables event, 1113 NotesRichTextParagraphStyle table of, 113
AfterLocateRow event, 1182 class, 1278 Ascii function, 171
AfterNextRow event, 1184 NotesViewColumn class, 1509 Asin function, 114, 172
AfterNumColumns event, 1185 RichTextParagraphStyle Assignment operator
AfterPrevRow event, 1189 class, 2164 Formula Language, 70
AfterRowPositionChange event, ViewColumn class, 2277 Atan function, 114, 173
1163, 1180, 1182, 1184, 1189 All function, 6, 15, 84, 101, 167 Atan2 function, 114, 174
AfterSetParameter event, 1191 AllChildren function, 101, 126, 167 AttachmentDetachAll
AfterSetSQL event, 1119 AllDescendants function, 101, command, 414
AfterSetValue event, 1193 126, 168 AttachmentLaunch command, 414
AfterUpdateRow event, 1195 AllDocuments property AttachmentLengths function,
Agent Database class, 1785 126, 175
Script Libraries in, 57 NotesDatabase class, 794 AttachmentNames function, 126, 176
Agent class, 1651, 1736 AllEntries property AttachmentProperties
AgentBase class, 1593, 1668 NotesView class, 1461 command, 414
AgentContext class, 1757 View class, 2218 Attachments
AgentContext document ALOG.NTF file, 657 appending in Java, 2157
generating, 46 Alternate names, 379, 381 editing, 440
AgentContext property AMString property getting in Java, 1933
Session class, 2187 International class, 2000 Attachments function, 126, 176
AgentEdit command, 411 NotesInternational class, 1019 Author function, 126, 177
AgentEnableDisable command, 412 And operator Authors property
AgentLog command, 412 Formula Language, 69 Document class, 1893
NotesDocument class, 909
Index-7
Auto-commit mode Bold property Categories
in LS:DO, 695 NotesRichTextStyle class, 1292 accessing with ViewEntry, 1628
AutoCommit property RichTextStyle class, 2174 View class, 2227
ODBCConnection class, 1098 Boolean data type, 65 Categories property
AutoHorzFit command, 97 Breakpoints Database class, 1786
AutoReload property clearing, 54 NotesDatabase class, 796
NotesUIDocument class, 1367 disabling, 54 Categorize method
AutoUpdate property setting, 54 NotesUIDocument class, 1379
NotesView class, 1461 using thebreakpoints panel, 55 Certificate function, 181
AutoVertFit command, 97 BrowserInfo function, 179 CertifierIDFile property
avoidingGUI method Button class, 784 NotesRegistration class, 1225
Visibility interface, 1695 Buttons Registration class, 2114
as objects, 4 CGI variables, 1310
as hotspots, 12 Changing
B for a script and formula, 85 case, 112
BackgroundColor property Char function, 105, 182
NotesView class, 1462 CheckAlarms function, 183
View class, 2219 C CheckAlarms method
Backslash (\), 66 CacheLimit property NotesUIWorkspace class, 1431
Base Class box ODBCResultSet class, 1131 Child entries
defined, 36 Caches ViewNavigator class, 2337
BeforeAddRow event, 1142 in LS:DO, 697 ChildCount property
BeforeClose event, 1143 CacheSize property NotesViewEntry class, 1541
BeforeConnect event, 1104 ViewNavigator class, 2336 ViewEntry class, 2306
BeforeConnectTo event, 1104 CalendarDateTime property ChooseFolders command, 416
BeforeDeleteRow event, 1146 NotesUIView class, 1422 Chronos, 2143
BeforeDisconnect event, 1105 CalendarFormat command, 415 Class property
BeforeExecute event, 1148 CalendarGoTo command, 416 NotesEmbeddedObject class, 994
BeforeFirstRow event, 1163 Call statement, 552 Class statement
BeforeGetParameter event, 1165 CanCreateDocuments property in a declaration, 49
BeforeGetParameterName NotesACLEntry class, 743 Classes
event, 1166 CanCreateLSOrJavaAgent property LotusScript, 545
BeforeGetValue event, 1170 NotesACLEntry class, 744 Classes tab
BeforeLastRow event, 1180 CanCreatePersonalAgent property defined, 35
BeforeListDataSources event, 1109 NotesACLEntry class, 745 ClassName property
BeforeListFields event, 1110 CanCreatePersonalFolder property EmbeddedObject class, 1980
BeforeListProcedures event, 1111 NotesACLEntry class, 746 Classpath environment
BeforeListTables event, 1113 CanCreateSharedFolder property variables, 1592
BeforeLocateRow event, 1182 NotesACLEntry class, 747 Clear method
BeforeNextRow event, 1184 CanDeleteDocuments property NotesRichTextTab class, 1303
BeforeNumColumns event, 1185 NotesACLEntry class, 748 NotesUIDocument class, 1380
BeforePrevRow event, 1189 Canonical property NotesView class, 1479
BeforeRowPositionChange event, Name class, 2067 clear method
1163, 1180, 1182, 1184, 1189 NotesName class, 1078 RichTextTab class, 2182
BeforeSetParameter event, 1191 CaretCategory property View class, 2239
BeforeSetSQL event, 1119 NotesUIView class, 1423 ClearAllTabs method
BeforeSetValue event, 1193 Cascades, 81 NotesRichTextParagraphStyle
BeforeUpdateRow event, 1195 Case sensitive class, 1287
Begins function, 109, 178 ViewColumn class, 2286 clearAllTabs method
Bind keyword, 551 Cases RichTextParagraphStyle
Block statements changing, 112 class, 2169
Script Editor, 50 Formula Language, 63 ClearHistory method
Catalog database, 2138 NotesReplication class, 1257
Index-8
clearHistory method Comment property ConnectTo method
Replication class, 2146 Agent class, 1738 ODBCConnection class, 1103
Clearing NotesAgent class, 766 Constants
Script Editor, 42 NotesOutline class, 1198 Formula Language, 66
Click event NotesTimer class, 1344 time/date, 118
Button class, 784 Outline class, 2089 Contains function, 109, 186
Navigator class, 1087 CommitOnDisconnect property Contains method
ClientType function, 184 ODBCConnection class, 1099 NotesItem class, 1050
Close method CommitTransactions method containsValue method
NotesLog class, 1061 ODBCConnection class, 1102 Item class, 2037
NotesUIDocument class, 1381 Common property Converting
ODBCResultSet class, 1143 Name class, 2068 alphanumeric characters,
close method NotesName class, 1078 319, 390
Log class, 2051 CommonOwner property Converting data types
Close Window, 455 Agent class, 1739 in a formula, 105
Code NotesAgent class, 767 ConvertToZone method
locating within an object, 37 CommonUserName property NotesDateTime class, 897
Coding guidelines NotesSession class, 1307 convertToZone method
Java classes, 1591 Session class, 2187 DateTime class, 1874
LotusScript, 545 Compact method Copy method
CollapseAllSections method NotesDatabase class, 825 NotesUIDocument class, 1382
NotesUIDocument class, 1382 compact method CopyAllItems method
Collections Database class, 1814 NotesDocument class, 946
accessing with ViewEntry, 1629 Comparing copyAllItems method
Color property strings in a formula, 106 Document class, 1925
RichTextStyle class, 2174 Comparison operators Copying
Colors Formula Language, 72 text in Script Editor, 42
View class, 2219 Compile button CopyItem method
ViewColumn class, 2280 defined, 35 NotesDocument class, 947
Column formulas, 3, 16, 84, 123 Compiling copyItem method
Column titles, 2302 Java, 44 Document class, 1926
ColumnCount property JavaScript, 48 CopyItemToDocument method
NotesView class, 1464 LotusScript, 50 NotesItem class, 1051
View class, 2221 Components copyItemToDocument method
ColumnIndentLevel property Lotus, 715 Item class, 2038
NotesViewEntry class, 1542 Compose command, 417 CopyToDatabase method
ViewEntry class, 2306 ComposeDocument method NotesDocument class, 948
ColumnNames property NotesUIWorkspace class, 1431 copyToDatabase method
View class, 2222 Computed field formulas, 24, 84 Document class, 1928
Columns Computed fields, 4 Cos function, 114, 186
accessing in Java, 1626 ComputeWithForm method Count property
accessing in LotusScript, 581 NotesDocument class, 944 DocumentCollection class, 1957
getting in Java, 2257 computeWithForm method NotesDocumentCollection
Columns property Document class, 1923 class, 977
NotesView class, 1464 Concatenating NotesViewEntryCollection
View class, 2222 strings in a formula, 106 class, 1556
ColumnValues property Concatenation operator (+), 69 ViewEntryCollection, 2316
Document class, 1895 Conditional statements Country property
NotesDocument class, 911 Notes, 90 Name class, 2068
NotesViewEntry class, 1542 Conflicts NotesName class, 1079
ViewEntry class, 2307 IsConflict property, 2228 Create method
Command function, 76, 101, 184 Connection property NotesDatabase class, 561, 826
Command statement, 551 ODBCQuery class, 1115 CreateACLEntry method
Commands, 397 NotesACL class, 734
Index-9
createACLEntry method createName method createViewNav method
ACL class, 1703 Session class, 2197 View class, 2239
CreateAction command, 418 CreateNavigator command, 420 CreateViewNavFrom method
CreateAgent command, 418 CreateNewsletter method NotesView class, 1481
CreateControlledAccessSection NotesSession class, 1327 createViewNavFrom method
command, 419 createNewsletter method View class, 2241
CreateCopy method Session class, 2198 CreateViewNavFromCategory
NotesDatabase class, 561, 827 CreateObject method method
createCopy method NotesUIDocument class, 1383 NotesView class, 1482
Database class, 1815 CreateOutline method createViewNavFromCategory
Created function, 118, 187 NotesDatabase class, 831 method
Created property createOutline method View class, 2242
Database class, 1787 Database class, 1819 CreateViewNavFromChildren
Document class, 1896 CreatePolygon command, 421 method
NotesDatabase class, 796 CreatePolyline command, 421 NotesView class, 1483
NotesDocument class, 912 CreateRectangle command, 421 createViewNavFromChildren
NotesView class, 1465 CreateRectangularHotspot method
View class, 2223 command, 422 View class, 2244
createDatabase method createRegistration method CreateViewNavFromDescendants
DbDirectory class, 1881 Session class, 2198 method
CreateDateRange method CreateReplica method NotesView class, 1483
NotesSession class, 1323 NotesDatabase class, 561, 832 createViewNavFromDescendants
createDateRange method createReplica method method
Session class, 2195 Database class, 1820 View class, 2245
CreateDateTime method CreateReplyMessage method createViewNavMaxLevel method
NotesSession class, 1323 NotesDocument class, 949 View class, 2247
createDateTime method createReplyMessage method Creating
Session class, 2196 Document class, 1929 a full text index, 460
CreateDocument method CreateRichTextItem method script in Script Editor, 49
NotesDatabase class, 829 NotesDocument class, 950 CrossCertify method
createDocument method createRichTextItem method NotesRegistration class, 1234
Database class, 1816 Document class, 1930 crossCertify method
CreateEllipse command, 419 CreateRichTextParagraphStyle Registration class, 2123
CreateEntry method method Currency formats
NotesOutline class, 1200 NotesSession class, 1328 ViewColumn class, 2299
createEntry method createRichTextParagraphStyle CurrencyDigits property
Outline class, 2090 method International class, 2001
CreateFolder command, 419 Session class, 2199 NotesInternational class, 1020
CreateForm command, 420 CreateRichTextStyle method CurrencySymbol property
CreateFromTemplate method NotesSession class, 1329 International class, 2001
NotesDatabase class, 561, 830 createRichTextStyle method NotesInternational class, 1020
createFromTemplate method Session class, 2199 Current document
Database class, 1817 CreateSection command accessing in LotusScript, 603
CreateLayoutRegion command, 420 Formula Language, 422 Current documents
CreateLog method createSession method accessing, 125
NotesSession class, 1324 NotesFactory class, 1594, 1691 Current entry
createLog method CreateSubForm command, 422 ViewNavigator class, 2340
Session class, 2197 CreateTextbox command, 423 Current pointer
CreateMailDb property CreateTimer method NotesDocumentCollection
NotesRegistration class, 1225 NotesSession class, 1329 class, 976
Registration class, 2114 CreateView command, 423 CurrentAccessLevel property
CreateName method CreateViewNav method Database class, 1788
NotesSession class, 1325 NotesView class, 1480 NotesDatabase class, 797
Index-10
CurrentAgent property copying, 456 DbTitle function, 222
AgentContext class, 1759 copying in Java, 1815 DDEExecute function, 76, 223
NotesSession class, 1308 creating in Java, 1614 DDEInitiate function, 76, 225
CurrentCalendarDateTime property creating in LotusScript, 561 DDEPoke function, 76, 227
NotesUIWorkspace class, 1428 deleting, 456 DDETerminate function, 76, 228
CurrentDatabase property displaying ACL, 455 Debugger
AgentContext class, 1760 locating in Java, 1609 debugger utilities, 55
NotesSession class, 1309 new, 463 Debugging
NotesUIWorkspace class, 1428 new replica, 463 a formula, 81
CurrentDocument property opening in Java, 1610 breakpoints, 54
NotesUIWorkspace class, opening in LotusScript, 558 Java agent, 45
603, 1429 properties in Java, 1603 LotusScript, 51
CurrentField property properties in LotusScript, 554 DebugLotusScript command, 424
NotesUIDocument class, 1368 removing, 457 Decimals
CurrentRow property removing in Java, 1614 Formula Language, 67
ODBCResultSet class, 1133 replication settings, 570 DecimalSep property
CurrentView property searching for, 557 International class, 2004
NotesUIWorkspace class, 1430 switch server, 457 NotesInternational class, 1022
Cut method using replica ID, 466 Declarations
NotesUIDocument class, 1384 using server, 464 in Script Libraries, 57
Cutoff deletes, 2135 DataSourceName property Default keyword, 79, 125, 229
CutoffDate property ODBCConnection class, 1100 Default validation formulas, 84
NotesReplication class, 1247 Date Default value formulas, 4, 23, 84
Replication class, 2134 formatting, 68 Default views
CutoffDelete property Date function, 119, 188 View class, 2228
NotesReplication class, 1248 DateFmt property Defining
CutoffInterval property NotesViewColumn class, 1510 global variable and
NotesReplication class, 1248 ViewColumn class, 2278 subprogram, 48
Replication class, 2135 DateOnly property Deftype statement
Cutting text DateTime class, 1858 Script Area, 49
Script Editor, 42 NotesDateTime class, 883 Delay updates
DateRange class, 1654, 1849 isDelayUpdates method, 1794
Dates DelayUpdates property
D in LotusScript, 655 NotesDatabase class, 799
Data sources DateSep property Delete old documents, 2135
connecting to with LS:DO, 667 International class, 2002 DeleteDocument function, 102, 229
Data types NotesInternational class, 1021 DeleteDocument method
@functions, 76 DateTime class, 1654, 1854 NotesDocumentCollection
Formula Language, 63 DateTimeValue property class, 980
Database.FT_STEMS constant, 1769 Item class, 2016 NotesUIDocument class, 1385
Database class, 1776 NotesItem class, 1033 deleteDocument method
Database property Day function, 118, 190 DocumentCollection class, 1962
NotesOutlineEntry class, 1209 DbColumn function, 76, 128 DeleteEntry method
NotesUIDatabase class, 1351 Notes database, 101, 190 NotesViewEntryCollection
OutlineEntry class, 2101 ODBC, 131, 195 class, 1558
DatabaseReplSettings command, 423 DbCommand function, 131 deleteEntry method
Databases OBDC, 201 ViewEntryCollection class, 2318
accessing in Formula DBCS, 319 DeleteField function, 102, 125, 230
Language, 122 DbDirectory class, 1609, 1879 DeleteIDOnServer method
accessing in Java, 1603 DbExists function, 206 NotesRegistration class, 1235
accessing in LotusScript, 553 DbLookup function, 76, 102, 128, deleteIDOnServer method
closing in Java, 1610 131, 207, 214 Registration class, 2123
closing in LotusScript, 558 DbManager function, 122, 220 DeleteRole method
compacting and converting, 455 DbName function, 122, 221 NotesACL class, 735
Index-11
deleteRole method DesignViews command, 430 DocumentContext property
ACL class, 1704 DesignViewSelectFormula AgentContext class, 1769
DeleteRow method command, 431 Java, 1761
ODBCResultSet class, 1145 DialingRules command, 431 NotesSession class, 1310
Deleting DialogBox function, 76, 96, 230 Documents
a field, 64, 125, 230, 369 DialogBox method accessing, 575
a full text index, 460 NotesUIWorkspace class, 1433 accessing current, 603
Deletions, 2140, 2141 DialogBoxCanceled property accessing in Formula Language,
DescendantCount property NotesUIDocument class, 1369 125, 128
NotesViewEntry class, 1543 DIIOP server tasks, 1591 accessing in Java, 1631
ViewEntry class, 2308 Dim statement Accessing in LotusScript, 575
DeselectAll method Script Area, 49 accessing in LotusScript, 599
NotesUIDocument class, 1386 Disable replication, 2136, 2143 accessing properties in Java, 1632
Deselecting Disabled property accessing through a view in
text, 42 NotesReplication class, 1249 LotusScript, 615
Design hide, 2139 DisableRole method accessing with ViewEntry, 1628
DesignDocumentInfo command, 424 NotesACLEntry class, 761 adding in LotusScript, 614
DesignFormAttributes disableRole method collecting all in Java, 1635
command, 424 ACLEntry class, 1732 collecting all in LotusScript, 610
DesignFormFieldDef command, 425 Disabling copying in Java, 1640
DesignFormNewField @Commands, 77 copying in LotusScript, 622
command, 425 Disconnect method creating in Java, 1639
DesignForms command, 425 ODBCConnection class, 1105 creating in LotusScript, 621
DesignFormShareField Distinguished names, 315 deleting in LotusScript, 621
command, 425 Dividing, 113 getting all in Java, 1785
DesignFormUseField command, 426 Division operator (/) locating in Java, 1638
DesignFormWindowTitle Formula Language, 69, 71 locating in LotusScript, 614
command, 426 Do function, 78, 233 locating within a view in
DesignHelpAboutDocument Do not browse method, 2137 LotusScript, 617
command, 426 Do not catalog method, 2138 LotusScript properties, 599
DesignHelpUsingDocument DocChildren function, 102, 124, 234 mailing in Java, 1640
command, 427 DocDescendants function, 102, mailing in LotusScript, 623
DesignIcon command, 427 123, 236 removing in Java, 1639
DesignMacros command, 427 DocFields function, 126, 238 removing in LotusScript, 622
DesignRefresh command, 428 DocLength function, 126, 238 searching for in Java, 1637
DesignReplace command, 428 DocLevel function, 102, 123, 239 searching for in LotusScript, 612
DesignSharedFields command, 428 Doclinks Documents property
DesignSynopsis command, 429 appending in Java, 2153 NotesUIDatabase class, 1352
DesignTemplateName property DocMark function, 102, 126, 240 NotesUIView class, 1424
Database class, 1790 DocNumber function, 102, 123, 240 DocumentUniqueID function,
NotesDatabase class, 799 DocParentNumber function, 102, 126, 243
DesignViewAppendColumn 123, 241 Domain function, 246
command, 429 DocSiblings function, 102, 123, 242 Domain Search
DesignViewAttributes Document class, 1631, 1889 FTDomainSearch method in
command, 429 Document property Java, 1822
DesignViewColumnDef NotesOutlineEntry class, 1209 Domino classes
command, 429 NotesUIDocument class, 1370 A-Z reference, 1661
DesignViewEditActions command, NotesViewEntry class, 1544 LotusScript, 545
430 OutlineEntry class, 2101 Domino Directories
DesignViewFormFormula ViewEntry class, 2308 isPublicAddressBook
command, 430 DocumentCollection class, method, 1800
DesignViewNewColumn 1635, 1954 Domino logs
command, 430 openNotesLog method, 2060
Index-12
Domino objects EditInsertButton command, 440 EmbeddedObject class, 1646, 1978
table, 3 EditInsertFileAttachment EmbeddedObjects property
DominoAsynchronizeAgents command, 440 Document class, 1897
statement, 665 EditInsertObject command, 441 NotesDocument class, 913
DoNoBrowse property EditInsertPageBreak command, 442 NotesRichTextItem class, 1261
NotesReplication class, 1250 EditInsertPopup command, 442 RichTextItem class, 2149
DoNotCatalog property EditInsertTable command, 443 EmbedObject method
NotesReplication class, 1251 EditInsertText command, 443 NotesRichTextItem class, 1271
DoScore property EditLeft command, 444 embedObject method
NotesNewsletter class, 1090 EditLinks command, 444 RichTextItem class, 2157
DoSubject property EditLocations command, 445 Emboss effect
NotesNewsletter class, 1091 EditMakeDocLink command, 445 NotesRichTextStyle class, 1293
Double item values EditMode property RichTextStyle class, 2175
getting in Java, 1938 NotesUIDocument class, 1371 Empty strings, 367
DoVerb method EditNextField command, 445 EmptyTrash command, 453
NotesEmbeddedObject EditOpenLink command, 445 EnableAlarms function, 248
class, 1005 EditPaste command, 446 EnableAlarms method
doVerb method EditPasteSpecial command, 446 NotesUIWorkspace class, 1439
EmbeddedObject class, 1984 EditPhoneNumbers command, 446 Enabled property
Driver Manager for ODBC, 667 EditPrevField command, 447 NotesTimer class, 1344
EditProfile command, 447 EnableFolder method
EditProfile method NotesDatabase class, 833
E NotesUIWorkspace class, 1438 enableFolder method
ECL security EditResizePicture command, 448 Database class, 1821
@Commands, 397 EditRight command, 449 EnableRole method
@Functions, 153 EditSelectAll command, 449 NotesACLEntry class, 762
Java, 1661 EditSelectByDate command, 450 enableRole method
LotusScript, 721 EditShowHideHiddenChars ACLEntry class, 1733
Edit Project button command, 450 Enabling
defined, 35 EditTableDeleteRowColumn breakpoints, 55
EditBottom command, 431 command, 450 Encrypt method
EditButton command, 432 EditTableFormat command, 451 NotesDocument class, 951
EditClear command, 432 EditTableInsertRowColumn encrypt method
EditCopy command, 432 command, 451 Document class, 1931
EditCut command, 433 EditTop command, 452 Encrypt on send
EditDeselectAll command, 433 EditUndo command, 452 Document class, 1902
EditDetach command, 434 EditUntruncate command, 452 EncryptionKeys property
EditDocument command, 435 EditUp command, 453 Document class, 1899
EditDocument method EditUserECL function, 247 NotesDocument class, 915
NotesUIWorkspace class, 1437 EffectiveUserName property EncryptOnSend property
EditDown command, 436 AgentContext class, 1762 NotesDocument class, 916
EditECL function, 246 NotesSession class, 1313 EndDateTime property
EditEncryptionKeys command, 436 Effects property DateRange class, 1852
EditFind command, 437 NotesRichTextStyle class, 1293 NotesDateRange class, 877
EditFindInPreview command, 437 RichTextStyle class, 2175 Ends function, 109, 248
EditFindNext command, 438 Elements function, 87, 247 Entering event
EditGotoField command, 438 Embedded objects Field class, 1007
EditHeaderFooter command, 439 accessing in Java, 1646 EntryClass property
EditHorizScrollbar command, 439 appending in Java, 2157 NotesOutlineEntry class, 1210
EditIndent command, 439 getting in Java, 2149, 2159 OutlineEntry class, 2102
EditIndentFirstLine command, 440 hasEmbedded method, 1901 Environment function, 97, 102, 250
Editing text in LotusScript, 640 Environment keyword, 79, 102, 249
in the Script Area, 40
Index-13
Environment variables, 97 accessing a view or folder locating a document within a
accessing in Java, 1649 column, 583 view, 617
getting in Java, 2205, 2207 accessing an external locating a view, 1625
in LotusScript, 649 database, 132 locating a view and folder, 580
setting in Java, 2210 accessing outside data, 130 locating and extracting
Equals operator (=) accessing the current database substring, 110
Formula Language, 69 and view, 124 opening and closing a database,
Error function, 99, 253 accessing the current document, 558, 1610
Error handling 127, 607 performing time-date
in LotusScript, 698 adding a new line, 112 operation, 119
ODBC, 693 arithmetic operation, 115 removing a database, 1614
Errors changing case, 112 removing a document, 622
handling, 98 collecting all documents, 1636 removing a view and folder, 585
handling in Java, 1669 collecting documents by removing an item, 634
logError method, 2053 searching, 1637 repeating, 112
no main or selection expression collecting unprocessed replicating a database, 1614
in formula, 258 documents, 611 run-time errors, 100
run-time in a formula, 99 compacting a database, 1614 section access formula, 18
saving LotusScript with, 50 concatenating, 107 section title formula, 19
syntax in a formula, 99 converting a data type, 106 selection formula, 15
when compiling, 50 converting between Notes and SmartIcons, 5
Errors box LotusScript time, 656 text constants, 66
defined, 34 copying an item, 633 trimming, 112
using, 39 creating a database, 561, 1614 user environment, 121
Escape character (~), 66 creating a document, 621 using a conditional statement, 92
evaluate method creating an item in Formula using an OCX control, 717
Session class, 2200 Language, 631 using keywords, 79
Evaluate statement database properties in Formula value formula, 24
in Domino, 549 Language, 556 view and folder properties,
Event handling database properties in Java, 1606 579, 1623
ODBC, 690 Default keyword, 229 window title formula, 17
Event sequences document properties, 602, 1634 working with a list, 88
table, 29 environment variables, 649 working with an embedded
Events error handling, 713 object, 640
in a database, 19 Evaluate statement, 550 working with rich text item, 637
in a field, 19 filling out form with writing a button script or
in a form, 19 @DialogBox, 97 formula, 12
in a view, 19 form formula, 15 writing a default value
logEvent method, 2055 getting an item and its value, 628 formula, 23
overview, 3, 25 getting and setting environment writing a replication formula, 6
Sequencing, 29 variables, 98 writing a script and a formula, 20
Examples getting user input with writing a script for an action, 10
@Commands, 401, 418, 434, 435, @Prompt, 96 writing a script for an agent, 7
441, 442, 443, 444, 448, 449, hidden paragraph formula, 19 writing an @function with a
453, 454, 459, 463, 465, 467, input translation formula, 23 result, 85
472, 497, 500, 516, 517, 520, input validation formula, 23 writing an action formula, 86
523, 532 insert subform formula, 18 writing formula for an agent, 7
@Functions, 154, 178, 189, 195, item properties, 626, 1642 writing message with
247, 264, 278, 284, 294, 316, keyword field formula, 25 @Prompt, 93
337, 347, 361, 363, 364, 365, lexical elements, 62 writing script/formula for an
366, 367, 368, 369, 385 locating a database, 557, 1609 action, 10
access control list, 566, 1618 locating a document by ID, Exceptions
accessing a Notes agent, 651 614, 1638 handling in Java, 1669
Index-14
ExchangeUnreadMarks FieldAppendText method FileNewDatabase command, 463
command, 454 NotesUIDocument class, 1387 FileNewReplica command, 463
ExecProcedure Method FieldClear method FileOpenDatabase command, 464
ODBCResultSet class, 1147 NotesUIDocument class, 1389 FileOpenDBRepID command, 466
Execute command, 454 FieldContains method FilePageSetup command, 467
Execute method NotesUIDocument class, 1390 FilePath property
ODBCResultSet class, 1147 FieldExpectedDataType method Database class, 1791
Execute statement, 552 ODBCResultSet class, 1149 NotesDatabase class, 801
Exiting FieldGetText method FilePrint command, 468
a file, 457 NotesUIDocument class, 1391 FilePrintSetup command, 470
Exiting event FieldHelp property Files
Field class, 1007 NotesUIDocument class, 1372 closing in LotusScript, 548
Exp function, 114, 254 FieldID method extracting in Java, 1985
ExpandAllSections method ODBCResultSet class, 1153 printing, 468
NotesUIDocument class, 1387 FieldInfo method saving, 470
Expiration property ODBCResultSet class, 1154 saving a new version, 470
NotesRegistration class, 1226 FieldName method FileSave command, 470
Registration class, 2115 ODBCResultSet class, 1158 FileSaveNewVersion command, 470
Explode function, 87, 254 FieldNativeDataType method FileSize property
Exploring ODBCResultSet class, 1159 EmbeddedObject class, 1981
Java interface, 35 Fields NotesEmbeddedObject class, 995
LotusScript debugger, 51 accessing in Formula FindFreeTimeDialog command, 471
Programmer's pane, 33 Language, 125 FindFreeTimeDialog method
Export button Formula Language, 63 NotesUIDocument class, 1393
defined, 35 Fields property FindFreeTimeDialogEx method
Exporting Form class, 1989 NotesUIDocument class, 1395
a file, 458 NotesForm class, 1010 Finding
text in Formula Language, 42 FieldSetText method text in Script Editor, 42
text in Script Editor, 42 NotesUIDocument class, 1392 FindString method
External databases FieldSize method NotesUIDocument class, 1397
accessing in LotusScript, 661 ODBCResultSet class, 1161 FirstLineLeftMargin property
ExtractFile method File attachments NotesRichTextParagraphStyle
NotesEmbeddedObject class, editing, 440 class, 1279
1005 FileCloseWindow command, 455 RichTextParagraphStyle
extractFile method FileDatabaseACL command, 455 class, 2165
EmbeddedObject class, 1985 FileDatabaseCompact FirstRow method
Extrude effect command, 455 ODBCResultSet class, 1162
NotesRichTextStyle class, 1293 FileDatabaseCopy command, 456 FitBelowFields property
RichTextStyle class, 2175 FileDatabaseDelete command, 456 NotesEmbeddedObject class, 996
FileDatabaseInfo command, 456 FitToWindow property
FileDatabaseRemove command, 457 NotesEmbeddedObject class, 997
F FileDatabaseUseServer Fixed formats
Failure function, 99, 102, 257 command, 457 ViewColumn class, 2299
False function, 257 FileExit command, 457 Folder command, 472
FetchBatchSize property FileExport command, 458 Folder method
ODBCResultSet class, 1135 FileFullTextCreate command, 460 NotesUIWorkspace class, 1439
Field class, 1007 FileFullTextDelete command, 460 FolderCollapse command, 473
Field design formulas FileFullTextInfo command, 460 FolderCustomize command, 473
writing, 22 FileFullTextUpdate command, 461 FolderExpand command, 474
Field function, 102 FileImport command, 461 FolderExpandAll command, 474
Field keyword, 65, 79, 125, 258 FileName property FolderExpandWithChildren
Field values Database class, 1791 command, 474
Formula Language, 64 NotesDatabase class, 801 FolderMove command, 475
Index-15
FolderProperties command, 475 filling out, 96 FormUsers property
FolderReferences property, 1900 naming in a formula, 81 Form class, 1990
Document class, 1899 Forms property NotesForm class, 1011
NotesDocument class, 917 Database class, 1794 Forward method
FolderReferencesEnabled property NotesDatabase class, 804 NotesUIDocument class, 1398
Database class, 1792 FormTestDocument command, 476 Frame
NotesDatabase class, 802 Formula language SetTargetFrame, 354
FolderRename command, 475 @functions, 75 Frameset
Folders coding guidelines, 83 definition, 494
accessing properties in Java, 1621 constants, 66 FrameText property
accessing properties in debugging, 81 NotesOutlineEntry class, 1211
LotusScript, 578 fields, 63 OutlineEntry class, 2103
locating in Java, 1625 icon, 38 FreeTimeSearch method
locating in LotusScript, 580, 615 in LotusScript, 549 NotesSession class, 1331
removing in Java, 1631 in the Programmer's pane, 58 freeTimeSearch method
Font property keywords, 79 Session class, 2202
RichTextStyle class, 2176 lexical elements, 61 FT_DATE_ASC constant, 834, 836,
FontColor property list operations, 72 864, 1769, 1822, 1824
NotesViewColumn class, 1510 numeric constants, 67 FT_DATE_DES constant, 834, 836,
ViewColumn class, 2280 overview, 1 864, 1769, 1822, 1824
FontFace property precedence, 69 FT_SCORES constant, 834, 836, 864,
NotesViewColumn class, 1512 rules, 61 1769, 1822, 1824
ViewColumn class, 2282 syntax, 61 FT_STEMS constant, 834, 836, 865,
FontList function, 259 temporary variables, 65 1769, 1822, 1824
FontPointSize property text constants, 66 FTDomainSearch method
NotesViewColumn class, 1512 time/date constants, 67 Database class, 1822
ViewColumn class, 2283 using an operator, 68 NotesDatabase class, 834
FontSize property variables, 63 FTSearch method
NotesRichTextStyle class, 1294 Formula operations, order of Database class, 1823
RichTextStyle class, 2177 evaluation, 70 DocumentCollection class, 1964
FontStyle property Formula property NotesDatabase class, 835
NotesViewColumn class, 1513 NotesOutlineEntry class, 1210 NotesDocumentCollection
ViewColumn class, 2283 NotesViewColumn class, 1514 class, 981
Form class, 1619, 1986 OutlineEntry class, 2102 NotesView class, 1484
Form fields ViewColumn class, 2284 NotesViewEntryCollection
Formula Language, 64 Formula windows class, 1559
Form formulas, 3, 15, 84 using, 58 View class, 2248
FormActions command, 476 Programmer's pane, 58 ViewEntryCollection class, 2320
FormatDocument method Formulas FTSearchScore property
NotesNewsletter class, 1092 entering, 58 Document class, 1900
formatDocument method hiding, 498 NotesDocument class, 919
Newsletter class, 2081 in the Programmer's pane, 58 NotesViewEntry class, 1544
FormatMsgWithDoclinks method performing an action, 85 ViewEntry class, 2309
NotesNewsletter class, 1094 refreshing, 498 Full-text indexes
formatMsgWithDoclinks method result of, 84 isFTIndexed method, 1796
Newsletter class, 2083 using, 83 updateFTIndex method, 1848
Formatted text versus a script, 1 Full-text searches
getting in Java, 2160 where to use, 1 clearing in Java, 2239
Formatting writing, 6 FTDomainSearch method in
in the Script Area, 39 Formulas for SmartIcons Java, 1822
time and date, 67 writing, 5 FTSearch method in Java, 1823
Forms FormUsers field, 1011 FTSearchScore property, 1900
accessing in Java, 1619 in Java, 1637, 2248
accessing in LotusScript, 575 in LotusScript, 613, 616
Index-16
Full text indexes getAlias method getColor method
creating, 460 Outline class, 2088 RichTextStyle class, 2174
deleting, 460 OutlineEntry, 2100 getColumn method
infomation, 460 getAliases method View class, 2257
updating, 461 Form class, 1988 getColumnCount method
Function View class, 2217 View class, 2221
renaming, 43 getAlignment method getColumnIndentLevel method
Function block RichTextParagraphStyle ViewEntry class, 2306
Script Area, 49 class, 2164 getColumnNames method
Functions ViewColumn class, 2277, 2285 View class, 2222
calling, 552 getAllDocuments method getColumns method
Database class, 1785 View class, 2222
GetAllDocumentsByKey method getColumnValues method
G NotesView class, 1486 Document class, 1895
getIndentLevel method getAllDocumentsByKey method ViewEntry class, 2307
ViewEntry, 2309 View class, 2251 getComment method
ViewEntry class, 2306 getAllEntries method Agent class, 1738
General formats View class, 2218 Outline class, 2089
ViewColumn class, 2299 GetAllEntriesByKey method getCommon method
Generation property NotesView class, 1488 Name class, 2068
Java, 2068 getAllEntriesByKey method getCommonOwner method
NotesName class, 1079 View class, 2253 Agent class, 1739
getAbbreviated method getAMString method getCommonUserName method
Name class, 2065 International class, 2000 Session class, 2187
getACL method GetAttachment method getCount method
Database class, 1783 NotesDocument class, 952 DocumentCollection class, 1957
getAddr821 method getAttachment method ViewEntryCollection, 2316
Name class, 2065 Document class, 1933 getCountry method
getAddr822Comment1 method getAuthors method Name class, 2068
Name class, 2065 Document class, 1893 getCreated method
getAddr822Comment2 method getBackgroundColor method Database class, 1787
Name class, 2066 View class, 2219 Document class, 1896
getAddr822Comment3 method getBold method View class, 2223
Name class, 2066 RichTextStyle class, 2174 getCreateMailDb method
getAddr822LocalPart method getCacheSize method Registration class, 2114
Name class, 2066 ViewNavigator class, 2336 getCurrencyDigits method
getAddr822Phrase method getCanonical method International class, 2001
Name class, 2067 Name class, 2067 getCurrencySymbol method
getAddressBooks method getCategories method International class, 2001
Session class, 2185 Database class, 1786 getCurrent method
getADMD method getCertifierIDFile method ViewNavigator class, 2340
Name class, 2067 Registration class, 2114 getCurrentAccessLevel method
GetAgent method GetChild method Database class, 1788
NotesDatabase class, 838 NotesView class, 1489 getCurrentAgent method
getAgent method NotesViewNavigator class, 1574 AgentContext class, 1759
Database class, 1826 getChild method getCurrentDatabase method
getAgentContext method View class, 2256 AgentContext class, 1760
Session class, 2187 ViewNavigator class, 2337 getCutoffDate method, 2134
getAgentOutput method, 1594 getChildCount method Replication class, 2134
AgentBase class, 1668 ViewEntry class, 2306 getCutoffInterval method, 2135
getAgents method getClassName method Replication class, 2135
Database class, 1784 EmbeddedObject class, 1980 GetDatabase method
NotesSession class, 1333
Index-17
getDatabase method getEmbeddedObject method getFirst method
OutlineEntry class, 2101 RichTextItem class, 2159 Outline class, 2091
Session class, 2203 getEmbeddedObjects method ViewNavigator class, 2340
getDateFmt method Document class, 1897 GetFirstDatabase method
ViewColumn class, 2278 RichTextItem class, 2149 NotesDbDirectory class, 557, 902
getDateOnly property getEndDateTime method getFirstDatabase method
DateTime class, 1858 DateRange class, 1852 DbDirectory class, 1883
getDateSep method GetEntry method GetFirstDocument method
International class, 2002 NotesACL class, 736 NotesDocumentCollection
getDateTimeValue method NotesViewEntryCollection class, 983
Item class, 2016 class, 1560 NotesView class, 1494
GetDbDirectory method NotesViewNavigator class, 1575 NotesViewNavigator class, 1577
NotesSession class, 1334 getEntry method getFirstDocument method
getDbDirectory method ACL class, 1705 DocumentCollection class, 1967
Session class, 2204 ViewEntryCollection class, 2321 View class, 2262
getDecimalSep methody GetEntryByKey method ViewNavigator class, 2342
International class, 2004 NotesView class, 1493 GetFirstEntry method
getDescendantCount method getEntryByKey method NotesACL class, 737
ViewEntry class, 2308 View class, 2260 NotesViewEntryCollection
getDesignTemplateName method getEntryClass method class, 1561
Database class, 1790 OutlineEntry class, 2102 getFirstEntry method
GetDocField function, 129, 259 GetEnvironmentString method ACL class, 1707
GetDocument method NotesSession class, 1335 ViewEntryCollection class, 2323
NotesDocumentCollection getEnvironmentString method GetFirstItem method
class, 982 Session class, 2205 NotesDocument class, 953
getDocument method GetEnvironmentValue method getFirstItem method
DocumentCollection class, 1965 NotesSession class, 1336 Document class, 1934
OutlineEntry class, 2101 getEnvironmentValue method getFirstLineLeftMargin method
ViewEntry class, 2308 Session class, 2207 RichTextParagraphStyle
GetDocumentByID method GetError method class, 2165
NotesDatabase class, 839 ODBCConnection class, 1106 getFolderReferences method, 1900
getDocumentByID method ODBCQuery class, 1121 Document class, 1899
Database class, 1827 ODBCResultSet class, 1164 getFolderReferencesEnabled method
GetDocumentByKey method GetErrorMessage method Database class, 1792
NotesView class, 1490 ODBCConnection class, 1106 getFont method
getDocumentByKey method ODBCQuery class, 1121 RichTextStyle class, 2176
View class, 2258 ODBCResultSet class, 1164 getFontColor method
GetDocumentByUNID method getExpiration method ViewColumn class, 2280
NotesDatabase class, 841 Registration class, 2115 getFontFace method
getDocumentByUNID method GetExtendedErrorMessage method ViewColumn class, 2282
Database class, 1828 ODBCConnection class, 1106 getFontPointSize method
GetDocumentByURL method ODBCQuery class, 1127 ViewColumn class, 2283
NotesDatabase class, 842 ODBCResultSet class, 1164 getFontSize method
getDocumentByURL method getFields method RichTextStyle class, 2177
Database class, 1830 Form class, 1989 getFontStyle method
getDocumentContext method, 1761 getFileName method ViewColumn class, 2283
AgentContext class, 1769 Database class, 1791 GetForm method
getEffectiveUserName method getFilePath method NotesDatabase class, 844
AgentContext class, 1762 Database class, 1791 getForm method
getEffects method getFileSize method Database class, 1794, 1832
RichTextStyle class, 2175 EmbeddedObject class, 1981 GetFormattedText method
GetEmbeddedObject method GetFirst method NotesRichTextItem class, 1276
NotesRichTextItem class, 1274 NotesOutline class, 1200 getFormattedText method
NotesViewNavigator class, 1576 RichTextItem class, 2160
Index-18
getFormula method getKeyword method GetLSDOMasterRevision property
OutlineEntry class, 2102 Name class, 2070 ODBCConnection class, 1101
ViewColumn class, 2284 getLabel method getManagers method
getFormUsers method OutlineEntry class, 2107 Database class, 1803
Form class, 1990 getLanguage method getMaxLevel method
getFrameText method Name class, 2070 ViewNavigator class, 2336
OutlineEntry class, 2103 GetLast method getMaxSize method
getFTSearchScore method NotesOutline class, 1201 Database, 1804
Document class, 1900 NotesViewNavigator class, 1578 Database class, 1803
ViewEntry class, 2309 getLast method getMinPasswordLength method
getGeneration method, 2068 Outline class, 2092 Registration class, 2116
getGiven method ViewNavigator class, 2343 GetName method
Name class, 2069 getLastAccessed property View class, 2234
getGMTTime method Document class, 1911 getName method
DateTime class, 1859 GetLastDocument method ACLEntry class, 1726
getHeaderLines method NotesDocumentCollection Agent class, 1746
View class, 2224 class, 984 DbDirectory class, 1880
GetIDFromServer method NotesView class, 1495 EmbeddedObject class, 1981
NotesRegistration class, 1236 NotesViewNavigator class, 1579 Form class, 1995
getIDFromServer method getLastDocument method Item class, 2024
Registration class, 2124 DocumentCollection class, 1967 Outline class, 2089
getIDType method View class, 2263 getNamedElement method
Registration class, 2115 ViewNavigator class, 2345 OutlineEntry class, 2107
getImagesText method GetLastEntry method getNameObject method
OutlineEntry class, 2105 NotesViewEntryCollection ACLEntry class, 1727
getInitials method class, 1562 getNameOfProfile method
Name class, 2069 getLastEntry method Document class, 1912
getInterLineSpacing method ViewEntryCollection class, 2324 GetNext method
RichTextParagraphStyle getLastExitStatus method NotesOutline class, 1202
class, 2165 AgentContext class, 1763 NotesViewNavigator class, 1579
getInternational method getLastFTIndexed method getNext method
Session class, 2188 Database class, 1801 Outline class, 2093
getInternetLevel method getLastModified method ViewNavigator class, 2346
ACL class, 1697 Database class, 1802 GetNextCategory method
getIOR method Document class, 1912 NotesViewNavigator class, 1580
NotesFactory class, 1691 Item class, 2024 getNextCategory method
getItalic method View class, 2233 ViewNavigator class, 2346
RichTextStyle class, 2177 getLastRun method GetNextDatabase method
getItemName method Agent class, 1744 NotesDbDirectory class, 557, 903
ViewColumn class, 2296 getLastRun session getNextDatabase method
getItems method AgentContext class, 1764 DbDirectory class, 1884
Document class, 1910 getLeftMargin method GetNextDocument method
GetItemValue method, 956 RichTextParagraphStyle NotesDocumentCollection
getItemValue method class, 2166 class, 984
Document class, 1936 getLevel method NotesView class, 1496
getItemValueDouble method ACLEntry class, 1724 NotesViewNavigator class, 1581
Document class, 1938 OutlineEntry class, 2107 getNextDocument method
getItemValueInteger method GetListOfTunes method DocumentCollection class, 1967
Document class, 1938 NotesUIWorkspace class, 1440 View class, 2264
getItemValueString method getListSep property ViewNavigator class, 2347
Document class, 1939 ViewColumn class, 2297 GetNextEntry method
getKey method getLocalTime method NotesACL class, 738
Document class, 1911 DateTime class, 1861 NotesViewEntryCollection
class, 1563
Index-19
getNextEntry method getOrgUnit3 method getPlatform method
ACL class, 1708 Name class, 2075 Session class, 2191
ViewEntryCollection, 2325 getOrgUnit4 method getPMString method
GetNextSibling method Name class, 2075 International class, 2009
NotesOutline class, 1202 GetOutline method GetPortsList function, 260
NotesView class, 1497 NotesDatabase class, 845 GetPos method
NotesViewNavigator class, 1582 getOutline method NotesViewNavigator class, 1585
getNextSibling method Database class, 1833 getPos method
Outline class, 2093 getOwner method ViewNavigator class, 2351
View class, 2266 Agent class, 1746 GetPosition method
ViewNavigator class, 2348 getPagination method NotesViewEntry class, 1553
getNoChronos method, 2143 RichTextParagraphStyle getPosition method
getNoteID method class, 2166 ViewColumn class, 2300
Document class, 1912 GetParameter method ViewEntry class, 2313
ViewEntry class, 2312 ODBCResultSet class, 1164 getPosition property
getNotesVersion method GetParameterName method RichTextTab class, 2181
Session class, 2190 ODBCResultSet class, 1166 GetPrev method
GetNth method GetParent method NotesOutline class, 1204
NotesViewNavigator class, 1583 NotesOutline class, 1203 NotesViewNavigator class, 1586
getNth method NotesViewNavigator class, 1584 getPrev method
ViewNavigator class, 2349 getParent method, 2075 Outline class, 2095
GetNthDocument method ACL class, 1700 ViewNavigator, 2352
NotesDocumentCollection ACLEntry class, 1728 ViewNavigator class, 2349
class, 985 Agent class, 1747 GetPrevCategory method
NotesView class, 1499 Database class, 1805 NotesViewNavigator class, 1587
getNthDocument method DateRange class, 1853 getPrevCategory method
DocumentCollection class, 1969 DateTime class, 1863 ViewNavigator class, 2353
View class, 2267 DbDirectory class, 1881 GetPrevDocument method
GetNthEntry method DocumentCollection class, 1959 NotesDocumentCollection
NotesViewEntryCollection EmbeddedObject class, 1982 class, 987
class, 1564 International class, 2009 NotesView class, 1502
getNthEntry method Item class, 2024 NotesViewNavigator class, 1588
ViewEntryCollection, 2326 Newsletter class, 2080 getPrevDocument method
getNumActions method Outline class, 2094 DocumentCollection class, 1971
Log class, 2048 RichTextStyle class, 2178 View class, 2270
getNumberAttrib property View class, 2235 ViewNavigator class, 2354
ViewColumn class, 2297 ViewEntry class, 2312 GetPrevEntry method
getNumberDigits property ViewEntryCollection, 2316 NotesViewEntryCollection
ViewColumn class, 2299 ViewNavigator class, 2350 class, 1565
getNumErrors method getParentDatabase method getPrevEntry method
Log class, 2049 Document class, 1913 ViewEntryCollection, 2327
GetObject method GetParentDocument method GetPrevSibling method
NotesUIDocument class, 1399 NotesView class, 1501 NotesOutline class, 1205
getObject method getParentDocument method NotesView class, 1503
EmbeddedObject class, 1982 View class, 2268 NotesViewNavigator class, 1589
getOrganization method getParentDocumentUNID method getPrevSibling method
Name class, 2074 Document class, 1914 Outline class, 2095
getOrgUnit method getParents method View class, 2271
Registration class, 2117 Log class, 2050 ViewNavigator class, 2354
getOrgUnit1 method getParentView method getPriority method, 2144
Name class, 2074 Document class, 1915 getPRMD method
getOrgUnit2 method ViewNavigator class, 2337 Name class, 2076
Name class, 2074 getPercentUsed method GetProfileDocCollection method
Database class, 1805 NotesDatabase class, 847
Index-20
getProfileDocCollection method getSizeQuota method getTomorrow method
Database class, 1834 Database class, 1810 International class, 2011
GetProfileDocument method getSource method getTopLevelEntryCount method
NotesDatabase class, 845 EmbeddedObject class, 1982 View class, 2238
getProfileDocument method getSpacing method getType method
Database class, 1835 View class, 2237 EmbeddedObject class, 1983
GetProfileField function, 261 getSpacingAbove method Item class, 2026
getProgramName method RichTextParagraphStyle OutlineEntry, 2108
Log class, 2050 class, 2168 OutlineEntry class, 2105
getQuery method getSpacingBelow method getType property
Agent class, 1748 RichTextParagraphStyle RichTextTab class, 2182
DocumentCollection class, 1960 class, 2168 getUnderline method
ViewEntryCollection, 2317 getStartDateTime method RichTextStyle class, 2179
getReaders method DateRange class, 1853 getUniveralID method
View class, 2236 getStoreIDToAddressBook property ViewEntry class, 2313
getRegistrationLog method Registration class, 2118 getUniversalID method
Registration class, 2117 getStrikethrough method Document class, 1919
getRegistrationServer method RichTextStyle class, 2178 View class, 2238
Registration class, 2117 getSubjectItemName method getUnprocessedDocuments method
getReplicaID method Newsletter class, 2080 AgentContext class, 1766
Database class, 1806 getSummary method getUpdateAddressbook method
getReplicationInfo method Item class, 2023 Registration class, 2118
Database class, 1807 getSurName method getURL method
getResponses method Name class, 2076 Java classes, 1694
Document class, 1916 getTabs method OutlineEntry class, 2108
getRightMargin method RichTextParagraphStyle getURLDatabase method
RichTextParagraphStyle class, 2169 Session class, 2209
class, 2167 getTemplateName method GetURLHeaderInfo method
getRoles method Database class, 1811 NotesDatabase class, 847
ACL class, 1701 getText method getURLHeaderInfo method
ACLEntry class, 1729 Item class, 2026 Database class, 1836
getRowLines method getThousandsSep method GetUserInfo method
View class, 2237 International class, 2010 NotesRegistration class, 1237
GetRowStatus method getTimeDateFormat method getUserInfo method
ODBCResultSet class, 1167 ViewColumn class, 2301 Registration class, 2124
getSavedData method getTimeFormat method getUserName method
AgentContext class, 1765 ViewColumn class, 2301 Session class, 2193
GetSelectedText method getTimeOnly property getUserNameList method
NotesUIDocument class, 1400 DateTime class, 1863 Session class, 2194
getServer method getTimeSep method getUserNameObject method
Database class, 1808 International class, 2010 Session class, 2194
getServerName method getTimeZone method getUserType method
Agent class, 1749 DateTime class, 1864 ACLEntry class, 1730
Session class, 2192 International class, 2010 GetValue method
getSession method getTimeZoneFormat method ODBCResultSet class, 1169
AgentBase class, 1668 ViewColumn class, 2302 getValueDouble method
AppletBase class, 1668 Getting Item class, 2029
getSiblingCount method user input, 93 getValueInteger method
ViewEntry class, 2313 getTitle method Item class, 2030
getSigner method Database class, 1812 getValueLength method, 2030
Document class, 1918 NotesViewColumn class, 2302 getValues method
getSize method, 1809 getToday method Item class, 2031
Document class, 1918 International class, 2011 getValueString method
Item class, 2033
Index-21
getVerbs method gotoPos method HelpMessages command, 478
EmbeddedObject class, 1983 ViewNavigator class, 2366 HelpReleaseNotes command, 478
getVerifier method gotoPrev method HelpTableOfContents
Document class, 1920 ViewNavigator class, 2367 command, 478
GetView method gotoPrevCategory method HelpUsingDatabase command, 479
NotesDatabase class, 577, ViewNavigator class, 2367 HelpV3ReleaseMenuFinder
580, 849 gotoPrevDocument method command, 478
getView method ViewNavigator class, 2368 Hidden paragraph formulas, 3, 84
Database class, 1838 GotoPrevField method writing, 19
OutlineEntry class, 2109 NotesUIDocument class, 1402 HiddenChars property
getViews method gotoPrevSibling method NotesUIDocument class, 1373
Database class, 1813 ViewNavigator class, 2369 Hide action formulas, 3, 10
getWidth method GotoTop method HideDesign property
ViewColumn class, 2302 NotesUIDocument class, 1402 NotesReplication class, 1251
getYesterday method GoUpLevel command, 476 Hiding
International class, 2012 GrantAccess method a formula, 498
getZoneTime property NotesDatabase class, 850 Hierarchical views
DateTime class, 1866 grantAccess method View class, 2230
Given property Database class, 1839 History
Name class, 2069 Greater than operator (>) clear replication, 2146
NotesName class, 1079 Formula Language, 69 HorzScrollBar property
Global variables Greater than or equal to operator NotesUIDocument class, 1374
defining, 48 (>= or =>) HotSpotClear command, 479
GMTTime property Formula Language, 69 HotSpotProperties command, 479
DateTime class, 1859 Groups Hotspots, 4, 12
NotesDateTime class, 884 access in ACL, 1721 in a script and formula, 84, 85
GotoBottom method Hour function, 262
NotesUIDocument class, 1401 HTTP server tasks, 1591
gotoChild method
H
ViewNavigator class, 2355 HasChildren property
gotoEntry method NotesOutlineEntry class, 1212 I
ViewNavigator class, 2357 OutlineEntry class, 2103 Icons
GotoField method HasEmbedded property programming language, 38
NotesUIDocument class, 1401 Document class, 1901 ID files
gotoFirst method NotesDocument class, 920 getDocumentByID method, 1827
ViewNavigator class, 2358 HasItem method IDType property
gotoFirstDocument method NotesDocument class, 958 NotesRegistration class, 1226
ViewNavigator class, 2359 hasItem method Registration class, 2115
gotoLast method Document class, 1940 If directive, 548
ViewNavigator class, 2360 HasRowChanged method If function, 78, 90, 263
gotoLastDocument method ODBCResultSet class, 1171 Ignore deletes, 2140
ViewNavigator class, 2362 HeaderAlignment property Ignore destination deletes, 2141
gotoNext method NotesViewColumn class, 1515 IgnoreDeletes property
ViewNavigator class, 2363 ViewColumn class, 2285 NotesReplication class, 1252
gotoNextCategory method HeaderLines property IgnoreDestDeletes property
ViewNavigator class, 2364 NotesView class, 1466 NotesReplication class, 1253
gotoNextDocument method View class, 2224 ImagesText property
ViewNavigator class, 2365 Help command, 476 NotesOutlineEntry class, 1212
GotoNextField method HelpAboutDatabase command, 477 OutlineEntry class, 2105
NotesUIDocument class, 1402 HelpAboutNotes command, 477 Implode function, 87, 265
gotoNextSibling method HelpFunctions command, 477 Import Class Files button
ViewNavigator class, 2365 HelpIndex command, 477 defined, 36
gotoParent method HelpKeyboard command, 478 Import method, 1403
ViewNavigator class, 2366
Index-22
Imported Java InternetLevel property IsCategory property
Base Class box, 36 ACL class, 1697 NotesViewColumn class, 1517
Import Class Files button, 36 NotesACL class, 729 NotesViewEntry class, 1546
user interface, 36 Interval property ViewColumn class, 2286
Importing NotesTimer class, 1345 ViewEntry class, 2310
a file, 461 IOR, 1594 IsConflict property
text, 42 IsAbstract property NotesView class, 1468
Include directive, 548 Replication class, 2133 NotesViewEntry class, 1547
IndentLevel property IsAccentSensitiveSort property View class, 2228
NotesViewEntry class, 1545 NotesViewColumn class, 1515 ViewEntry class, 2310
ViewEntry, 2309 ViewColumn class, 2285 IsConnected method
ViewEntry class, 2306 IsAdminReaderAuthor property ODBCConnection class, 1106
Indexes, 2142 ACLEntry class, 1713 IsCurrencySpace property
Info List NotesACLEntry class, 749 International class, 2005
adjusting the size of, 37 IsAdminServer property NotesInternational class, 1023
Objects tab, 37 ACLEntry class, 1714 IsCurrencySuffix property
Reference tab, 37 NotesACLEntry class, 750 International class, 2005
using, 37 IsAgentEnabled function, 267 NotesInternational class, 1023
InheritedDocumentUniqueID IsAuthors property IsCurrencyZero property
function, 126, 266 Item class, 2016 International class, 2006
Initial object references, 1594 NotesItem class, 1034 NotesInternational class, 1024
Initials property IsAutoUpdate property IsCutoffDelete property
Name class, 2069 View class, 2225 Replication class, 2135
NotesName class, 1080 IsAvailable function, 126, 268 IsDateDMY property
InPreviewPane property IsBeginOfData method International class, 2006
NotesUIDocument class, 1374 ODBCResultSet class, 1173 NotesInternational class, 1024
Input translation formulas, 4, 23, 84 IsCalendar property IsDateMDY property
Input validation formulas, 4, 23 NotesView class, 1466 International class, 2007
InputBox statement, 552 View class, 2226 NotesInternational class, 1025
Insert subform formulas, 3, 18, 84 IsCanCreateDocuments property IsDateYMD property
writing, 18 ACLEntry class, 1714 International class, 2007
Insertion points IsCanCreateLSOrJavaAgent NotesInternational class, 1025
Script Area, 40 property IsDefaultView property
InsertSubForm command, 480 ACLEntry class, 1715 NotesView class, 1468
InsertText method IsCanCreatePersonalAgent property View class, 2228
NotesUIDocument class, 1404 ACLEntry class, 1716 IsDelayUpdates property
Integer function, 113, 266 IsCanCreatePersonalFolder property Database class, 1794
Integer item values ACLEntry class, 1717 IsDeleted property, 921
getting in Java, 1938 IsCanCreateSharedFolder property IsDirectoryCatalog property
Integers, 67 ACLEntry class, 1719 NotesDatabase class, 804
InterLineSpacing property IsCanDeleteDocuments property IsDisabled property
NotesRichTextParagraphStyle ACLEntry class, 1719 Replication class, 2135
class, 1280 IsCaseInsensitiveSort property IsDocBeingEdited function, 126, 270
RichTextParagraphStyle NotesViewColumn class, 1516 IsDocBeingLoaded function, 102,
class, 2165 IsCaseSensitiveSort property 126, 270
International class, 1652, 1998 ViewColumn class, 2286 IsDocBeingMailed function, 102,
International property IsCategorized property 126, 271
NotesSession class, 1314 NotesView class, 1467 IsDocBeingRecalculated function,
Session class, 2188 View class, 2227 102, 126, 272
International settings IsCategory function, 102, 124, 269 IsDocBeingSaved function, 102,
accessing in Java, 1652 126, 273
accessing in LotusScript, 653 IsDocTruncated function, 274
Index-23
IsDocument property IsHierarchical property IsOpen property
NotesViewEntry class, 1548 Name class, 2069 Database class, 1798
ViewEntry class, 2310 NotesName class, 1080 NotesDatabase class, 807
IsDoNotBrowse property NotesView class, 1470 IsOverwriteFile property
Replication class, 2137 View class, 2230 Log class, 2046
IsDoNotCatalog property IsIcon property IsPerson property
Replication class, 2138 Java, 2290 ACLEntry class, 1721
IsDoScore property NotesViewColumn class, 1521 NotesACLEntry class, 752
Newsletter class, 2079 IsIgnoreDeletes property IsPrivate property
IsDoSubject property Replication class, 2140 NotesOutlineEntry class, 1215
Newsletter class, 2079 IsIgnoreDestDeletes property NotesView class, 1472
IsDST property Replication class, 2141 OutlineEntry class, 2106
DateTime class, 1860 IsInThisDB property View class, 2231
International class, 2008 NotesOutlineEntry class, 1214 IsPrivateAddressBook property
NotesDateTime class, 885 OutlineEntry class, 2106 Database class, 1799
NotesInternational class, 1025 IsLogActions property NotesDatabase class, 808
IsEnabled property Log class, 2044 IsProfile property
Agent class, 1740 IsLogErrors property Java, 1904
NotesAgent class, 768 Log class, 2045 NotesDocument class, 923
IsEncrypted property IsMember function, 87, 276 IsProtected property
Item class, 2018 IsModalHelp function, 277 Item class, 2021
NotesItem class, 1035 IsModified property NotesItem class, 1037
IsEncryptOnSend property NotesView class, 1471 IsProtectReaders property
Document class, 1902 View class, 2230 Form class, 1992
IsEndOfData method IsMultiDbIndex property View class, 2232
ODBCResultSet class, 1175 Replication class, 2142 IsProtectUsers property, 1993
IsError function, 99, 274 IsMultiDbSearch property IsPublic property
IsExpandable function, 102, 124, 275 Database class, 1797 Agent class, 1743
IsField property NotesDatabase class, 807 NotesAgent class, 770
NotesViewColumn class, 1518 IsNames property IsPublicAddressBook property
ViewColumn class, 2287 Item class, 2020 Database class, 1800
IsFolder property NotesItem class, 1036 NotesDatabase class, 809
NotesView class, 1469 IsNeverReplicate property IsPublicReader property
View class, 2229 Replication class, 2143 ACLEntry class, 1722
IsFormula property IsNewDoc function, 102, 126, 278 NotesACLEntry class, 753
NotesViewColumn class, 1518 IsNewDoc property IsPublicWriter property
ViewColumn class, 2287 NotesUIDocument class, 1375 ACLEntry class, 1723
IsFTIndexed property IsNewNote property NotesACLEntry class, 754
Database class, 1796 Document class, 1903 IsReaders property
NotesDatabase class, 805 NotesDocument class, 922 Item class, 2021
IsGroup property IsNoChronos property NotesItem class, 1037
ACLEntry class, 1721 Replication class, 2143 IsResize property
NotesACLEntry class, 751 IsNorthAmerican property NotesViewColumn class, 1521
IsHidden property NotesRegistration class, 1227 ViewColumn class, 2290
NotesOutlineEntry class, 1213 Registration class, 2116 IsResortAscending property
NotesViewColumn class, 1519 IsNotesAgent property, 770 NotesViewColumn class, 1522
OutlineEntry class, 2105 Agent class, 1742 ViewColumn class, 2290
ViewColumn class, 2288 NotesAgent class, 769 IsResortDescending property
IsHideDesign property IsNotMember function, 87, 278 NotesViewColumn class, 1523
Replication class, 2139 IsNumber function, 105, 280 ViewColumn class, 2291
IsHideDetail property IsOnServer property IsResortToView property
NotesViewColumn class, 1520 NotesSession class, 1315 NotesViewColumn class, 1523
ViewColumn class, 2288 Session class, 2189 ViewColumn class, 2291
Index-24
IsResponse property IsSupported method getting in Java, 1643
Document class, 1905 ODBCConnection class, 1107 getting in LotusScript, 627
NotesDocument class, 924 IsText function, 105, 281 removing in Java, 1645, 1945
NotesViewColumn class, 1524 IsTime function, 105, 282 removing in LotusScript, 634
ViewColumn class, 2292 IsTime24Hour property Items property
IsResponseDoc function, 126, 280 International class, 2008 Document class, 1910
IsResultSetAvailable method NotesInternational class, 1026 NotesDocument class, 927
ODBCResultSet class, 1176 IsTotal property
IsRoleEnabled method NotesViewEntry class, 1549
NotesACLEntry class, 763 IsTotals property
J
isRoleEnabled method ViewEntry class, 2311 Java
ACLEntry class, 1734 IsUIDocOpen property compiling, 44
IsSaveMessageOnSend property NotesDocument class, 925 compiling and running, 1591
Document class, 1905 IsUnavailable function, 126, 282 dates, 1878
IsSaveToDisk property IsUniformAccess property Errors box, 39
Item class, 2022 ACL class, 1699 icon, 38
IsSecondaryResort property IsValid function, 283 in the Programmer's pane, 35
Formula Language, 1527 IsValid property overview, 1
ViewColumn class, 2293 Document class, 1909 Script Library, 57
IsSecondaryResortDescending NotesDocument class, 926 viewing output, 43
property NotesViewEntry class, 1549 Java agent, 46
NotesViewColumn class, 1527 ViewEntry class, 2311 adding files, 44
ViewColumn class, 2293 IsValidDate property debugging, 45
IsSentByAgent property NotesDateTime class, 886 Java classes
Document class, 1906 IsValueAltered method A-Z reference, 1591, 1661
IsServer property ODBCResultSet class, 1177 coding guidelines, 1591
ACLEntry class, 1723 IsValueNull method complete list, 1595
NotesACLEntry class, 755 ODBCResultSet class, 1179 Java Debug Console
IsShowTwistie property IsWebAgent property, 771 defined, 35
NotesViewColumn class, 1528 Agent class, 1744 Java interface
ViewColumn class, 2294 NotesAgent class, 771 Classes tab, 35
IsSigned property Italic property Compile button, 35
Document class, 1907 NotesRichTextStyle class, 1295 Edit Project button, 35
Item class, 2022 RichTextStyle class, 2177 Export button, 35
NotesDocument class, 924 Item class, 1640, 2012 Java Debug Console, 35
NotesItem class, 1038 Item values New Class button, 35
IsSignOnSend property getting in Java, 1936, 1938, 1939, JavaScript
Document class, 1908 2029, 2030, 2031, 2033 compiling, 48
IsSortDescending property replacing in Java, 1947 icon, 38
NotesViewColumn class, 1529 stampAll method, 1976 in the programmer's pane, 47
ViewColumn class, 2294 ItemName property overview, 1
IsSorted property NotesViewColumn class, 1531 page header, 48
DocumentCollection class, 1957 ViewColumn class, 2296 remark, 48
NotesDocumentCollection Items writing in a page header, 48
class, 977 accessing in Java, 1640 JavaScript databases
NotesViewColumn class, 1529 accessing in LotusScript, 624 agent output, 523
ViewColumn class, 2295 accessing properties in Java, 1641 JS Header
IsSubForm property accessing properties in using, 48
Form class, 1994 LotusScript, 625
NotesForm class, 1012
IsSummary property
copying in Java, 1644
copying in LotusScript, 633
K
Key property
Item class, 2023 creating in Java, 1644
Document class, 1911
NotesItem class, 1039 creating in LotusScript, 630
NotesDocument class, 928
Index-25
Keys LayoutElementProperties LocalTime property
searching by key in Java, 2251, command, 481 DateTime class, 1861
2253, 2258, 2260 LayoutElementSendToBack NotesDateTime class, 887
sorted column, 616 command, 481 LocateRow method
Keyword field formulas, 4, 24 LayoutProperties command, 482 ODBCResultSet class, 1181
Keyword fields Leading spaces, 367 Log class, 1657, 2041
writing a formula, 84 Left function, 109, 286 Log function, 114, 292
Keyword formulas, 79 LeftBack function, 109, 287 LogAction method
Keyword parameters LeftMargin property NotesLog class, 1061
@functions, 75 NotesRichTextParagraphStyle logAction method
Keyword property class, 1281 Log class, 2052
Name class, 2070 RichTextParagraphStyle LogActions property
NotesName class, 1080 class, 2166 NotesLog class, 1055
Keywords function, 87, 284 Length function, 106, 288 LogError method
Lengths NotesLog class, 1063
of string in a formula, 106 logError method
L Less than operator ( Log class, 2053
Label property Formula Language, 69 LogErrors property
NotesOutlineEntry class, 1215 Less than or equal to operator ( NotesLog class, 1056
OutlineEntry class, 2107 Formula Language, 69 LogEvent method
Language Preference function, 285 Level property NotesLog class, 1067
Language property ACLEntry class, 1724 logEvent method
Name class, 2070 NotesACLEntry class, 756 Log class, 2055
NotesName class, 1081 NotesOutlineEntry class, 1216 Logical operators
LastAccessed property OutlineEntry class, 2107 Formula Language, 69, 72
Document class, 1911 Lexical elements Logs
NotesDocument class, 928 Formula Language, 61 accessing in Java, 1657
LastExitStatus property Like function, 106, 289 in LotusScript, 656
AgentContext class, 1763 Links Lotus components, 715
NotesSession class, 1316 appending in Java, 2157 LotusScript
LastFTIndexed property List concatenation operator block statements, 50
Database class, 1801 Formula Language, 69 compiling, 50
NotesDatabase class, 810 List operations debugger, 51
LastModified property Formula Language, 72 debugging, 53
Database class, 1802 List operators describing, 1
Document class, 1912 Formula Language, 70 Domino-specific features, 547
Item class, 2024 ListDataSources method Errors box, 39
NotesDatabase class, 810 ODBCConnection class, 1109 icon, 38
NotesDocument class, 929 ListFields method in Programmer's pane, 48
NotesItem class, 1040 ODBCConnection class, 1110 Notes classes, 721
NotesView class, 1472 ListProcedures method overview, 1
View class, 2233 ODBCConnection class, 1111 programming environment, 33
LastRow method Lists using the debugger, 52
ODBCResultSet class, 1180 Formula Language, 64, 86 writing in the Programmer's
LastRun property in a formula, 86 pane, 48
Agent class, 1744 ListSep property LotusScript data objects, 661
AgentContext class, 1764 NotesViewColumn class, 1532 LotusScript debugger
NotesAgent class, 772 ViewColumn class, 2297 clearing breakpoints, 54
NotesSession class, 1316 ListTables method enabling and disabling, 52
LayoutAddGraphic command, 480 ODBCConnection class, 1112 enabling and disabling
LayoutAddText command, 480 Ln function, 114, 290 breakpoints, 54
LayoutElementBringToFront Locale function, 291 Output panel, 56
command, 481
Index-26
setting breakpoints, 54 MailRequestCrossCert Mouse operations
stepping through scripts, 53 command, 483 table of, 41
stopping, 53 MailRequestNewName MoveEntry method
using, 52 command, 484 NotesOutline class, 1205
variables panel, 55 MailRequestNewPublicKey moveEntry method
LowerCase function, 112, 293 command, 484 Outline class, 2096
LS:DO MailSavePreference function, 296 Moving
auto-commit mode, 695 MailScanUnread command, 484 insertion point, 40
caching data, 697 MailSend command, 485 Multi-database indexes, 2136
creating script, 666 MailSend function, 76, 102, 125, 297 Multi-database searches
handling ODBC errors, 693 MailSendCertificateRequest isMultiDbSearch method, 1797
handling ODBC events, 690 command, 485 Multi-threading
multi-threading agents, 697 MailSendEncryptionKey in LS:DO, 697
overview, 667 command, 485 MultiDbIndex property
requirements, 663 MailSendPublicKey command, 486 NotesReplication class, 1254
setting for multi-thread MailSignPreference function, 301 Multiple database index, 2142
environment, 665 MakeResponse method Multiple parameters
setting up with ODBC, 664 NotesDocument class, 960 @functions, 75
specifying SQL statements, 672 makeResponse method Multiplication operator (*)
transaction mode, 696 Document class, 1940 Formula Language, 69
transaction processing, 695 Managers property Multiplying, 113
UseLSX, 666 Database class, 1803
working with result sets, 677 NotesDatabase class, 811
LSCONST.LSS file, 548, 699 Matches function, 106, 302
N
LSERR.LSS file, 548, 698 Max function, 113, 303 Name class, 1658, 2062
LSGMTTime property MaxLevel property Name function, 121, 313
NotesDateTime class, 887 NotesViewNavigator class, 1573 Name property
LSLocalTime property ViewNavigator class, 2336 ACLEntry class, 1726
NotesDateTime class, 888 MaxRows property Agent class, 1746
LSXBEERR.LSS file, 548, 698 ODBCResultSet class, 1137 DbDirectory class, 1880
LSXUIERR.LSS file, 548, 698 MaxSize property EmbeddedObject class, 1981
Database, 1804 Form class, 1995
Database class, 1803 Item class, 2024
M NotesDatabase class, 813 NotesACLEntry class, 757
Mail Member function, 87, 304 NotesAgent class, 773
accessing in Java, 1640 Memory NotesDbDirectory, 557
Mail logs recycling, 1694 NotesDbDirectory class, 902
openMailLog method, 2059 MessageBox statement, 552 NotesEmbeddedObject class, 998
MailAddress command, 482 Messages NotesForm class, 1013
MailComposeMemo command, 482 writing, 92 NotesItem class, 1040
MailDbName function, 121, 294 Middle function, 109, 305 NotesOutline class, 1199
MailEncryptSavedPreference MiddleBack function, 109, 307 NotesView class, 1473
function, 295 Min function, 113, 308 Outline class, 2089
MailEncryptSentPreference MinPasswordLength property View class, 2234
function, 296 NotesRegistration class, 1227 NamedElement property
MailForward command, 483 Registration class, 2116 in NotesOutlineEntry class, 1217
MailForwardAsAttachment Minus operator (-), 71 NameLookup function, 317
command, 483 Minus sign (-), 67 NameObject property
Mailing Minute function, 119, 310 ACLEntry class, 1727
in LotusScript, 623 Modified function, 118, 310 NameOfProfile property
Mailing documents Modulo function, 114, 311 Document class, 1912
send method, 1951 Month function, 119, 312 NotesDocument class, 930
MailOpen command, 483
Index-27
Names No function, 321 NotesInternational class, 653, 1018
alternate, 379 NoChronos property NotesItem class, 624, 1029
in Java, 1658 NotesReplication class, 1255 NotesLog class, 657, 1052
in LotusScript, 659 NoExternalApps NotesName class, 659, 1073
primary, 379 environment variables, 77 NotesNewsletter class, 658, 1088
Narrow function, 319 Not equal to operator ( or > NotesOutline class, 562, 1196
NavBarSetText method Formula Language, 69 NotesOutlineEntry class, 563, 1207
NotesUIDocument class, 1404 Not operator NotesRegistration class, 1222
NavBarSpinnerStart method, 1405 Formula Language, 69 NotesReplication class, 1244
NavBarSpinnerStop method, 1405 NoteID function, 126, 322 NotesRichTextItem class, 624,
NavigateNext command, 486 NoteID property 635, 1258
NavigateNextHighlight Document class, 1912 NotesRichTextParagraphStyle class,
command, 486 NotesDocument class, 930 643, 1277
NavigateNextMain command, 487 NotesViewEntry class, 1550 NotesRichTextStyle class, 641, 1290
NavigateNextSelected ViewEntry class, 2312 NotesRichTextTab class, 645, 1301
command, 487 NOTES.INI file, 79, 97, 649, 665, NotesSession class, 646, 1303
NavigateNextUnread command, 488 1592, 1649 NotesSession properties, 1648
NavigatePrev command, 488 NOTES.JAR file, 1592 NotesThread class, 1593, 1692
NavigatePrevHighlight NOTES.LOG file, 552 NotesTimer class, 659, 1341
command, 489 Notes Formula Language, 61 NotesUIDatabase class, 1345
NavigatePrevMain command, 489 guidelines, 83 NotesUIDocument class, 604, 1353
NavigatePrevSelected Notes formula language NotesUIView class, 1413
command, 490 in the Programmer's pane, 58 NotesUIWorkspace class, 603, 1426
NavigatePrevUnread NotesACL class, 565, 728 NotesVersion property
command, 490 NotesACLEntry class, 566, 740 NotesSession class, 1318
NavigateToBackLink NotesAgent class, 650, 765 Session class, 2190
command, 490 notesAppletInit method NotesView class, 1457
Navigator class, 1087 AppletBase class, 1668 NotesViewColumn class, 581, 1506
NavigatorProperties notesAppletStart method NotesViewEntry class, 1539
command, 491 AppletBase class, 1668 NotesViewEntryCollection
NavigatorTest command, 491 notesAppletStop method class, 1554
NCSO.JAR file, 1592 AppletBase class, 1668 NotesViewNavigator class, 594, 1570
needsGUI method NotesBuildVersion property Now function, 118, 322
Visibility interface, 1695 NotesSession class, 1317 Null fields
Negation operator (-) NotesColor property Formula Language, 64
Formula Language, 69 NotesRichTextStyle class, 1296 NumActions property
Negative numbers, 67 NotesDatabase class, 553, 785, 1603 Log class, 2048
Nested NotesDateRange class, 876 NotesLog class, 1057
@If function, 92 NotesDateTime class, 655, 879 NumberAttrib property
Never replicate, 2143 NotesDbDirectory class, 553, 557, NotesViewColumn class, 1533
NeverReplicate property 901, 1603 ViewColumn class, 2297
NotesReplication class, 1254 NotesDocument class, 599, 904 NumberDigits property
New Class button NotesDocumentCollection class, NotesViewColumn class, 1533
defined, 35 610, 974 ViewColumn class, 2299
New lines NotesEmbeddedObject class, NumberFormat property
adding, 112 639, 992 NotesViewColumn class, 1534
adding in Java, 2150 NotesError class, 1669 ViewColumn class, 2299
NewLine function, 112, 320 NotesException class, 1669 NumColumns method
Newsletter class, 1658, 2076 NotesFactory class, 1594, 1691 ODBCResultSet class, 1185
Newsletters NotesFont property Numeric constants
accessing in Java, 1658 NotesRichTextStyle class, 1297 Formula Language, 67
in LotusScript, 658 NotesForm class, 1008 NumErrors property
NextRow method NotesIDs Log class, 2049
ODBCResultSet class, 1183 getDocumentByID method, 1827 NotesLog class, 1058
Index-28
NumParameters method Open method OpenView method
ODBCResultSet class, 1186 NotesDatabase class, 558, 852 NotesUIDatabase class, 1352
NumRows method open method OpenWithFailover method
ODBCResultSet class, 1187 Database class, 1840 NotesDatabase class, 558, 857
OpenAgentLog method Operators
NotesLog class, 1068 Formula Language, 68
O openAgentLog method Operators and values
Object Log class, 2056 Formula Language, 63
renaming, 43 OpenByReplicaID method OptimizeMailAddress function,
Object links NotesDatabase class, 558, 854 121, 322
appending in Java, 2157 OpenCalendar command, 492 Option statement
Object property OpenDatabase method Script Area, 49
EmbeddedObject class, 1982 NotesUIWorkspace class, 1441 Or operator, 69
NotesEmbeddedObject class, 999 openDatabase method Formula Language, 72
ObjectDisplayAs command, 491 DbDirectory class, 1885 Order of evaluation
ObjectExecute event openDatabaseByReplicaID method @commands, 78
Button class, 785 DbDirectory class, 1886 @functions, 77
ObjectOpen command, 492 openDatabaseIfModified method formula operation, 70
ObjectProperties command, 492 DbDirectory class, 1887 Organization property
Objects OpenDocument command, 493 Name class, 2074
assigning, creating, deleting in OpenFileDialog method NotesName class, 1085
LotusScript, 551 NotesUIWorkspace class, 1442 OrgUnit property
embedding with Java, 1978 OpenFileLog method NotesRegistration class, 1228
overview, 3 NotesLog class, 1068 Registration class, 2117
renaming, 43 openFileLog method OrgUnit1 property
Objects and events Log class, 2057 Name class, 2074
overview, 25 OpenFrameset command, 494 NotesName class, 1085
Sequencing, 29 OpenFrameSet method OrgUnit2 property
Objects tab NotesUIWorkspace class, 1443 Name class, 2074
defined, 34 OpenHelpDocument NotesName class, 1085
defining subprograms, 48 command, 494 OrgUnit3 property
global variables, 48 OpenIfModified method Name class, 2075
JavaScript, 47 NotesDatabase class, 558, 854 NotesName class, 1086
using, 37 OpenMail method OrgUnit4 property
ODBC NotesDatabase class, 558, 855 Name class, 2075
Formula Language, 132 openMailDatabase method NotesName class, 1086
handling errors, 693 DbDirectory class, 1888 Outline class, 1620, 2085
handling events, 690 OpenMailLog method OutlineEntry class, 1620, 2099
ODBC Driver Manager, 667 NotesLog class, 1069 Outlines
ODBCConnection class, 667, 1097 openMailLog method accessing, 562
ODBCNonThreadSafeDriver Log class, 2059 accessing in Java, 1620
statement, 665 OpenNavigator command, 495 accessing in LotusScript, 562
ODBCQuery class, 672, 676, 1114 OpenNavigator method creating in Java, 1819
ODBCResultSet class, 676, 1128 NotesUIDatabase class, 1352 getOutline method, 1833
ODBCThreadSaveDriver OpenNotesLog method Output panel
statement, 665 NotesLog class, 1071 using, 56
OLE openNotesLog method Overview
custom controls, 715 Log class, 2060 script objects and events, 25
automation objects, 719 OpenPage command, 496 scripts and formulas, 1
LotusScript, 549 OpenPage method OverwriteFile property
On Error statement NotesUIWorkspace class, 1443 NotesLog class, 1059
LotusScript, 698 OpenURLDb method Owner property
Open Database dialog, 2137 NotesDatabase class, 856 Agent class, 1746
OpenView command, 496 NotesAgent class, 773
Index-29
ParentDocumentUNID property Positive operator
P Document class, 1914 Formula Language, 69
Page breaks NotesDocument class, 932 PostDocumentDelete event
adding in Java, 2152 Parentheses NotesUIDatabase class, 1347
Pages passing by value, 553 PostDragDrop event
defining, 496 Parentheses ( ) NotesUIDatabase class, 1347
setting up, 467 @functions, 75 NotesUIView class, 1414
Pagination property formula operation, 70 PostedCommand function, 76,
NotesRichTextParagraphStyle ParentView property 103, 330
class, 1282 Document class, 1915 PostModeChange event
RichTextParagraphStyle NotesDocument class, 933 NotesUIDocument class, 1356
class, 2166 NotesViewNavigator, 1574 PostOpen event
Pair-wise list operators, 72 Passing by value, 553 NotesUIDatabase class, 1348
Paragraph styles PassThruHTML property NotesUIDocument class, 1357
appending in Java, 2155 NotesRichTextStyle class, 1298 NotesUIView class, 1415
Parent property Password function, 121, 323 PostPaste event
ACL class, 1700 Paste method NotesUIView class, 1415
ACLEntry class, 1728 NotesUIDocument class, 1405 PostRecalc event
Agent class, 1747 PasteBitmapAsBackground NotesUIDocument class, 1359
Database class, 1805 command, 497 PostSave event
DateRange class, 1853 PasteBitmapAsObject NotesUIDocument class, 1360
DateTime class, 1863 command, 498 Power function, 114, 330
DbDirectory class, 1881 Pasting Precedence, 69
DocumentCollection text in Script Editor, 42 Preferences file, 79, 649, 1649
class, 1959 PercentUsed property PreviewDocLink property
EmbeddedObject class, 1982 Database class, 1805 NotesUIDocument class, 1376
Form class, 1996 NotesDatabase class, 814 PreviewParentDoc property
International class, 2009 Permuted list operators, 72 NotesUIDocument class, 1377
Item class, 2024 Permuted operators, 69 PrevRow method
Log class, 2050 Pi function, 114, 324 ODBCResultSet class, 1189
Newsletter class, 2080 PickList function, 76, 102, 325 Primary names, 379, 381
NotesACL class, 730 PickListCollection method Print method
NotesACLEntry class, 759 NotesUIWorkspace class, 1444 NotesUIDocument class, 1406
NotesAgent class, 775 PickListStrings method NotesUIView class, 1425
NotesDatabase class, 813 NotesUIWorkspace class, 1445 Print setup, 470
NotesDocumentCollection PictureProperties command, 498 Printing
class, 978 Platform function, 102, 121, 328 a file, 468
NotesEmbeddedObject Platform property PrintWriter class, 1594, 1668
class, 999 NotesSession class, 1319 Priority property
NotesItem class, 1041 Session class, 2191 NotesReplication class, 1256
NotesView class, 1473 PlayTune method Replication class, 2144
NotesViewEntry class, 1551 NotesUIWorkspace class, 1447 Private views
NotesViewEntryCollection Plus operator (+), 71 View class, 2231
class, 1556 Plus sign (+), 67 PRMD property
RichTextStyle class, 2178 PMString property Name class, 2076
View class, 2235 International class, 2009 NotesName class, 1086
ViewColumn class, 2300 NotesInternational class, 1026 Profile documents
ViewEntry class, 2312 Position property getKey method, 1911
ViewEntryCollection, 2316 NotesRichTextTab class, 1302 getProfileDocCollection
ViewNavigator class, 2337 NotesViewColumn class, 1535 method, 1834
ParentDatabase property RichTextTab class, 2181 getProfileDocument
Document class, 1913 ViewColumn class, 2300 method, 1835
NotesDocument class, 931 isProfile method, 1904
Index-30
Programmable objects, 3 PutAllInFolder method QueryRecalc event
Programmer's pane NotesDocumentCollection NotesUIView class, 1421
accessing, 36 class, 988 QuerySave event, 1365
Classes tab, 35 NotesViewEntryCollection Quotation marks, 66
Compile button, 35 class, 1566
Edit Project button, 35 putAllInFolder method
Errors box, 39 DocumentCollection class, 1972
R
errors box, 34 ViewEntryCollection, 2327 Random function, 114, 337, 339
Export button, 35 PutInFolder method Readers property
formula windows, 58 NotesDocument class, 961 Form class, 1996
formulas, 58 putInFolder method NotesForm class, 1016
Imported Java, 36 Document class, 1941 NotesView class, 1475
Java, 35 View class, 2236
Java Debug Console, 35 ReadOnly property
JavaScript, 47
Q ODBCResultSet class, 1139
LotusScript, 48 Query property ReCertify method
New Class button, 35 Agent class, 1748 NotesRegistration class, 1238
programming properties and DocumentCollection class, 1960 recertify method
events, 37 NotesAgent class, 775 Registration class, 2125
Reference tab, 38 NotesDocumentCollection recycle method
run box, 34 class, 979 Java classes, 1694
selecting text, 41 NotesViewEntryCollection Redundant spaces, 367
setting text properties, 40 class, 1557 Reference list
Simple action(s), 59 ODBCResultSet class, 1138 defined, 34
title bar, 34 ViewEntryCollection, 2317 Reference tab
user interface, 33 QueryAccess method defined, 34
Programming environment NotesDatabase class, 858 help button, 34
LotusScript, 33 queryAccess method paste button, 34
Programming language Database class, 1841 paste full text, 34
determining, 38 QueryAddToFolder event pasting from, 38
Programming overview, 1 NotesUIView class, 1416 short-cut keys, 39
ProgramName property QueryClose event using, 38
Log class, 2050 NotesUIDatabase class, 1349 Refresh method
NotesLog class, 1060 NotesUIDocument class, 1361 NotesUIDocument class, 1407
Prompt function, 76, 103, 331 NotesUIView class, 1417 NotesView class, 1504
Prompt method QueryDocumentDelete event refresh method
NotesUIWorkspace class, 1447 NotesUIDatabase class, 1349 View class, 2272
ProperCase function, 112, 336 QueryDocumentUndelete event RefreshECL function, 338
Property block NotesUIDatabase class, 1350 RefreshHideFormulas
Script Area, 49 QueryDragDrop event command, 499
Protect readers NotesUIDatabase class, 1350 RefreshHideFormulas method
View class, 2232 NotesUIView class, 1418 NotesUIDocument class, 1408
ProtectReaders property QueryExecuteTimeOut property Refreshing
NotesForm class, 1014 ODBCQuery class, 1117 a formula, 498
NotesView class, 1474 QueryModeChange event RefreshParentNote command, 498
ProtectUsers property NotesUIDocument class, 1362 RefreshParentNote method
NotesForm class, 1015 QueryOpen event NotesUIWorkspace class, 1449
Public Address Book NotesUIDocument class, 1363 Regional settings, 653
isPublicAddressBook NotesUIView class, 1418 RegionDoubleClick event
method, 1800 QueryOpenDocument event NotesUIView class, 1422
Public readers, 1722 NotesUIView class, 1419 RegisterNewCertifier method
Public writers, 1723 QueryPaste event NotesRegistration class, 1239
PublishDatabase command, 498 NotesUIView class, 1420
Index-31
registerNewCertifier method RemoveAllFromFolder method replicate method
Registration class, 2126 NotesDocumentCollection Database class, 1844
RegisterNewServer method class, 989 Replicating
NotesRegistration class, 1240 NotesViewEntryCollection a formula, 84
registerNewServer method class, 1567 Replication
Registration class, 2127 removeAllFromFolder method resetting the properties in
RegisterNewUser method DocumentCollection class, 1975 LotusScript, 574
NotesRegistration class, 1241 ViewEntryCollection, 2330 saving the properties in
registerNewUser method RemoveEntry method LotusScript, 574
Registration class, 2128 NotesOutline class, 1206 settings in LotusScript, 570
Registration class, 2112 removeEntry method Replication class, 2130
RegistrationLog property Outline class, 2098 Replication formulas, 3, 6
NotesRegistration class, 1228 RemoveFromFolder command, 499 Replication priority, 2144
Registration class, 2117 RemoveFromFolder method ReplicationInfo property
RegistrationServer property NotesDocument class, 964 Database class, 1807
NotesRegistration class, 1228 removeFromFolder method NotesDatabase class, 815
Registration class, 2117 Document class, 1944 Replicator command, 500
Reload method RemoveItem method ReplicatorReplicateHigh
NotesUIDocument class, 1409 NotesDocument class, 965 command, 500
ReloadWindow method removeItem method ReplicatorReplicateNext
NotesUIWorkspace class, 1450 Document class, 1945 command, 501
Rem keyword, 79, 338 RenameDatabase command, 499 ReplicatorReplicateSelected
Remote calls, 1591 RenameRole method command, 501
Remove method NotesACL class, 738 ReplicatorReplicateWithServer
NotesACLEntry class, 764 renameRole method command, 501
NotesAgent class, 780 ACL class, 1710 ReplicatorSendMail command, 502
NotesDatabase class, 860 Renaming ReplicatorSendReceiveMail
NotesDocument class, 963 object in Script Editor, 43 command, 502
NotesEmbeddedObject subprogram in Script Editor, 43 ReplicatorStart command, 502
class, 1006 RenderToRTItem method ReplicatorStop command, 502
NotesForm class, 1017 NotesDocument class, 966 Reset method
NotesItem class, 1052 renderToRTItem method NotesReplication class, 1257
NotesView class, 1506 Document class, 1946 reset method
remove method Repeat function, 112 Replication class, 2146
ACLEntry class, 1735 Repeating resolve method
Agent class, 1753 a string, 112 Session class, 2210
Database class, 1843 Replace function, 87, 340 Response documents, 616
Document class, 1943 ReplaceItemValue method, 967 isResponse method, 1905
EmbeddedObject class, 1986 replaceItemValue method making in Java, 1940
Form class, 1997 Document class, 1947 Responses function, 103, 123,
Item class, 2040 ReplaceSubstring function, 341 126, 342
View class, 2273 Replacing Responses property
removeACLEntry method text in Script Editor, 42 Document class, 1916
ACL class, 1709 Replica IDs NotesDocument class, 933
RemoveAll method openDatabaseByReplicaID Return function, 78, 99, 103, 343
NotesDocumentCollection method, 1886 Return value
class, 989 ReplicaID property @functions, 76
NotesViewEntryCollection Database class, 1806 RevokeAccess method
class, 1567 NotesDatabase class, 815 NotesDatabase class, 861
removeAll method Replicas revokeAccess method
DocumentCollection class, 1974 creating in Java, 1820 Database class, 1845
ViewEntryCollection, 2329 Replicate method Rich text fields
NotesDatabase class, 861 Formula Language, 63
Index-32
Rich text items RunReadOnly property Script executions
accessing in Java, 1645 NotesEmbeddedObject continuing, 54
appending in Java, 2155 class, 1000 Script Library
creating in Java, 1930 in a Java agent, 44
in LotusScript, 635 Java, 56
Rich text paragraph styles
S LotusScript, 56
in LotusScript, 643 Save method programming events in, 57
Rich text styles NotesACL class, 739 using, 56
in LotusScript, 641 NotesAgent class, 784 using LotusScript, 56
RichTextItem class, 1640, 1645, 2147 NotesDocument class, 969 Scripts
RichTextParagraphStyle class, NotesOutline class, 1207 continuing execution, 55
1645, 2162 NotesReplication class, 1258 debugging LotusScript, 51
RichTextStyle class, 1645, 2172 NotesUIDocument class, 1410 deleting, 42
RichTextTab class, 1645, 2179 save method flow of execution, 53
Right function, 109, 344 ACL class, 1711 overview, 1
RightBack function, 109, 345 Agent class, 1757 saving, 42
RightMargin property Document class, 1950 versus a formula, 1
NotesRichTextParagraphStyle Outline class, 2099 where to use, 1
class, 1283 Replication class, 2146 writing, 6
RichTextParagraphStyle SavedData property Search method
class, 2167 AgentContext class, 1765 NotesDatabase class, 862
Roles NotesSession class, 1320 search method
adding in Java, 1702 SaveFileDialog method Database class, 1847
deleting in Java, 1704 NotesUIWorkspace class, 1450 Searching
disabling in Java, 1732 SaveMessageOnSend property for a document in Java, 1637
enabling in Java, 1733 NotesDocument class, 935 for a document in
renaming in Java, 1710 SaveNewVersion method LotusScript, 612
Roles property NotesUIDocument class, 1410 FTDomainSearch method in
ACL class, 1701 SaveToDisk property Java, 1822
ACLEntry class, 1729 NotesItem class, 1041 FTSearch method in Java, 1823
NotesACL class, 731 Saving full-text in LotusScript, 616
NotesACLEntry class, 760 a file, 470 text in Script Editor, 42
RollbackTransactions method a new version, 470 Second function, 119, 347
ODBCConnection class, 1113 a script, 42 Section access formulas, 3, 18, 84
Round function, 113, 346 SBCS, 390 Section title formulas, 3, 19, 84
RowLines property Scientific formats SectionCollapse command, 503
NotesView class, 1476 ViewColumn class, 2299 SectionCollapseAll command, 503
View class, 2237 Scientific notations, 67 SectionDefineEditors command, 503
Ruler property Scope SectionExpand command, 504
NotesUIDocument class, 1378 of programmable objects, 3 SectionExpandAll command, 504
Run-time errors Script Area SectionProperties command, 504
in a formula, 99 completing a LotusScript SectionRemoveHeader
LotusScript, 698 %directive, 50 command, 505
Run box completing LotusScript block Security
defined, 34 statements, 50 ECL in @Commands, 397
Run method defined, 34 ECL in @Functions, 153
NotesAgent class, 782 editing text, 42 Select function, 349
run method moving insertion points, 40 Select keyword, 79, 84, 103, 348
Agent class, 1755 saving and deleting text, 42 SelectAll method, 1411
Runnable interfaces, 1692 selecting text, 41 SelectDocument method
RunOnServer method setting text properties, 40 NotesUIView class, 1426
NotesAgent class, 783 table of mouse operations, 41 Selecting
runOnServer method using, 39 a subprogram, 53
Agent class, 1756 text in Script Editor, 41
Index-33
Selection formulas, 3, 15 setAuthors method setEffects method
writing, 15, 84 Item class, 2016 RichTextStyle class, 2175
Send method setAutoUpdate method setEnabled method
NotesDocument class, 972 View class, 2225 Agent class, 1740
NotesUIDocument class, 1412 setBold method setEncrypted method
send method RichTextStyle class, 2174 Item class, 2018
Document class, 1951 setCacheSize method setEncryptionKeys method
SendKeys statement, 552 ViewNavigator class, 2336 Document class, 1899
SentByAgent property setCanCreateDocuments method setEncryptOnSend method
NotesDocument class, 936 ACLEntry class, 1714 Document class, 1902
Server property setCanCreateLSOrJavaAgent setEndDateTime method
Database class, 1808 method DateRange class, 1852
NotesDatabase class, 816 ACLEntry class, 1715 SetEnvironment function, 97,
ServerName property setCanCreatePersonalAgent method 103, 352
Agent class, 1749 ACLEntry class, 1716 SetEnvironmentVar method
NotesAgent class, 777 setCanCreatePersonalFolder method NotesSession class, 1338
Session class, 2192 ACLEntry class, 1717 setEnvironmentVar method
Servers setCanCreateSharedFolder method Session class, 2210
Formula Language, 120 ACLEntry class, 1719 setExpiration method
requirements for running setCanDeleteDocuments method Registration class, 2115
Java, 1591 ACLEntry class, 1719 SetField function, 103, 125, 353
Session class, 1594, 1647, 2182 setCategories method setFirstLineLeftMargin method
Sessions Database class, 1786 RichTextParagraphStyle
accessing in Java, 1647 setCertifierIDFile method class, 2165
accessing in LotusScript, 646 Registration class, 2114 setFolderReferencesEnabled method
accessing properties in Java, 1648 setColor method Database class, 1792
accessing properties in RichTextStyle class, 2174 setFont method
LotusScript, 646 setComment method RichTextStyle class, 2176
Set function, 350 Outline class, 2089 setFontSize method
setAbstract method, 2133 setCreateMailDb method RichTextStyle class, 2177
Replication class, 2133 Registration class, 2114 setFormUsers method
SetAction method SetCurrentLocation command, 505 Form class, 1990
NotesOutlineEntry class, 1219 SetCurrentLocation method setFrameText method
setAction method NotesUIWorkspace class, 1451 OutlineEntry class, 2103
OutlineEntry class, 2109 setCutoffDelete method, 2135 setGroup method
setAdminReaderAuthor method Replication class, 2135 ACLEntry class, 1721, 1723
ACLEntry class, 1713 setCutoffInterval method, 2135 setHidden method
setAdminServer method setDateTimeValue method OutlineEntry class, 2105
ACLEntry class, 1714 Item class, 2016 setHideDesign method, 2139
setAlias method setDelayUpdates method Replication class, 2139
OutlineEntry, 2100 Database class, 1794 setIDType method
OutlineEntry class, 2100 setDisabled method, 2136 Registration class, 2115
setAlignment method Replication class, 2136 setIgnoreDeletes method, 2140
RichTextParagraphStyle SetDocField function, 103, 129, 351 Replication class, 2140
class, 2164 setDoNotBrowse method, 2137 setIgnoreDestDeletes method, 2141
SetAnyDate method Replication class, 2139 Replication class, 2141
NotesDateTime class, 898 setDoNotCatalog method, 2138 setImagesText method
setAnyDate method Replication class, 2138 OutlineEntry, 2105
DateTime class, 1875 setDoScore method OutlineEntry class, 2099
SetAnyTime method Newsletter class, 2079 setInterLineSpacing method
NotesDateTime class, 898 setDoSubject method RichTextParagraphStyle
setAnyTime method Newsletter class, 2079 class, 2165
DateTime class, 1876
Index-34
setInternetLevel method setParent method SetTab method
ACL class, 1697 Form class, 1996 NotesRichTextParagraphStyle
setItalic method setPriority method, 2144 class, 1287
RichTextStyle class, 2177 Replication class, 2143 setTab method
setLeftMargin method SetProfileField function, 354 RichTextParagraphStyle
RichTextParagraphStyle setProgramName method class, 2170
class, 2166 Log class, 2050 SetTabs method
setLevel method setProtected method NotesRichTextParagraphStyle
ACLEntry class, 1724 Item class, 2021 class, 1289
setLocalDate method setProtectReaders method setTabs method
DateTime class, 1861 Form class, 1992 RichTextParagraphStyle class,
setLocalTime method View class, 2232 2169, 2170
DateTime class, 1861 setProtectUsers method SetTargetFrame function, 354
setLogActions method Form class, 1993 SetTargetFrame method
Log class, 2044 setPublicReader method NotesUIWorkspace class, 1452
setLogErrors method ACLEntry class, 1722 setText method
Log class, 2045 setPublicWriter method DateRange class, 1854
setMaxLevel method ACLEntry class, 1723 setTitle method
ViewNavigator class, 2336 setReaders method Database class, 1812
setMinPasswordLength method Item class, 2021 setType method
Registration class, 2116 View class, 2236 OutlineEntry, 2108
setMultiDbIndex method, 2142 setRegistrationLog method OutlineEntry class, 2106
Replication class, 2142 Registration class, 2117 setUnderline method
setName method setRegistrationServer method RichTextStyle class, 2179
ACLEntry class, 1726 Registration class, 2117 setUniformAccess method
SetNamedElement method setRightMargin method ACL class, 1699
NotesOutlineEntry class, 1220 RichTextParagraphStyle setUniversalID method
setNamedElement method class, 2167 Document class, 1919
OutlineEntry class, 2110 setSaveMessageOnSend method setUpdateAddressbook method
setNameObject method Document class, 1905 Registration class, 2118
ACLEntry class, 1727 setSaveToDisk method SetURL method
setNames method Item class, 2022 NotesOutlineEntry class, 1221
Item class, 2020 setServerName method setURL method
setNeverReplicate method Agent class, 1749 OutlineEntry class, 2112
Replication class, 2143 setSigned method setUserType method
setNoChronos method Item class, 2022 ACLEntry class, 1730
Replication class, 2143 setSignOnSend method SetValue method
SetNoteLink method Document class, 1908 ODBCResultSet class, 1192
NotesOutlineEntry class, 1220 setSizeQuota method setValueDouble method
setNoteLink method Database class, 1810 Item class, 2029
OutlineEntry class, 2111 setSpacingAbove method setValueInteger method
SetNow method RichTextParagraphStyle Item class, 2030
NotesDateTime class, 898 class, 2168 setValues method
setNow method setSpacingBelow method Item class, 2031
DateTime class, 1876 RichTextParagraphStyle setValueString method
setOrgUnit method class, 2168 Item class, 2033
Registration class, 2117 setStartDateTime method Shadow effect
setOverwriteFile method DateRange class, 1853 NotesRichTextStyle class, 1293
Log class, 2046 setStoreIDInAddressBook property RichTextStyle class, 2175
setPagination method Registration class, 2118 Shared folders
RichTextParagraphStyle setStrikethrough method creating, 1719
class, 2166 RichTextStyle class, 2178 Short-cut keys
SetParameter method setSubjectItemName method Reference tab, 39
ODBCResultSet class, 1190 Newsletter class, 2080
Index-35
Show action formulas, 84 Spacing property Styles
ShowHideLinkPreview NotesView class, 1477 appending in rich text
command, 505 View class, 2237 items, 2156
ShowHideParentPreview SpacingAbove property Sub block, 49
command, 506 NotesRichTextParagraphStyle Subforms
ShowHidePreviewPane class, 1284 insert subform formula, 18
command, 506 RichTextParagraphStyle SubjectItemName property
ShowProperties command, 506 class, 2168 Newsletter class, 2080
SiblingCount property SpacingBelow property NotesNewsletter class, 1091
NotesViewEntry class, 1552 NotesRichTextParagraphStyle Subprograms
ViewEntry class, 2313 class, 1285 defining, 48
Side effects, 76 RichTextParagraphStyle renaming, 43
Sign function, 113, 356 class, 2168 selecting, 53
Sign method Specifying Subroutine
NotesDocument class, 974 form and view names, 81 renaming, 43
sign method SpellCheck method Subroutines
Document class, 1954 NotesUIDocument class, 1413 calling, 552
Signer property SQL property Subscript effect
Document class, 1918 ODBCQuery class, 1118 NotesRichTextStyle class, 1293
NotesDocument class, 937 SQL statements RichTextStyle class, 2175
SignOnSend property in LS:DO, 673 Subset function, 87, 358
NotesDocument class, 938 Sqrt function, 114, 358 Substrings, 109
SilentMode property SSL, 1594 Subtraction, 113
ODBCConnection class, 1101 StampAll method Subtraction operator (-)
Simple Action(s) NotesDocumentCollection Formula Language, 69
icon, 38 class, 990 Success function, 99, 103, 359
Sin function, 114, 356 NotesViewEntryCollection Sum function, 113, 359
sinitThread method, 1593 class, 1568 Superscript effect
NotesThread class, 1692 stampAll method NotesRichTextStyle class, 1293
Size property DocumentCollection class, 1976 RichTextStyle class, 2175
Database class, 1809 ViewEntryCollection, 2331 SurName property
Document class, 1918 StartDateTime property Name class, 2076
NotesDatabase class, 817 DateRange class, 1853 Surname property
NotesDocument class, 939 NotesDateRange class, 878 NotesName class, 1087
SizeQuota property Statements SwitchToID method
Database class, 1810 separators, 62 NotesRegistration class, 1243
NotesDatabase class, 817 Step Exit switchToID method
SmartIcons, 3, 5 LotusScript debugger, 54 Registration class, 2129
SmartIcons formulas, 85 stermThread method, 1593 Symbols
SmartIconsFloating command, 507 NotesThread class, 1692 for @Matches, 302
SmartIconsNextSet command, 507 StoreIDInAddressbook property for @Text, 362
Sorted column keys, 616 NotesRegistration class, 1229 Syntax
Soundex function, 357 Registration class, 2118 @functions, 75
Source property StrikeThrough property errors in a formula, 99
EmbeddedObject class, 1982 RichTextStyle class, 2178 Formula Language, 61
NotesEmbeddedObject Strikethrough property general rules, 62
class, 1000 NotesRichTextStyle class, 1299
Spaces String item values
Formula Language, 62 getting in Java, 1939
T
leading, 367 String operations, 104 Tabs
redundant, 367 Strings adding in Java, 2152
trailing, 367 converting in Java, 1695 clearing in Java, 2169, 2182
StyleCycleKey command, 507 in LotusScript, 645
setting in Java, 2170
Index-36
Tabs property TextSpacingDouble command, 517 Title property
NotesRichTextParagraphStyle TextSpacingOneAndAHalf Database class, 1812
class, 1286 command, 518 Java, 2302
RichTextParagraphStyle TextSpacingSingle command, 518 NotesDatabase class, 819
class, 2169 TextToNumber function, 363 NotesViewColumn class,
Tan function, 114, 361 TextToTime function, 364 1538, 2302
Target property TextUnderline command, 518 Today function, 118, 366
Agent class, 1751 ThousandsSep property Today property
NotesAgent class, 778 International class, 2010 International class, 2011
TemplateName property NotesInternational class, 1027 NotesInternational class, 1028
Database class, 1811 Threads, 1593 toJavaDate method
NotesDatabase class, 818 NotesThread class, 1692 DateTime class, 1878
Templates Time Tomorrow function, 118, 367
creating from in Java, 1817 formatting, 67 Tomorrow property
getDesignTemplateName in LotusScript, 655 International class, 2011
method, 1790 Time/date NotesInternational class, 1028
Temporary variables, 65 constants, 67 ToolsCall command, 519
Text Time function, 119, 365 ToolsCategorize command, 519
appending in Java, 2157 TimeDateFmt property ToolsHangUp command, 520
editing, 42 NotesViewColumn class, 1536 ToolsMarkAllRead command, 520
selecting, 41 TimeDateFormat property ToolsMarkAllUnread command, 520
Text constants, 66 ViewColumn class, 2301 ToolsMarkSelectedRead
Text function, 105, 361 TimeDifference method command, 521
Text operator, 71 NotesDateTime class, 899 ToolsMarkSelectedUnread
Text properties timeDifference method comand, 521
Design panel, 40 DateTime class, 1877 ToolsRefreshAllDocs command, 522
Text property TimeDifferenceDouble method ToolsRefreshSelectedDocs
DateRange class, 1854 NotesDateTime class, 900 command, 522
Item class, 2026 timeDifferenceDouble method ToolsReplicate command, 522
NotesDateRange class, 878 DateTime class, 1877 ToolsRunBackgroundMacros
NotesItem class, 1042 TimeFmt property command, 523
TextAlignCenter command, 508 NotesViewColumn class, 1536 ToolsRunMacro command, 523
TextAlignFull command, 508 ViewColumn class, 2301 ToolsScanUnreadChoose
TextAlignLeft command, 508 TimeOnly property command, 524
TextAlignNone command, 509 DateTime class, 1863 ToolsScanUnreadPreferred
TextAlignRight command, 509 NotesDateTime class, 889 command, 524
TextBold command, 509 Timers ToolsScanUnreadSelected
TextBullet command, 510 in LotusScript, 659 command, 524
TextCycleSpacing command, 510 TimeSep property ToolsSetupLocation command, 525
TextEnlargeFont command, 511 International class, 2010 ToolsSetupMail command, 525
TextFont command, 511 NotesInternational class, 1027 ToolsSetupPorts command, 525
TextItalic command, 512 TimeZone property ToolsSetupUserSetup command, 526
TextNormal command, 512 DateTime class, 1864 ToolsSmartIcons command, 526
TextNumbers command, 513 International class, 2010 ToolsSpellCheck command, 526
TextOutdent command, 513 NotesDateTime class, 889 ToolsUserLogoff command, 527
TextParagraph command, 514 NotesInternational class, 1027 TopLevelEntryCount property
TextParagraphStyles command, 514 TimeZoneFmt property NotesView class, 1478
TextPermanentPen command, 514 NotesViewColumn class, 1537 View class, 2238
TextReduceFont command, 515 ViewColumn class, 2302 toString method
TextSetFontColor command, 515 Title bar Java classes, 1695
TextSetFontFace command, 516 defined, 34 Trailing spaces, 367
TextSetFontSize command, 517
Index-37
Transaction mode unprocessedFTSearch method UserIDClearPassword
in LS:DO, 696 AgentContext class, 1768 command, 527
Trigger property UnprocessedSearch method UserIDCreateSafeCopy
Agent class, 1753 NotesDatabase class, 869 command, 528
NotesAgent class, 779 unprocessedSearch method UserIDEncryptionKeys
Trim function, 112, 367 AgentContext class, 1772 command, 528
Trimming UpdateAddressbook property UserIDInfo command, 528
a string, 112 NotesRegistration class, 1229 UserIDMergeCopy command, 529
True function, 368 Registration class, 2118 UserIDSetPassword command, 529
Truncate during replication, 2133 UpdateAll method UserIDSwitch command, 529
Type block NotesDocumentCollection UserName function, 121, 379
Script Area, 49 class, 991 UserName property
Type property NotesViewEntryCollection NotesSession class, 1321
EmbeddedObject class, 1983 class, 1569 Session class, 2193
Item class, 2026 updateAll method UserNameLanguage function, 381
NotesEmbeddedObject ViewEntryCollection, 2332 UserNameList property
class, 1001 UpdateFTIndex method NotesSession class, 1322
NotesItem class, 1044 NotesDatabase class, 874 Session class, 2194
NotesOutlineEntry class, 1217 updateFTIndex method UserNameObject property
NotesRichTextTab class, 1303 Database class, 1848 Session class, 2194
OutlineEntry class, 2108 UpdateProcessedDoc method UserNamesList function, 382
RichTextTab class, 2182 NotesSession class, 1339 UseRowID property
updateProcessedDoc method ODBCQuery class, 1120
AgentContext class, 1775 UserPrivileges function, 383
U UpdateRow method UserRoles function, 121, 383
Unary operators, 69, 71 ODBCResultSet class, 1194 UserType property
Unavailable function, 103, 369 Updating ACLEntry class, 1730
UndeleteDocument function, 369 a full text index, 461 NotesACLEntry class, 761
Underline property UpperCase function, 112, 370 Using
NotesRichTextStyle class, 1300 URL property @commands, 397
RichTextStyle class, 2179 NotesOutlineEntry class, 1218 @functions, 75, 101
UNIDs OutlineEntry class, 2108 a formula, 83
getDocumentByUNID URLGetHeader function, 371 a list, 86
method, 1828 URLHistory function, 373 AgentRunner, 45
Uniform access URLOpen function, 374 conditional statements, 90
ACL class, 1699 URLOpen method constants, 66
UniformAccess property NotesUIWorkspace class, 1452 debugger utilities, 55
NotesACL class, 732 URLs Java, 57
Unique function, 87, 370 getDocumentByURL JavaScript, 47
Unique ID, 266 method, 1830 keywords, 79
Unique ID function, 243 getting in Java, 1694 LotusScript debugger, 52
UniversalID property getURLHeaderInfo method, 1836 LotusScript in a script library, 56
Document class, 1919 UseLSX operators, 68
NotesDocument class, 939 statement, 666 script libraries, 56
NotesView class, 1478 UseLSX method scripts and formulas, 1
NotesViewEntry class, 1552 NotesUIWorkspace class, 1455 short-cut keys, 39
View class, 2238 User environment, 120 syntax rules, 61
ViewEntry class, 2313 User interface, 33 the Errors box, 39
UnprocessedDocuments property formula window, 58 the Info list, 37
AgentContext class, 1766 Programmer's pane, 33 the Objects tab, 37
NotesDatabase class, 820 User names, 120 the Reference tab, 38
UnprocessedFTSearch method UserAccess function, 377 the script area, 39
NotesDatabase class, 864 UserIDCertificates command, 527 variables, 63
Index-38
accessing documents, 596 Views property
V creating, 586 Database class, 1813
V2If function, 384 properties, 594 NotesDatabase class, 577,
V3EditNextField command, 530 View property 580, 824
V3UserName function, 385 NotesOutlineEntry class, 1219 ViewShowFieldHelp command, 537
ValidateInternetAddress NotesUIView class, 1424 ViewShowObject command, 537
function, 386 OutlineEntry class, 2109 ViewShowOnlyCategories
Value formulas, 4, 24 ViewArrangeIcons command, 531 command, 538
writing, 24 ViewBelowFolders command, 531 ViewShowOnlySearchResults
ValueDouble property ViewBesideFolders commnd, 531 command, 538
Item class, 2029 ViewCertify command, 531 ViewShowOnlySelected
ValueInteger property ViewChange command, 532 command, 538
Item class, 2030 ViewCollapse command, 533 ViewShowOnlyUnread
ValueLength property ViewCollapseAll command, 533 command, 539
Item class, 2030 ViewColumn class, 1626, 2274 ViewShowPageBreaks
NotesItem class, 1046 ViewEntry class, 1628, 2304 command, 539
Values property ViewEntryCollection class, ViewShowRuler command, 539
Item class, 2031 1629, 2314 ViewShowSearchBar command, 539
NotesItem class, 1046 ViewExpand command, 534 ViewShowServerNames
ValueString property ViewExpandAll command, 534 command, 540
Item class, 2033 ViewExpandWithChildren ViewShowUnread command, 540
Variables command, 534 ViewSwitchForm command, 540
using, 63 ViewHorizScrollBar command, 535 ViewTitle function, 103, 122, 389
using the variables panel, 55 ViewMoveName command, 535 Visibility interface, 1695
Verbs property Viewname property Visual Basic
EmbeddedObject class, 1983 NotesUIView class, 1424 with LotusScript, 719
NotesEmbeddedObject ViewNavigator class, 1629, 2333
class, 1002 ViewNavigatorsFolders
Verifier property command, 535
W
Document class, 1920 ViewNavigatorsNone Ways to
NotesDocument class, 941 command, 536 handle an error, 98
Version function, 121, 388 ViewRefresh method perform string operations, 104
Version number NotesUIWorkspace class, use a formula, 83
Session class, 2190 584, 1455 use an operator, 68
View class, 577, 1621, 2212 ViewRefreshFields command, 536 use constants, 66
View entries ViewRefreshUnread command, 536 use syntax rules, 61
accessing, 587 ViewRenamePerson command, 537 use the script area, 39
Accessing in LotusScript, 587 Views use variables, 63
retrieving, 585 accessing in Java, 1621 write a formula, 58
retrieving multiple, 585 accessing in LotusScript, 577 write a message, 92
View entry collections accessing properties in Java, 1621 Weekday function, 118, 389
accessing, 590 accessing properties in Wide function, 390
adding an entry, 591 LotusScript, 578 Width property
deleting an entry, 591 locating in Java, 1625 NotesViewColumn class, 1539
removing a document, 593 locating in LotusScript, 580, 615 ViewColumn class, 2302
retrieving entries, 592 naming in a formula, 81 Window title formulas, 3, 17, 84, 123
searching for entries, 591 refreshing in LotusScript, 584 WindowMaximize command, 541
View Navigator removing in Java, 1631 WindowMaximizeAll command, 541
Accessing in LotusScript, 594 traversing in LotusScript, 615 WindowMinimize command, 541
View navigators WindowMinimizeAll command, 542
accessing an entry, 595
accessing an entry by
position, 598
Index-39
WindowTitle property
NotesUIDocument class, 1379 Z
WindowWorkspace command, 542 Zone function, 119, 394
Word function, 110, 391 ZoneTime property
WorkspaceProperties command, 542 DateTime class, 1866
WorkspaceStackReplicaIcons NotesDateTime class, 890
command, 543 ZoomPreview command, 543
Workstation
Formula Language, 120
Writing
a column formula, 16
a default value formula, 23
a field design formula, 22
a form formula, 15
a formula for SmartIcons, 5
a formula in the Programmer's
pane, 58
a hidden paragraph formula, 19
a keyword field formula, 24
a message, 92
a message with @Prompt, 93
a replication formula, 6
a script and formula for a
button, 12
a script and formula for
action, 10
a script and formula for
events, 19
a section access formula, 18
a section title and hidden
paragraph formula, 19
a section title formula, 19
a selection formula, 15
a value formula, 24
a window title formula, 17
an input translation formula, 23
an input validation formula, 23
an insert subform formula, 18
JavaScript in a page header, 48
LotusScript in the Programmer's
pane, 48
scripts and formulas, 6
Y
Year function, 119, 392
Yes function, 393
Yesterday function, 118, 393
Yesterday property
International class, 2012
NotesInternational class, 1028
Index-40