Enterprise Edition:Context: Unterschied zwischen den Versionen

Aus CoPlanner 10
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 86: Zeile 86:
==Context distribution to target import==
==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).  
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.
An import object is only a destination for settings that are passed in context. However it can pass only settings.
Zeile 94: Zeile 92:
{| {{Bausteindesign1}}
{| {{Bausteindesign1}}
|-
|-
| <span style="color: darkblue;">'''Hinweis'''</span> &nbsp;Die Einstellungen können nur für Importobjekte mit Datenquelle „Datendefinition“ gesetzt werden, nicht jedoch für die Typen „SQL“ oder „Text“.
| <span style="color: darkblue;">'''Hint'''</span> &nbsp; Settings can only be set for import object with the data source "data definition" but not for the types "SQL" or "text".
|}
|}




'''Beispiel: Kontext einer Eingabemaske an Import übergeben'''
'''Example: To pass the context of an input mask to import'''


:*Erstellen Sie ein Löschmakro mit einem eingeschränkten Filter über die 'Umsatzerlösarten':
:*Create an extinguishing macro with a restricted filter on the 'types of revenue':




==Kontextweitergabe an Zielobjekt Maske==
==Context distribution to target mask==


Der Kontext kann an [[Enterprise Edition:Eingabemaske|Eingabemasken]], [[Framework:Zeilensicht|Zeilensichten]] und [[Framework:BI Center:Einzelsatzmaske erstellen|Einzelsatzmasken]] übergeben werden. Je nach Maskentyp können diese nur bestimmte Werte aus dem Kontext übernehmen:
The context can be passed to[[Enterprise Edition:Eingabemaske|Eingabemasken]], [[Framework:Zeilensicht|Zeilensichten]] and [[Framework:BI Center:Einzelsatzmaske erstellen|Einzelsatzmasken]]. Depending on the type of mask only certain values can be assumed from the context:
:*Eingabemasken: Filter, Achse, Position
:*Input mask: filter, axis, position
:*Zeilensichten: Filter, Position
:*Single row mask: filter
:*Einzelsatzmasken: Filter, Position
:*Single record mask: filter


You can set the context in the properties of the measure under
Zu setzen ist der Kontext in den Eigenschaften des Measures unter Measureeinstellungen.
Zu setzen ist der Kontext in den Eigenschaften des Measures unter Measureeinstellungen.



Version vom 12. Januar 2015, 15:58 Uhr

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)
matrix mask, context, position

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:

Configuration Description
Properties measure settings The context can be configured over the property DetailContext under the properties of measure settings, onto which fall back on the jump of the detail record.
Masks, Properties measure settings, DetailContext
MakroDescriptor-listing-editor The context can be configured over DetailContext at MacroDescriptor-listing-editor when calling a macro.
MacroDescriptor-listing-editor, DetailContext
General properties If a macro will be executed by save, the context of this can be configured via the property MacroOnSaveContext under general properties.
Masks, General properties, MacroOnSaveContext


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':
Input maks, Macro
  • Include this macro in the source mask and configure the shortcut with the following settings:
Object administration, Macro
  • Open the source mask with restriction of the filter 'Types of revenue':
Input mask, Filter settings
  • 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 only a destination for settings that are passed in context. However it can pass only settings.


Hint   Settings can only be set for import object with the data source "data definition" but not for the types "SQL" or "text".


Example: To pass the context of an input mask to import

  • Create an extinguishing macro with a restricted filter on the 'types of revenue':


Context distribution to target mask

The context can be passed toEingabemasken, Zeilensichten and Einzelsatzmasken. Depending on the type of mask only certain values can be assumed from the context:

  • Input mask: filter, axis, position
  • Single row mask: filter
  • Single record mask: filter

You can set the context in the properties of the measure under 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.

CopContextLinkDialog