Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Archiving via a replica

Posted on 2000-04-12
2
Medium Priority
?
213 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 200 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Integration Management Part 2
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

916 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