Macro Evaluator#

The Macro Evaluator is available to test a macro at a hierarchy level. Refer to the macro functions, syntax and examples in the documentation.

../../_images/macro-evaluator.png
  1. Choose Administration Tools > Macro Evaluator to open the Macro Evaluator input form.

  2. From the drop-down list, choose the Context Hierarchy at which the macro is to be evaluated.

  3. Enter the macro text in the Macro input box.

    By default, a macro {# data.Countries.* | country_name:input.country #} is entered as a test macro to evaluate and Show Context is enabled to display the Context Data box for the input. parameter in the macro. Refer to the examples in the macro reference topics.

  4. Enable and provide values for Context Data and add data if required.

  5. Click Evaluate to run the query. The result of the evaluated macro is displayed in the Output box.

Additional utility controls available on the Macro Evaluator form:

  • Click the Reset button to revert the form to the default example.

  • Click the JSON Edit button to edit your macro and context in a JSON editor.

  • Use the Copy to Clipboard button to copy the macro output.

  • Use the Save to File button to save the macro output to a JSON file - default filename is Macro_Output.json.