Click or drag to resize

IConsoleTemplate Interface

Public interface for the ConsoleTemplate pages. A console includes a collection of IConsolePane objects. Each pane has a Renderer UserControl (derived from the EAPControlBase class) and typically an IMapper available from the pane's MapperObject property. The console is expected to have exactly one "main" pane available from the MainPane property. Each pane corresponds to one PageElementInfo in the Elements collection of the console's PageInfo.

Console pages can generally be of two types:

  • Main - Console pages presenting panes filtered relative to the main pane (using each pane's ParentViewKeySource. and ViewKey). An example would be a company page, commonly named somethig like company!main, showing the company detail and list of related items for that company such as employees, clients, and projects.
  • Dashboard - Console pages presenting panes not filtered on the main pane. Often dashboard consoles present groups actions and of links to various parts of the application.

By default the console page presents all panes that are visible at one time. However, the console also supports Pane Navigation whereby only one pane marked with the PaneNavigation attribute, the Active Pane, is shown at one time. When Pane Navigation is in use the default Active Pane is specified by the HomePane.

For an overview of console page events see PageExtensionBase.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public interface IConsoleTemplate

The IConsoleTemplate type exposes the following members.

Properties
  NameDescription
Public propertyActivePane
Gets the active IConsolePane for the console. The active pane is the pane driving the current action and controlling the toolbar. Unless PaneNavigation is in play, the ActivePane is always the MainPane. However, when PaneNavigation is in play, the ActivePane is often not the same pane as the MainPane. For example, if the main pane were a company detail and, using PaneNavigation and the user navigated to an addresses pane for that company then the MainPane would be the company pane, but the ActivePane would be the addresses pane. In that case, the Toolbar would be driven by the addresses pane and, for example, an Excel export would export a list of addresses rather than the company record.
Public propertyApplication
Returns the IAppContext object.
Public propertyIsEditMode
Gets the status of the console EditMode, true = on, false = off.
Public propertyMainMapperObject
Gets the primary IMapper associated with the MainRenderer. Note that not all renderers have a primary mapper so this may return null.
Public propertyMainPane
Gets the main IConsolePane for the console. The main pane is typically some type of detail renderer used to provide context for all the other panes including construction of parent filters on the other panes. For example, the main pane might be a company detail pane and some other panes might include company addresses and company contacts where each of those other panes are filtered against the current company in the MainPane to provide addresses and contacts specific to that company.
Public propertyMainRenderer
Gets the primary renderer for the current page (from the "main" slot). The renderer is expected to be derived from the EAPControlBase class and implement the IRenderer interface Use MainMapperObject to get its mapper, if any.
Public propertyPageInfo
Gets the PageInfo object for the current page.
Public propertyPanes
The console's collection of IConsolePane objects, indexed by PageElementInfo.Name. Note that this collection is a copy of the console's internal collection. It contains references to the actual IConsolePane objects, but changes to the collection itself (e.g. adding or removing panes) will have no effect to the console.
Public propertyToolbar
Returns the IToolbar for this page.
Top
Methods
  NameDescription
Public methodEvaluateEnableRule
Evaluate the javascript "EnableRule" expression against the main renderer's mapper, evaluate the result as javascript, and return the result as true/false. If an error occurs while evaluating the expression, then a message will be returned in errorMessage and the function will return false. Note that if the mapper has no records then the expression is not evaluated and false is always returned.
Top
See Also