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


Lisa J Vincent 23.Feb.12 05:54 PM a Web browser
Domino Designer All Releases Windows XP


I think I've looked at this for too long. I've rewritten this multiple times, but end up at the same place each time. It seems very simple, but I'm missing something and hope someone can assist.

From a view with several documents selected, I need to loop through all of the entries in my RevisionTB field and replace every instance of "See DCM's Copy" with initials. I use Select Case below to get the initials to use.

My field, RevisionTB, is a multivalue text field. Each "value" within the multivalue field contains three individual values like so:

"09/10/2006>><<10/18/04>><<See DCM's Copy"
"07/11/2008>><<09/10/2006>><<See DCMs Copy"
"08/12/2009>><<06/15/2008>><<See DCMs Copy"


My multivalue delimeter is a new line and the ">><<" is part of the data in the first value of the multivalue array:

"09/10/2006>><<10/18/04>><<See DCM's Copy"


I think I should use arrayreplace, but I am unsure how to include it. Any pointers would be greatly appreciated.



This is what I have so far.



Sub Initialize
Dim Session As NotesSession
Dim Db As NotesDatabase
Dim Workspace As NotesUIWorkspace
Dim UIDoc As NotesUIDocument
Dim Doc As NotesDocument
Dim View As NotesView
Dim collection As NotesDocumentCollection
Dim ISO As String
Dim ISOINIT As String

Set Session = New NotesSession
Set Db = Session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
ISO = doc.ISOPerson(0)

Select Case ISO
Case "Bob Car"
ISOINIT="BC"
Case "Kirk Good"
ISOINIT="KG"
Case "Greg White"
ISOINIT="GW"
Case "Chris David"
ISOINIT="CD"
Case Else
ISOINIT="See DCM's Copy"
End Select

ForAll v In doc.RevisionTB
If InStr("DCM", v) Then

"help needed here"

End if
End ForAll
Set doc = collection.GetNextDocument(doc)
Wend

End Sub






Lotusscript - Arrays (Lisa J Vincent 23.Feb.12)
. . RE: Lotusscript - Arrays (Pete Burn 24.Feb.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