Views(Value: String): IDalViews;
ViewName - a physical name of the view in DB.
The Views property returns the cursor, containing system information about the view, which physical name is passed by the ViewName parameter.
Executing the example requires that the repository contains a database with the BD identifier.
Sub Main;
Var
MB: IMetabase;
DB: IDatabaseInstance;
Cur: IDalViews;
Field: IDalCursorField;
Begin
MB := MetabaseClass.Active;
DB := MB.ItemById("BD").Open(Null) As IDatabaseInstance;
Cur := DB.Connection.Views("View_1");
While Not Cur.Eof Do
For Each Field In Cur.Fields Do
Debug.WriteLine(Field.Name + " " + Field.Value);
End For;
Debug.WriteLine("");
Cur.Next;
End While;
Cur.Close;
End Sub Main;
After executing the example connection to the DB server, on which the BD repository database is set, is performed. System information about the view with the View_1 physical name, if there is such on the server, is displayed in a development environment console.
See also: