Enterprise Edition:Context
From version 9.3 HF 2.7 it's possible to transfer the context (=current filter settings in masks) other actions.
Description
The context contains the current settings which the user uses in the active mask. Following settings can be used:
- Filter: The currently selected filter settings
- Axis: The currently displayed and selcted for display elements on the axis
- Position: The current position on the axis is taken as filter in the context (only for matrix masks)

The context will always be set in the source mask The target responds only to the existing context, the reaction depends on the type of the object.
If there are parameter set in the context, which cannot be interpreted by the called component (eg axial are transferred to a detail record) , they will be ignored by the called component.
| Hint The filter/axis matching between the individual elements is based on the filter name in the mask, this corresponds to the Alias at the level of CoPlanner Cube. |
The context of the source mask can be forwarded to the following targets:
Set context in source mask
Depending on the type of mask, you can set all or certain settings:
- Input mask: filter, axis, position
- Single row mask: filter
- Single record mask: filter
The configuration of the context can be made at the following positions in the source mask:
Contribute context to target macro
The context is supported by sever-side macros, as-well as client-side (NAV-Actions) macros but the behavior is different:
- Filter settings are accepted and use for the
In server-side macros filter settings are accepted and used for the development of the current instruction/request; Axis settings do not matter here (axis settings are transferred to filter, this will be treated in the same way as filter). The processed data set is limited by the passed filter.
- In client-side macros will the whole context will be passed to the target of a Nav-action.
A macro is only a destination for settings that are passed in context. However it can pass only settings.
| Hint By passing filter settings for a dimension through the context, no furhter filter settings must be defined for this dimension in the macro; the behavior of the system when both are existing is not defined. |
Example: Passed context of an input mask to extinction macro
- Create an extinguishing macro with a restricted filter on the 'types of revenue':

- Include this macro in the source mask and configure the shortcut with the following settings:

- Open the source mask with restriction of the filter 'Types of revenue':

- The execution of the macro in the source mask leads to the conclusion that the dimension 'types of revenue' of the source mask is not passed to the macro, because this has been excluded from the context. Instead the macro runs with the self-defined filter. If this dimension was not excluded in context only those revenues would be deleted with the type of revenue 'merchandise/Handelswaren' by the macro.
Context distribution to target import
The filter settings will be applied for an import object. For individual dimensions, analogous to masks, either settings can be configured in the import object, or the values will be taken from the context. The system doesn' support a configuration of both simultaneous for one dimension (the systems behavior is undefined).
An import object is always only a goal for settings that are passed in context. How
An import object is only a destination for settings that are passed in context. However it can pass only settings.
| Hinweis Die Einstellungen können nur für Importobjekte mit Datenquelle „Datendefinition“ gesetzt werden, nicht jedoch für die Typen „SQL“ oder „Text“. |
Beispiel: Kontext einer Eingabemaske an Import übergeben
- Erstellen Sie ein Löschmakro mit einem eingeschränkten Filter über die 'Umsatzerlösarten':
Kontextweitergabe an Zielobjekt Maske
Der Kontext kann an Eingabemasken, Zeilensichten und Einzelsatzmasken übergeben werden. Je nach Maskentyp können diese nur bestimmte Werte aus dem Kontext übernehmen:
- Eingabemasken: Filter, Achse, Position
- Zeilensichten: Filter, Position
- Einzelsatzmasken: Filter, Position
Zu setzen ist der Kontext in den Eigenschaften des Measures unter Measureeinstellungen.
Kontextweitergabe an Zielobjekt Webpage
Ist das Zielobjekt eine Webpage, kann der aktuelle Kontext über die URL weitergegeben werden und wird auch bei einem Aufruf aus dem CoPlanner Client entsprechend gesetzt.
Eine Webpage ist immer nur Ziel für Einstellungen, die im Kontext weitergegeben werden. Es kann aber selbst keine Einstellungen weitergeben.
Der CopLink kann im CopContextDialog erstellt werden. Dieser wird durch das Tastenkürzel "Strg J" aus einer Matrix- oder Zeilenmaske heraus geöffnet.



