IConsoleTemplate Interface |
Console pages can generally be of two types:
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
The IConsoleTemplate type exposes the following members.
Name | Description | |
---|---|---|
ActivePane |
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.
| |
Application |
Returns the IAppContext object.
| |
IsEditMode |
Gets the status of the console EditMode, true = on, false = off.
| |
MainMapperObject |
Gets the primary IMapper associated with the MainRenderer. Note that not
all renderers have a primary mapper so this may return null.
| |
MainPane |
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.
| |
MainRenderer |
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.
| |
PageInfo |
Gets the PageInfo object for the current page.
| |
Panes |
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.
| |
Toolbar |
Returns the IToolbar for this page.
|
Name | Description | |
---|---|---|
EvaluateEnableRule |
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.
|