Solved

Creating  anAbout Database doc using script or API

Posted on 2002-05-03
6
333 Views
Last Modified: 2013-12-18
Hi:

I am in the process of upgrading some mail files and did find out that some of the users do not have an "About Database" document.   Is there a way to create "About Database" documents without opening each one in designer and adding one.

Thanks
Ven
0
Comment
Question by:ekommineni
6 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 6989114
I would try replacing the design from the correct template.

This can be don globally using the convert program.

see the Admin help :

The mail conversion utility command uses arguments to specify options. It has the form:
load convert [-r | -l | -f | -m] mailfilepath existingtemplatename newtemplatefilename
where  -r converts mail files in subdirectories of the specified directory, -l creates a text list of mail files, -f uses a text list of mail databases to determine which mail files to upgrade, -m converts the file or files for IMAP use, mailfilepath specifies which mail file or files to upgrade, existingtemplatename specifies a certain mail file design (for example, only mail files using R4.6 designs) to upgrade, and newtemplatefilename specifies the template with which to upgrade the mail files.
Using the mail conversion utility

----------------
Replace the templates and this should include the About section.

I hope this helps !
0
 

Author Comment

by:ekommineni
ID: 6989146
Convert works if the mail file has a "about document"  if there is no "about document" it does not creating one.

One of my co-worker mentioned that Iris developers have a script library to pull all design elements as documents.  I think I am close to a solution.  I will post it as soon I get a resolution.

Thanks
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 130 total points
ID: 6989372
Here is a simple script which can server the purpose. I have provided comment on each line. You can have this script run on database open or any default view open (eg: Inbox) of the template and refresh the design of all the mail dbs from server by using "load design" command


=================
     Dim s As New NotesSession
     Dim about, currentAbout As NotesDocument
     Dim thisdb As NotesDatabase
     Dim db As New NotesDatabase( "Server", "test.nsf") ' Location where the about doc is available
     Set about = db.GetDocumentByUNID( "FDC884AFB355C2AA88256BAF00127350" ) ' UNID of the about document
     Set thisdb = s.CurrentDatabase
     Set currentAbout = about.CopyToDatabase( thisdb ) ' Copy the about doc to the current db

===================

~Hemanth
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6990969
If there's an about document in the template used by the user's mailfile, all you need to do is load the designer task on the server and it will automatically be updated.

The only reason, why the about document isn't replace or updated, would be that the user flagged the "Do not allow design refresh/replace to modify" property for the about page, but this would allready mean that there is an about page present.

I have the designer task scheduled on my server daily to make sure the design stays up to date, so when I make changes to the template, all databases are updated automatically during the night.

Regards,
JM
0
 

Author Comment

by:ekommineni
ID: 6991779
Thanks Hemanth..

You script code sure did work.

I did also recived a DBScript (script library) from lotus, that can copy any design element.  
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6992032
You are welcome.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

  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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 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