@SetDBOptions
Syntax
@SetDBOptions(DBHANDLE1;FN2);
@SetDBOptions(DBHANDLE1;FN2;FNEXTOPTIONS);
Description
Sets the database options specified in FN FN2 in the database identified by DBHANDLE DBHANDLE1.
If FN FNEXTOPTIONS is specified, the extended database options are also set; otherwise they remain unchanged.
On success, FN 1 is returned; otherwise @ERROR is returned.
FNEXTOPTIONS:
BIT DEC HEX BEDEUTUNG if set
01 000001 00001 Don’t allow use of stored forms in this DB
02 000002 00002 Display images after loading
03 000004 00004 Web access: Use JavaScript when generating pages
04 000008 00008 Web access: Require SSL connection
05 000016 00010
06 000032 00020
07 000064 00040
08 000128 00080
09 000256 00100
10 000512 00200
11 001024 00400
12 002048 00800
13 004096 01000
14 008192 02000
15 016384 04000 Do not send changes in local security property to other replicas
16 032768 08000 Replicate Title and Categories to other replicas of this DB
FN2:
Options:
BIT DEC HEX BEDEUTUNG if set
01 000001 00001 Full-text indexing enabled
02 000002 00002 DB is an ObjectStore*
03 000004 00004 DB has documents that use an ObjectStore*
04 000008 00008 NoteUpdate should never attempt to use an ObjectStore*
05 000016 00010 DB is a library
06 000032 00020 All replicas of this DB should have an ACL
07 000064 00040 NoteUpdate should always attempt to use an ObjectStore
08 000128 00080 Reserved
09 000256 00100 Reserved
10 000512 00200 DB has no background agent
11 001024 00400 DB is out of service
12 002048 00800 DB is a personal journal
13 004096 01000 DB is marked for deletion
14 008192 02000 DB stores calendar events
15 016384 04000 DB is a catalog index
16 032768 08000 DB is an address book
17 065536 10000 DB is a "multi-db-search" repository
18 131072 20000 User activity log is confidential
19 262144 40000 Reserved
20 524288 80000 DB is a "multi-db-site" repository
*ObjectStore(for garbage collection)
To set several options, the corresponding values are added.
Example @SetDBOptions(DBHANDLE1;FN2):
DBHANDLE1:=@OpenDB("TEST.NSF");
@LogReport(@SetDBOptions(DBHANDLE1;32));
DBHANDLE1:=@CloseDB(DBHANDLE1);
The database is opened.
Then the database option DEC 32 (all replicas of this database should have an ACL) is set,
and the database is closed again.
Note : This text was machine-translated and may contain inaccuracies.
