Solved

Archiving via a replica

Posted on 2000-04-12
2
208 Views
Last Modified: 2013-12-18
Hi,

I'm writing an archive routine in script to remove all documents that haven't been modified in over a year. The problem is that I created a replica yesterday, I don't want to work on the live db. As a consequence of this the lastmodified property in script is giving yesterdays date. If you right click on an old document the modified date is the true modified date, and the 'modified in this file' is yesterdays date. Is there an easy way to access the first modified date through script? I'm using Notes 4.6

Thanks
0
Comment
Question by:srandrews
[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
 

Accepted Solution

by:
floriangrimm earned 50 total points
ID: 2707768
bad news
no you cannot

but...
you can copy the file - you have stop the server (are you admin?)...


don't you replicate to any server?
if yes you may have a problem, but also a simple solution

create an field e.g. "lastsave" (date)
in the recalc-event you set the field to now
(FIELD lastsave := @Now;
@Success).
(Now you can set the field in an Agent
FIELD lastsave := @Modified;
SELECT @ALL)

now test the new field in your script.

if you often modify these documents, there is a problem --- replica and save conflicts...
{but you might help do test the field befor seting...
FIELD lastsave := lastsave;
@if(lastsave <= @Adjust(@Now;0;0;-7);
  @SetField("lastsave"; @Now);
  @Success);
@Success
)

i hope this helps....
bye Flori
0
 

Author Comment

by:srandrews
ID: 2707796
Not what I was wanting to here! But I was expecting it. I don't want to modify 100,000 documents, which is how big the database is. I have just checked and @Modified returns the correct modified date so I'll use the Evaluate command in Script.

Cheers Flori
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

752 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