Mode: ApplicationMode;
The Mode property determines by which method the connection to the repository was established.
The repository connection can be established from the client workstation of Foresight Analytics Platform desktop application or web application.
Executing the example requires a form containing the Button component with the Button1 identifier. This example is a handler of the OnClick event for the Button1 component.
Add links to the Metabase, Ui system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
Begin
MB := MetabaseClass.Active;
If MB.Mode = ApplicationMode.Web Then
WinApplication.InformationBox(This function is not available in the web application);
Else
WinApplication.InformationBox("This function is available on repository connection from client workstation of Foresight Analytics Platform desktop application.");
End If;
End Sub Button1OnClick;
As a result of the execution of the example the following message is displayed:
"This function is not available in the web application" if the connection to the repository is established from the web application.
"This function is available on repository connection from client workstation of Foresight Analytics Platform desktop application if repository connection is established at client workstation from Foresight Analytics Platform desktop application.
See also: