Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You don't need to create a database for this purpose, there is already one. It is called "catalog.nsf" and contains the Information you want. You just need to create a view and modify the selection- formula slightly: Original: </p> <pre><code>SELECT @IsAvailable(ReplicaID)&amp; @IsUnavailable(RepositoryType)&amp; !(DBListInCatalog = "0") </code></pre> <p>New: </p> <pre><code>SELECT @IsAvailable(ReplicaID)&amp; @IsUnavailable(RepositoryType) </code></pre> <p>That way you see all databases, even the ones that normally are not visible in catalog. </p> <p>The information you are looking for is in the "DbInheritTemplateName"- Field. </p> <p><em>If you want to code this yourself, you can either run through all documents in the catalog.nsf and read it from there or you use a NotesDBDirectory, run through it and read the "DesignTemplateName"- property of NotesDatabase- Class.</em></p> <p>Example code for catalog: </p> <pre><code>Dim dbCatalog as NotesDatabase Dim dc as NotesDocumentCollection Dim doc as NotesDocument Dim strTemplate as String Set dbCatalog = New NotesDatabase( "YourServerName" , "catalog.nsf" ) Set dc = dbCatalog.Search( "@IsAvailable(ReplicaID)&amp; @IsUnavailable(RepositoryType)", Nothing, 0 ) Set doc = dc.GetFirstDocument() While not doc is Nothing strTemplate = doc.GetItemValue( "DBInheritTemplateName" )(0) '- do whatever you want: create a document in your database, create a list... Set doc = dc.GetNextDocument(doc) Wend </code></pre> <p>Example code for NotesDBDirectory</p> <pre><code>Dim dbDirectory as New NotesDBDirectory( "YourServerName" ) Dim db as NotesDatabase Dim strTemplate as String Set db = dbDirectory.GetFirstDatabase( DATABASE ) While not db is Nothing strTemplate = db.DesignTemplateName '- do whatever you want: create a document in your database, create a list... Set db = dbDirectory.GetNextDatabase Wend </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload