Solved

Archiving via a replica

Posted on 2000-04-12
2
203 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now