Retrieving Database Creation date remotely using formula language ???

Hello all ,

I have a doubt regarding database modification date retrival remotely .

Suppose i have two databases on the same server.


now i want to show the modification/creation date of remotedb into a form/view of currentdb . But the restiction is that i can use only formula language .

Is there any solution you guys have ??

One more thing which i want to tell u that i got another solution of this , which uses "Catalog.nsf" in which we get all those databases information. But @dblookup command works only for first sorted column . While in second column (which is not sorted) is occupied by database name , which is useful for me in this case . but because of limitation of first sorted column i am not able to process that . Can u guide me in this direction also ??

Thanks in advance.
Who is Participating?
Sjef BosmanGroupware ConsultantCommented:
Use the ($ReplicaID) view, it is sorted on the replica ID of the database. I assume you can get any value from a document using
    @DbLookup(""; "server":"Catalog.nsf"; "($ReplicaID)"; ReplicaID; fieldname)
All you would need to do is to create a new view sorted the way you want and add the proper columns.

You should do this on the Catalog template ( not the nsf ) so that the update in design are done automaticaly each night.

I hope this helps !

codeguru14Author Commented:

I am using such a server which has restricted access and i don't have permissions to create new views / documents .. So if there is any other solution excpet creating views , please share with me.


I found it interesting , but the problem is that i don't have "ReplicaID" value with me . The value which i only know is the "database Name" and nothing else .
Here is the view Selection formula for "$replicaId" view :

SELECT @IsAvailable(ReplicaID)& @IsUnavailable(RepositoryType)

So it means that ReplicaID must be available . But i don't know the ReplicaID of remote database except knowing its name .
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Sjef BosmanGroupware ConsultantCommented:
Sorry, but no, that's not what it means. It means that only documents in that database are shown in the ($ReplicaID) view that match that condition: in the document there has to be a field ReplicaID and there must not be a field RepositoryType.

From your point of view, this seems irrelevant. You need to get a ReplicaID for a database. How are you planning to program this? What remotedb are you talking about? You seem to have a Domino Designer available, what are you allowed to do with it?
I would make a local replica of the Catalog DB, and create a view locally for the creation date.

Other options are to use soe existing agents that gather info for you.


The ACL scanner can easily be modified to get the data you need and will work locally.

I hope this helps !
Basically, create the two fields that you want to use to store the information in the currentdb.

I used computed fields, one for modifiedDate and another for CreatedDate.

Then I selected the remotedb, and did: File>>Database>>Properties, and copied the database name EXACTLY, and used that value in the LookupDB variable.  I used @Subset(@MaildbName;1) to get the server name, but you can also use @Subset(@DbName;1) provided that the current database is sitting on a server, else you will have to use:

LookupDB:=@if(@Subset(@dbName;1)="";"Your Server Name";@Subset(@dbName;1))

OK, this one will lookup the created date:
LookupDB:="Test Web";
@If(@IsError(CreatedDate)|CreatedDate="";"Not Found";@Text(CreatedDate;"D0S0"))

This one will get the modified date:

LookupDB:="Test Web";
@If(@IsError(ModifiedDate)|ModifiedDate="";"Not Found";@Text(ModifiedDate;"D0S0"))

Also, there is a chance that there is more than one database replica stored for the database, and in that case you will get two or more answers.  

In this case, you modify the last line:
@If(@IsError(ModifiedDate)|ModifiedDate="";"Not Found";@Text(ModifiedDate;"D0S0"))

To do this:
Result:=@If(@IsError(ModifiedDate)|ModifiedDate="";"Not Found";@Text(ModifiedDate;"D0S0"))

As long as you get the Database Title correct, this should work.

BTW, you can also get the replica ID of the database, by looking it up in the By Title view of Catalog.nsf, or, if it's available, selecting File>>Database>>Synopsis, then clicking on "Check DB Info", and then checking "General Information" and "Replication" check boxes.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.