UpdateView;
The UpdateView method updates view structure on database server according to structure of current view.
The method is analog of theAlterView method. At operation of the UpdateView method, the structure of current view in repository is taken as view structure that should be updated.
Sub Main;
Var
Mb: IMetabase;
View: IView;
Begin
Mb := MetaBaseClass.Active;
View := Mb.ItemById("View_1").Edit As IView;
View.Sql := "Select * From Tab_1";
View.UpdateView;
End Sub Main;
After executing the example, the text of view SQL query is changed in base, without changing the view in repository. The identifier of the repository table is View_1.
See also: