IMetabasePolicy.AllowUserQueries

Syntax

AllowUserQueries: Boolean;

Description

The AllowUserQueries property determines whether the development tools for data exporting from the platform warehouse will be available.

Comments

By default the property is set to True. If the property is set to False, the use of the Dal system assembly, the File class in the IO system assembly, the UiQuery component will be locked.

Example

Sub Main;

Var

MB: IMetabase;

MS: IMetabaseSecurity;

MU: IMetabasePolicy;

Begin

MB := MetabaseClass.Active;

MS := MB.Security;

MU := MS.Policy;

MU.AllowUserQueries := False;

MU.CopyToClipboardAllowed := False;

MS.Apply;

End Sub Main;

After executing this example the work with a clipboard and extended possibilities to work with DB and external files are prohibited while working in repository.

See also:

IMetabasePolicy | General policy