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 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

PostOpen View Script Problem/lock, move to next unlocked
cathy heldmann 7.May.03 05:57 AM a Web browser
Domino Designer -- Views 4.6.4 Windows 2000

I have been working through this for about 2 weeks trying different variations and not having complete success. I'm not very good at script,but what I am trying to do it to open the first available, unlocked document in a view through script. This is a work queue and I do not want people to "pick and choose" what they get. All they see in the view is the date a request comes in, and the date it is needed. I started out trying to run an agent to set the fields EscFlag and ProgressFlag, which formulas I have used in an Agent from this forum, but that kept returning to the first document and not stepping down to the next. I tried Nth document but that did not work. Any suggestions would be appreciated. What I am trying to do is on the postopen of the view, check to see which document is "next" in line that has not already been assigned. I am attempting to set the EscFlag to "" and the Progress Flag to the username. I also tried using Get and Set, but no luck there, either. Here is my script: (Now I get an error that "object variable is not set"). I ran this through the debugger but still cannot figure it out. Do I need to put in a Wend somewhere or am I lacking something else?

Sub Postopen(Source As Notesuiview)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entry As NotesViewEntry
Dim nav As NotesViewNavigator
Dim Doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView("HardCopy")
Set nav = view.CreateViewNav
Set entry = nav.GetFirstDocument
Call doc.AppendItemValue _
("RetrInit", session.UserName)
Call doc.AppendItemValue_ ("EscFlag", "")
Call doc.Save(True, False)
If agent.Run = 0 Then
Messagebox "Agent ran",, "Success"
Else
Messagebox "Agent did not run",, "Failure"
End If

End Sub

Should I have stuck with the agent? Should I instead use get and set, instead of Append? Was I supposed to declare the Itemvalues separately as variables? Thanks for any information.

Cathy




PostOpen View Script Problem/lock, ... (cathy heldmann 7.May.03)
. . RE: PostOpen View Script Problem/lo... (Uwe Emmrich-Kie... 7.May.03)
. . . . RE: PostOpen View Script Problem/lo... (cathy heldmann 7.May.03)
. . . . . . RE: PostOpen View Script Problem/lo... (Uwe Emmrich-Kie... 7.May.03)
. . . . . . . . Yes, that is what I want, to replac... (cathy heldmann 7.May.03)
. . . . Forgot to post where error is: Appe... (cathy heldmann 7.May.03)






  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
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

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