Populate command
Used in a Server.Load script to ensure that there are (NumMailNotesPerUser) documents in the current database.
This command locks the database to prevent other users from simultaneously performing another Populate command, gets the number of documents currently in the database, and adds documents as necessary.
Syntax
Populate (NumMailNotesPerUser) [folder]
Where:
- NumMailNotesPerUser -- Total number of documents you want the database to have
- folder -- Folder or view to which documents will be added
Example
This
example creates and initializes a mail file(s); documents are added
to folder $Inbox.
Note: Text enclosed in asterisks (**) indicates comments.
changeto [MailServer]!!mail\mail[#].nsf mail46.ntf
**Make sure there are enough documents in mail database**
populate [NumMailNotesPerUser] $Inbox
**Open the current view**
open
**Close the view**
close
drop