Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

Ah, sorry. The view agent in @Commands can not do it....
~Umberto Nongeroson 16.Jan.04 10:24 PM a Web browser
Notes Client 6.5 Windows 2000, Windows XP


LS Agent can.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)

  acts = doc.Activity
  If doc.acts(0) <> "" Then
    For i = Lbound(acts) to Ubound(acts)
      set newDoc = db.CreateDocument
      newDoc.Form = "Mod_Activity"
      Call newDoc.MakeResponse(doc)  'If needed
      newDoc.Activity_Date = strLeft(acts(i), " - ")
      newDoc.Activity_Enter = strRight(acts(i), " - ")
      Call newDoc.Save(True, False)
   Next
   doc.Recent_Activity = Today
   doc.Activity = ""
   Call doc.Save(False, True)
 End If
 Set doc = collection.GetNextDocument(doc)
Wend




@DoWhile looping agent problem (~Cheryl Zekgero... 16.Jan.04)
. . There are three things that I can s... (~Dan Elhipister... 16.Jan.04)
. . . . RE: There are three things that I c... (~Cheryl Zekgero... 16.Jan.04)
. . . . . . Ah, sorry. The view agent in @Comma... (~Dan Elhipister... 16.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


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

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS