IMetabasePolicy.AllowUserQueries

Syntax

AllowUserQueries: Boolean;

Description

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

Comments

The property is set to True by default. 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

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MU: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MU := MS.Policy;
    
// Deny extended capabilities of work with database and external files
    MU.AllowUserQueries := False;
    
// Deny work with clipboard
    MU.CopyToClipboardAllowed := False;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

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

See also:

IMetabasePolicy | General policy