FolderViewType: WebApplicationListViewType;
FolderViewType: Prognoz.Platform.Interop.Web.WebApplicationListViewType;
The FolderViewType property determines objects view in the web application folder on opening an application.
Value of this property overwrites value of the viewtype attribute set in XML file.
NOTE. The Web assembly is outdated and is supported in previous versions only.
Executing the example requires that a repository contains a web application with the MyWeb identifier and a regular report with the Report identifier. Before executing the example it is necessary to add links to the Metabase and Web system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
WebApp: IWebApplication;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("MyWeb").Edit;
WebApp := MObj As IWebApplication;
WebApp.TextAbout := "Prognoz Platform 9 web application" + #10 + #13 + "Release 9.0";
WebApp.RootFolderName := "Documents";
WebApp.FolderViewType := WebApplicationListViewType.Icons;
WebApp.InstanceCacheMode := WebApplicationInstanceCacheMode.FlushOnJump;
WebApp.ShowSearchFolder := TriState.OnOption;
WebApp.ResponseHeaderEncoding := "windows-1251";
WebApp.StartPage := MB.ItemById("Report");
MObj.Save;
End Sub UserProc;
After executing this example settings for the web application are defined. Restart Internet Information Services to display settings in the web application.
Executing the example requires that a repository contains a web application with the MyWeb identifier. The procedure described in the example is an entry point for any .Net assembly.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MObj: IMetabaseObject;
WebApp: IWebApplication;
Begin
MB := Params.Metabase;
MObj := MB.ItemById["MyWeb"].Edit();
WebApp := MObj As IWebApplication;
WebApp.TextAbout := "Release 9.0";
WebApp.RootFolderName := "Documents";
WebApp.FolderViewType := WebApplicationListViewType.webapplisvietypIcons;
WebApp.InstanceCacheMode := WebApplicationInstanceCacheMode.webappinscacmodFlushOnJump;
WebApp.ShowSearchFolder := TriState.tsOnOption;
WebApp.ResponseHeaderEncoding := "utf-8";
WebApp.StartPage := MB.ItemById["Report"];
MObj.Save();
End Sub;
After executing this example settings for the web application are defined. Restart Internet Information Services to display settings in the web application.
See also: