Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: "Object variable not set" error on LotusScript NotesUIWorkspace.CurrentView
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Customization
Platform: Windows 2003 server
Release: 8.5
Reproducible: Always

Hello,

Previously we were using Domino Server 6.5 and Notes 6.5. Right now we are using Domino Server 8.5 and Notes 8.5.

We wanted to do some custom processing on selected email(s) of Note's Inbox. We created a new Toolbar inside Notes and added one button on it. The formula on button's click opens a Page. In Page's postOpen, we have written LotusScript to get selected documents (emails). Following is the LotusScript. Values for variables Server$, FilePath$ and View$ were passed from button's formula to Page.

-------LotusScript-------------------
Dim DocCol As NotesDocumentCollection
Dim WO As New NotesUiWorkspace

'Msgbox "Server " & Server$ 'CN=LotusDev/O=unfccc
'Msgbox "Filepath " & FilePath$ 'mail\ceadmin.nsf
'Msgbox "View " & View$ '($Inbox)

Call WO.OpenDatabase(Server$, FilePath$, View$)

'Following line gives error "Object variable not set"
Set DocCol = WO.CurrentView.Documents
Msgbox "Last line" 'This is not printed
----------------------------

We are getting an error on WO.CurrentView.Documents line.

The same code works on Domino Server 6.5.

Please guide me if things have been changed in Domino server 8.5 or if we are missing something.

Thanks in advance.


Feedback number WEBB7XV6VR created by ~Vera Umboosikonyakol on 11/17/2009

Status: Open
Comments:

"Object variable not set" error on ... (~Vera Umboosiko... 17.Nov.09)
. . NotesUIWorkspace.CurrentView (~Nicole Umresac... 17.Nov.09)
. . . . Old (v6.5) ID file vs upgraded (v8.... (~Vera Umboosiko... 17.Nov.09)
. . . . . . Options (~Nicole Umresac... 17.Nov.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS