This page in Русском
The previous page: Report metadata settings (data mine, navigation)
A typical setting of the report module in the application configuration file includes the following sections::
- Automatic assembly of data mine
jobs
- Namespace of the project
namespaces
- Display navigation by default
defaultNav
- Builder setting for the data source
mineBuilders
- Setting of jobs in work
di
- Defining static templates
statics
- Logo on the report page
logo
- Path to the metadata reports
import
The structure of the sections is as follows:
"globals": {
"jobs": {}
},
"modules": {
"report": {
"globals": {
"namespaces": {...},
"defaultNav": {...},
"mineBuilders": {...},
"di": {...},
"statics": {...},
"logo": "..."
},
"import": {...}
}
}
Add the jobs.enabled=true
setting in the config.ini file for automatic assembly of data mine. You can set the interval for automatic assembly of data mine in the deploy.json file of the app. For example, if you want to start the job every six hours after the first run of the app, you need to set the "jobs"
parameter in the deploy.json file as follows:
"jobs": {
"report-builder": {
"description": "Data mine build service of the Report module",
"launch": {
"hour": 21600000
}
}
Set the namespace of the application:
"namespaces": {
"namespaceApp": "Project"
}
If you want to display the navigation by default when opening the report module page, you need to set the parameters as follows:
"defaultNav": {
"namespace": "namespaceApp", // project namespace
"mine": "reportName", // report name
"report": "reportTest" // name of the report table, based on data from the source
}
This setting is used to connect builder and data source to aggregate from different sources. Use the standart mineBuilder
.
"mineBuilders": {
"namespaceApp": {
"reportName": {
"dataTest": "mineBuilder"
}
}
}
"di": {},
Here, you can set the static template as a variable, which defines the path to the folder containing the data for the module. A static template is used in the settings of other sections of the module.
"statics": {
"geoicons": "applications/namespaceApp/templates/icons"
}
The logo will be displayed in the upper left corner on the report module page. The path to the logo consists of a static template variable, defined in the "statics"
section and icon name for the logo.
"logo": "geoicons/logo.png"
Here you can define the path (relative to platform) to the configuration file with the report metadata. Additionally, you must specify the application namespace.
"import": {
"src": "applications/namespaceApp/bi",
"namespace": "namespaceApp"
}