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:
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
'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: