fixup (NotesDatabase - JavaScript™)
Runs the Fixup task on a database.
Defined in
NotesDatabaseSyntax
fixup() : void
fixup(options:int) : void
Parameter | Description |
---|---|
options |
One or more of the following. Add options to
combine them.
|
Examples
This button runs the Fixup task on all the databases in the local directory.var dbdir:NotesDbDirectory = session.getDbDirectory("");
var db:NotesDatabase = dbdir.getFirstDatabase(NotesDbDirectory.DATABASE);
requestScope.status = "Fixup local databases";
while (db != null) {
if (db.open()) {
requestScope.status += "\nFixing " + db.getFileName();
db.fixup(NotesDatabase.FIXUP_QUICK +
NotesDatabase.FIXUP_INCREMENTAL + NotesDatabase.FIXUP_NOVIEWS);
db = dbdir.getNextDatabase();
}
}