FileFormat (NotesDatabase - JavaScript™)
Read-only. The ODS (on-disk structure) version of a database.
Defined in
NotesDatabaseSyntax
getFileFormat() : int
Usage
The ODS version increments with newer versions of Domino®:- Domino® 5 is 41.
- Domino® 6 is 43.
- Domino® 7 is 43.
- Domino® 8 is 48. Requires
notes.ini
variableCREATE_R8_DATABASES=1
. - Domino® 8.5 is 51. Requires
notes.ini
variableCREATE_R85_DATABASES=1
.
The database must be open to use this property.
Examples
This button gets the titles and ODS versions of all the local databases.var dir:NotesDbDirectory = session.getDbDirectory(null);
var db:NotesDatabase = dir.getFirstDatabase(NotesDbDirectory.DATABASE);
var msg = "Database titles and ODS versions";
while (db != null) {
db.open(); // Must open database
msg = msg + "\n" + db.getTitle() + " " + db.getFileFormat().toFixed();
db = dir.getNextDatabase();
}
requestScope.status = msg;