Macro

Overview

The Macro page maintains reusable macro statements in AnalyticsCreator. Use it to name and describe a macro, choose its language, optionally bind it to a table context, and maintain the statement that other design objects can reuse.

Function

The Macro area contains the editable macro definition. Macro name identifies the macro when it is referenced elsewhere, Description documents its purpose, and Language controls how the statement is interpreted.

Referenced table can attach the macro to a table context. The list includes a no-table option and tables that can provide a key-based context for the macro. Statement stores the reusable statement body.

Save requires a macro name, language, and statement. After saving, AnalyticsCreator refreshes affected transformation views that reference the macro directly or through another macro, then refreshes the navigation tree. Cancel closes the page without continuing the current edit.

Access

Open an existing macro from the Macros branch in the navigation tree or from the Macros list. Use Add macro from the Macros branch or New from the Macros list to create a new macro.

How to access

Data warehouse -> Macros -> [macro] -> Edit macro, or Data warehouse -> Macros -> Add macro.

Toolbar

DWH -> Macros, then double-click a row or use New to create a macro.

Diagram

Not opened directly from the diagram. Use the navigation tree or Macros list.

Visual element

Macro page and Macros list

Screen overview

ID Property Description
1MacroGroup area for the macro settings and statement.
2Macro nameRequired macro name used when the macro is referenced.
3DescriptionOptional description for the macro.
4LanguageRequired language used to interpret the macro statement.
5Referenced tableOptional table context for the macro. The list includes a no-table option and tables that can provide a key-based context.
6StatementRequired reusable statement body for the macro.
7SaveValidates required fields, stores the macro, refreshes affected transformation views, and refreshes the navigation tree.
8CancelCloses the page without continuing the current edit.
9Search criteriaFilter area in the Macros list.
10SearchApplies the name filter in the Macros list.
11Delete filterClears the current filter and reloads the Macros list.
12NameMacro name column in the Macros list.
13LanguageMacro language column in the Macros list.
14NewCreates a macro from the Macros list.
15DeleteDeletes the selected macro after confirmation.

Related topics