Enterprise Edition:Context: Unterschied zwischen den Versionen

Aus CoPlanner 10
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 50: Zeile 50:
|'''MakroDescriptor-listing-editor'''
|'''MakroDescriptor-listing-editor'''
|The context can be configured over DetailContext at MacroDescriptor-listing-editor when calling a macro.
|The context can be configured over DetailContext at MacroDescriptor-listing-editor when calling a macro.
[[image:DetailContext_MakroDescriptorAuflistungsEditor.png|thumb|center|MacroDescriptor-Auflistungs-Editor, DetailContext]]
[[image:DetailContext_MakroDescriptorAuflistungsEditor.png|thumb|center|MacroDescriptor-listing-editor, DetailContext]]
|-
|-
|'''Eigenschaften Allgemein'''
|'''General properties'''
|Wird beim Speichern ein Makro ausgeführt, kann der Kontext dafür über die Eigenschaft MacroOnSaveContext unter Eigenschaften Allgemein konfiguriert werden.
|If a macro will be executed by save, the context of this can be configured via the property MacroOnSaveContext under general properties.
[[image:DetailContext_MacroOnSave.png|thumb|center|Masken, Eigenschaften Allgemein, MacroOnSaveContext]]
[[image:DetailContext_MacroOnSave.png|thumb|center|Masks, General properties, MacroOnSaveContext]]
|}
|}




==Contribute context to target macro==


==Kontextweitergabe an Zielobjekt Makro==
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.


Der Kontext wird sowohl für serverseitige Makros, als auch für clientseitige (= NAV-Aktionen)  Makros unterstützt, wobei jedoch das Verhalten unterschiedlich ist:
:*In client-side macros will the whole context will be passed to the target of a Nav-action.  
:*Bei serverseitigen Makros werden Filtereinstellungen übernommen, und für die Abarbeitung des aktuellen Befehls/Requests verwendet; Achseinstellungen spielen hier keine Rolle (werden Achseinstellungen in den Filter übernommen, so wird dies gleich wie ein Filter behandelt). Dies bedeutet, dass das zu bearbeitende Datenset durch die im Kontext übergebenen Filter eingeschränkt wird.
:*Bei clientseitigen Makros wird der gesamte Kontext an das Zielobjekt einer Nav-Aktion weitergegeben.  


Ein Makro ist immer nur Ziel für Einstellungen, die im Kontext weitergegeben werden. Es kann aber selbst keine Einstellungen weitergeben.
A macro is only a destination for settings that are passed in context. However it can pass only settings.


{| {{Bausteindesign1}}
{| {{Bausteindesign1}}
|-
|-
| <span style="color: darkblue;">'''Hinweis'''</span> &nbsp;Werden über den Kontext Filtereinstellungen für eine Dimension weitergegeben, so dürfen im Makro keine weiteren Filtereinstellungen für diese Dimension definiert werden; das Verhalten des Systems, wenn beides vorhanden ist, ist nicht definiert.
| <span style="color: darkblue;">'''Hint'''</span> &nbsp;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.
|}
|}




'''Beispiel: Kontext einer Eingabemaske an Löschmakro übergeben'''
'''Example: Passed context of an input mask to extinction macro'''


:*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':
[[image:Kontext_Makro_KonfigurationMakroObjektverwaltung.png|thumb|center|Eingabemaske, Makro]]
[[image:Kontext_Makro_KonfigurationMakroObjektverwaltung.png|thumb|center|Input maks, Macro]]
:*Binden Sie dieses Makro in die Quellmaske ein und konfigurieren Sie den Kontext mit folgenden Einstellungen:
:*Include this macro in the source mask and configure the shortcut with the following settings:
[[image:Kontext_Makro_KonfigurationMakroQuellmaske.png|thumb|center|Objektverwaltung, Makro]]
[[image:Kontext_Makro_KonfigurationMakroQuellmaske.png|thumb|center|Object administration, Macro]]
:*Öffnen Sie die Quellmaske mit Einschränkung des Filters 'Umsatzerlösarten':
:*Open the source mask with restriction of the filter 'Types of revenue':
[[image:Kontext_Makro_EinstellungenQuellmaske.png|thumb|center|Eingabemaske, Filtereinstellungen]]
[[image:Kontext_Makro_EinstellungenQuellmaske.png|thumb|center|Input mask, Filter settings]]
:*Die Makroausführung in der Quellmaske führt zu dem Ergebnis, dass die Dimension 'Umsatzerlösarten' der Quellmaske nicht an das Makro übergeben wird, da diese im Kontext ausgenommen wurde. Stattdessen wird das Makro mit dem selbst definierten Filter ausgeführt. Wäre diese Dimension im Kontext nicht ausgenommen, würden über das Makro nur jene Umsatzerlöse mit der Umsatzerlösart 'Handelswaren' gelöscht werden.
:*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).


==Kontextweitergabe an Zielobjekt Import==
An import object is only a destination for settings that are passed in context. However it can pass only settings.
Für ein Importobjekt werden die Filtereinstellungen übernommen. Analog zu Masken können für einzelne Dimensionen entweder Einstellungen im Importobjekt getroffen werden, oder aber die Werte aus dem Kontext übernommen werden. Wird bei einer einzelnen Dimension beides getan, so wird dies vom System nicht unterstützt (das Verhalten des Systems ist undefiniert).  


Ein Importobjekt ist immer nur Ziel für Einstellungen, die im Kontext weitergegeben werden. Es kann aber selbst keine Einstellungen weitergeben.


{| {{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


Zu setzen ist der Kontext in den Eigenschaften des Measures unter Measureeinstellungen.
The context can be configured under the properties of measure settings




==Kontextweitergabe an Zielobjekt Webpage==
==Context distribution to target 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.
Is the target a webpage, the current context can be passed by using an URL and will be set accordingly by a call from the CoPlanner client.


Eine Webpage ist immer nur Ziel für Einstellungen, die im Kontext weitergegeben werden. Es kann aber selbst keine Einstellungen weitergeben.
A webpage is only a destination for settings that are passed in context. However it can pass only settings.
 
The CopLink can be created in CopContextDialog. This will be opened by the shortcut "Ctrl J" of a matrix mask or singel row mask.


Der CopLink kann im CopContextDialog erstellt werden.
Dieser wird durch das Tastenkürzel "Strg J" aus einer Matrix- oder Zeilenmaske heraus geöffnet.
[[image:CopContextLinkDialog.png|thumb|center|CopContextLinkDialog]]
[[image:CopContextLinkDialog.png|thumb|center|CopContextLinkDialog]]

Aktuelle Version vom 12. Januar 2015, 16:17 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

The context can be configured under the properties of measure settings


Context distribution to target webpage

Is the target a webpage, the current context can be passed by using an URL and will be set accordingly by a call from the CoPlanner client.

A webpage is only a destination for settings that are passed in context. However it can pass only settings.

The CopLink can be created in CopContextDialog. This will be opened by the shortcut "Ctrl J" of a matrix mask or singel row mask.

CopContextLinkDialog