Solved

Refeshing Dox or view

Posted on 2004-03-31
2
219 Views
Last Modified: 2013-12-18
Hi Guys

A change in direction again

I want to refresh documents with an agent that will sign the serverID

I would either like it do all associated with  @Left(Form;3) = "Req"  or barring that  a view RByType

This would be a one time agent so I would not want to schedule beyond single use

Thanks

James
0
Comment
Question by:adspmo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 250 total points
ID: 10726210
Try this script in an agent. Schedule it to run, Sign the agent with server id and after running remove the schedule option or disable it

      Dim s As New NotesSession
      Dim db As NotesDatabase
      Dim col As NotesDocument
      Set db = s.CurrentDatabse
      searchstr = {@Left(Form;3) = "Req"}
      Set col = db.Search( searchStr, Nothing, 0)
      If col.Count > 0 Then
            Set doc = col.GetFirstDocument
            While Not doc Is Nothing
                  Call doc.sign
                  doc.save True, False
                  Set doc = col.GetNextDocument(doc)
            Wend
      End If

~Hemanth
0
 

Author Comment

by:adspmo
ID: 10726429
Thanx a bunch
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question