Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Robert Brindza 24.May.12 12:52 PM a Web browser
Domino Designer All Releases All Platforms


I need a little help.
I have a button in a view that while copy the selected document as a new document and puts the new document in edit mode. I have had no problem with this function up until recently. There is one document in the database that will error out when running the script. The error received is “Note Error: Note item not found (MCSDocs). Stepping through debug I noticed that the RTF (item) MCSDocs does not show up under the select document MCSDoc.

Here is the script I am using.

Dim ws As NotesUIWorkspace
Dim session As NotesSession
Dim dc As NotesDocumentCollection

Dim db As NotesDatabase
Dim view As NotesView
Sub Initialize

'Declare variables...
Dim answer As Integer

Dim subformDoc As NotesDocument
Dim newDoc As NotesDocument
Dim MCSDoc As NotesDocument

Dim rcode As Integer

'Used For RichText field
Dim rtMCS As NotesItem

Dim db As NotesDatabase

Dim DocCollection As NotesDocumentCollection

'Set variables...
Set Session = New NotesSession
Set db = session.CurrentDatabase
Set ws = New NotesUIWorkSpace

Set DocCollection = session.CurrentDatabase.UnprocessedDocuments

Set subformDoc = New NotesDocument( db )

'Prompt User for New Location...
rcode = ws.Dialogbox ("sfNewLocationDlg", True, True, False, False,
False, False, "New Location", subformDoc, True, False, True)
If Not rcode Then End

'Create new MCS document
Set newDoc = Db.CreateDocument
newDoc.Form = "frmMCS"

'Create fields from selected documents
Set MCSDoc = DocCollection.GetNthDocument(1)

'Set richtext item from current document
Set rtMCS = MCSDoc.GetFirstItem("MCSDocs")

newDoc.LocationDesc = subformDoc.sfNewLocation
newDoc.Department = MCSDoc.Department

'CopyItemToDocument method is used for RichText Field content
Call rtMCS.CopyItemToDocument(newDoc, "MCSDocs")

Call ws.EditDocument(True,newDoc,False)

End Sub






Notes Error: Note item not found (Robert Brindza 24.May.12)
. . RE: Notes Error: Note item not foun... (Rich Schwartz 24.May.12)
. . . . RE: Notes Error: Note item not foun... (Robert Brindza 25.May.12)
. . . . RE: Notes Error: Note item not foun... (Robert Brindza 25.May.12)
. . RE: Notes Error: Note item not foun... (Martha Geppert 24.May.12)
. . . . RE: Notes Error: Note item not foun... (Robert Brindza 24.May.12)
. . . . RE: Notes Error: Note item not foun... (Robert Brindza 24.May.12)
. . . . . . RE: Notes Error: Note item not foun... (Martha Geppert 24.May.12)
. . . . . . . . RE: Notes Error: Note item not foun... (Robert Brindza 25.May.12)
. . . . . . . . . . RE: Notes Error: Note item not foun... (Martha Geppert 25.May.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow