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


Yong Kheng Foo 24.Apr.13 07:39 AM a Web browser
Domino Designer All Releases Windows XP


Dear All expert,

I have an agent with lotusscript. I need this agent to look for a document with a key and change the status of the document found. But somehow do not know how to make it work. The code is as below:

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
key = session.documentcontext.getitemvalue("zNo")
Set db = session.CurrentDatabase
Set view = db.GetView ("Published2" )
Set doc = view.GetDocumentByKey (key )
If Not (doc Is Nothing) Then
??
Else
??
End If
End Sub

The key is actually the current document number. if there is another document with the same document found in the published2 view, it should change the status of the document found in the view while the current document will be store into the view.

Kindly please advice.

Thank you.






How to change document status after... (Yong Kheng Foo 24.Apr.13)
. . RE: How to change document status a... (Yong Kheng Foo 24.Apr.13)
. . RE: How to change document status a... (Phil M Jones 24.Apr.13)
. . . . RE: How to change document status a... (Karl-Henry Mart... 24.Apr.13)
. . . . RE: How to change document status a... (Rich Schwartz 24.Apr.13)
. . . . . . To take it further again on the sca... (Carl Tyler 24.Apr.13)
. . . . . . Save? (Phil M Jones 25.Apr.13)





  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 Web Content Manager
Lotus Domino Document Manager
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow