GetActiveContext: ISystemPadContext;
GetActiveContext(): Prognoz.Platform.Interop.Express.ISystemPadContext;
The GetActiveContext method returns context of the EaxConfigurationPanel component.
To determine data source of the EaxConfigurationPanel component, use the IEaxConfigurationPanel.Analyzer property.
Executing the example requires a form containing the EaxConfigurationPanel component with the EaxConfigurationPanel1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier. Determine the UiErAnalyzer1 component as data source for the EaxConfigurationPanel1 component. Use express report as data source for the UiErAnalyzer1 component.
The example is the OnClick event handler for the form.
Sub EAXCONFIGURATIONPANELFormOnClick(Sender: Object; Args: IMouseEventArgs);
Var
sps: ISystemPadContext;
Begin
sps := EaxConfigurationPanel1.GetActiveContext;
Debug.WriteLine(sps.SystemPadId);
End Sub EAXCONFIGURATIONPANELFormOnClick;
On clicking the form. the console displays side panel component identifier - EaxDataSource.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Add link to the Express system assembly.
Imports Prognoz.Platform.Interop.Express;
…
Private Sub EAXCONFIGURATIONPANELForm_Click(sender: System.Object; e: System.EventArgs);
Var
sps: ISystemPadContext;
Begin
sps := eaxConfigurationPanelNet1.CtrlBox.GetActiveContext();
System.Diagnostics.Debug.WriteLine(sps.SystemPadId);
End Sub;
See also: