ScanHiddenFolders: Boolean;
ScanHiddenFolders: boolean;
The ScanHiddenFolders property determines whether the search is performed in the hidden folders.
If the user has not rights to read any folder, this folder (and its contents) is hidden from the repository. The property is set to False by default, the search is not performed in the hidden folders. If there are objects in the hidden folders to which the user has a right to read, it is necessary to set the property to True to find them.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MDescs: IMetabaseObjectDescriptors;
MDesc: IMetabaseObjectDescriptor;
FInfo: IMetabaseObjectFindInfo;
Begin
MB := MetabaseClass.Active;
FInfo := MB.CreateFindInfo;
FInfo.ClassId := MetabaseObjectClass.KE_CLASS_STDCUBE;
FInfo.WholeWordsOnly := False;
FInfo.ScanHiddenFolders := True;
MDescs := MB.Find(FInfo);
For Each MDesc In MDescs Do
Debug.WriteLine("Identifier: " + MDesc.Id + "; Name: " + MDesc.Name);
End For;
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MDescs: IMetabaseObjectDescriptors;
MDesc: IMetabaseObjectDescriptor;
FInfo: IMetabaseObjectFindInfo;
Begin
MB := Params.Metabase;
FInfo := MB.CreateFindInfo();
FInfo.ClassId := MetabaseObjectClass.KE_CLASS_STDCUBE As integer;
FInfo.WholeWordsOnly := False;
FInfo.ScanHiddenFolders := True;
MDescs := MB.Find(FInfo);
For Each MDesc In MDescs Do
System.Diagnostics.Debug.WriteLine(Identifier: + MDesc.Id + "; Name: " + MDesc.Name);
End For;
End Sub;
After executing the example all standard cubes which are contained in the repository are searched. Search is performed in all repository folders including those ones to which the user can have no rights to read. Names and identifiers of the found objects are displayed in the development environment console.
See also: