Macro Engine Configuration

image_pdfimage_print

Macro Engine (ME) is an extension of the Jedox Web Core delivered in the form of an external library (.dll/.so), which gets loaded when Core loads. It is enabled by default but is not mandatory, meaning that Core will start even if this extension is disabled or if Core is unable to load it during the start procedure.

ME is called by the following entry in the file …\Jedox Suite\core\config.xml (Windows) or …/core-Linux-i686/etc/config.xml (Linux):

ME has different configuration options that are set in the file macro_engine_config.xml. These options are mainly various PHP statements, which are normally in the php.ini. Furthermore, included are the user-defined functions, which should be available server-wide.

The following is an example of a macro_engine_config.xml:

The sections of the macro are:

  • php_extensions: used to define the path to PHP extensions used in ME; within this section you specify the files to be loaded when ME loads.
  • php_files: used to specify relevant PHP directories, such as “temp” and “include”. You can specify more than one “include” directory path
  • ini_directives: here you can specify general PHP settings. In standalone PHP, such settings are found in the file php.ini.
  • functions: used to specify custom functions that will be available to every ME user. You have to specify the name of the function as it should be used in the spreadsheet, the path to the file that contains the definition for the function, and the internal name of the function.

The “always_recalc” flag controls whether the function should always be calculated (true), or only upon change in the value of arguments of the function (false).

See also Macro Engine.

image_pdfimage_print
Was this post helpful?
NoYes (0 rating, 2 votes)
Loading...