The DBA.config.json file stores the settings that affect business application web version performance. The file has the following structure by default:
{
"targetRepo": "ID_REPO",
"targetApp": "ID_APP",
"ppServiceUrl": "",
"locale": ["ru"],
"repositories": {
"ID_REPO": {
"repoIdent": "ID_REPO",
"apps": {
"ID_APP": {
"appIdent": "ID_APP",
"breadcrumbRootTitle": "FORESIGHT. Business application",
"mainMenuLogo": "assets/design/img/PPlogo_sm.png",
"pageMetadataLogo": "assets/design/img/PPlogo.png"
}
}
}
}
}
Below is the list of fields contained in the default JSON structure:
Field | Description |
targetRepo | The identifier of the repository, to which default connection is established. As a value, specify identifier of one of the repositories, which settings are contained in the "repositories" group. |
targetApp | The identifier of the business application that will be opened. As a value, specify identifier of one of the business applications, which settings are contained in the "apps" group of the repository specified in targetRepo. |
ppServiceUrl | URL of the BI server, with which a business application will interact to get data. |
locale |
The array containing two-letter language codes to which the interface can be switched. By default only one element corresponding to Russian is included into array. If any other additional languages are added to the array, then the start page used to log in to repository will contain hyperlinks to switch the interface language. |
repositories | The data of the repository, to which connection is established. Several subsections ID_REPO can be created in this section. |
ID_REPO | The section with repository information. Field name must match the value specified in the repoIdent field. |
repoIdent | Repository identifier. Field value must match the name of the ID_REPO section. |
apps | Business application data. Several subsections ID_APP can be created in this section. |
ID_APP | The section with business application information. Field name must match the value specified in the appIdent field. |
appIdent | The identifier of business application in repository. Field value must match the name of the ID_APP section. |
breadcrumbRootTitle | The title that is displayed in the breadcrumb's root element. |
mainMenuLogo | The path to the image displayed at the top left corner above the list of objects. |
pageMetadataLogo | The path to the image displayed above the login and password boxes. |
It is also available to include additional fields into the root level of JSON structure that will be processed and will affect web application work. These fields have default values that are applied if the field is absent in the structure:
{
...
"ppLibUrl": "assets/platform_modules",
"externalJs": [],
"externalCss": [],
"isSendLogToBI": "false",
"showNavGroupFirstElement": "false",
"clearMetabaseObjectsCacheOnOpen": "true",
"logToConsole": "true",
"showMessageForUnhandledError": "true",
"authentication": "IntegratedDomain",
...
}
Description of fields:
Field | Description |
ppLibUrl | Path to libraries of Foresight Analytics Platform used in business application work. By default, the relative path "assets/platform_modules" is used that is searched in the folder with installed extensions back end. |
externalJs | The array of URLs to external JS files that must be loaded before business application startup. No external JS files are loaded by default. |
externalCss | The array of URLs to external CSS files that will be loaded before business application startup. No external CSS files are loaded by default. |
isSendLogToBI | It indicates whether operations that are sent by business application to BI server are logged. Logging is enabled by default. If the value is true, executed operations are logged at BI server. |
showNavGroupFirstElement | It indicates whether the first child element is displayed when navigating menu groups. Available values:
|
clearMetabaseObjectsCacheOnOpen | It indicates whether object cache is cleared on opening. Available values:
|
logToConsole | It indicates whether errors are displayed in the browser console. Available values:
|
showMessageForUnhandledError | It indicates whether error messages are displayed, for which there are not special handlers in business application scripts. Available values:
|
authentication | The attribute excluding the displaying of the User Name and Password fields in the login dialog box in case of domain authentication of users on database server. Additionally, it is necessary to add a domain user in repository security manager, the Integrated Domain authentication type must be selected in repository connection settings and domain authentication settings must be executed on the ASP.NET web server. Available values:
|
See also: