Macros are pieces of code specified by developers that run on the server.
The macro language is set to C #. All methods of the object accessed via the API can be used.
Macros are defined as [= ...].
Map CSS and some special fields do not use square brackets. Information can be found in the relevant documents.
When it is necessary to use square brackets, it should be written as \] instead of ].
The macro expression contains two objects named context (c) and Data (d).
The type of macro varies depending on where it is used. If the macro is used, the data type of the data object must be known. The types are written in the developer documentation and Readme.txt files. In GEODI reports, the Data object is GeodiEntry.
<label> File name : </label> [=d.OutputGeodiContent.DisplayName]
Content is available wherever a macro is used. It is an EvaluatorContext object. It includes helper methods and information about map such as details about geometry that is being drawn and scale level.
[=c.ToString(DateTime.Now,"en-US","dd MMM yyyy")]
You are the system manager.
The context contains a limited number of helper methods. More helper methods can be accessed using the context ["HelperName"] method. A list of all helper classes is available here.
<a href='[=c["geodi.link"\].ViewerLink(d)]'> [=d.OutputGeodiContent.DisplayName] </a>