The PP.xml file is used to determine basic web application settings. This file may be located in two places:
In the web application: to set parameters of connection to BI server, and basic settings.
At the BI server: to determine basic web application settings.
NOTE. If the PP.xml file is located in the web application folder and at the BI server, BI server file settings have the higher priority than the same settings in the web application file.
To determine basic web application settings, use the PP.xml file located in the web application. The file path depends on the type of the web server in use:
ASP.NET (IIS). S\Config.
Java (Apache Tomcat). S\pp\config.
Apache. S\config.
Where S - path to the folder with installed web application.
For example, for Windows:
Java (Apache Tomcat): C:\Tomcat\webapps\pp\config\PP.xml
ASP.NET (IIS/Apache): C:\Program Files\Foresight\Prognoz Platform 9 Web Application\Config\PP.xml
For Linux:
Java (Apache Tomcat): /var/lib/tomcat7/webapps/pp/config
Apache: /opt/foresight/pp9.0-dhtml/config
TIP. If web application settings are determined at the BI server, enter only the path to the BI server in the PP.xml file of the web application.
To determine basic web application settings at BI server, create the PP.xml file in the S\Services\PP.SOM.Som\, where S - a path to the folder with installed BI server.
Settings specified in PP.xml can also be determined via fields of the PP.AppConfig static class. The PP.xml file must consist of the <pp> section that contains the following child elements given in the table.
| Section | Description | Attributes |
| <service> | BI server parameters. | url. BI server URL. By default, the server URL is written by the web application installer:http://<Server>[:<Port>][/<VirtualCatalog>]/axis2/services/PP.SOM.Som Where:
NOTE. Name of the virtual directory can contain x64 postfix on computers with x64 platform. If the url attribute is used in the <service> section, browser requests are executed directly, avoiding the web application back end. timeout. Time, after which the request is executed on the front end (in milliseconds). If the attribute value is not specified or the value is 0 or less than 0, the default value will be used (90000 ms). foreExec. It indicates whether Fore and Fore.NET macros can be executed using the ForeExec operation. Available values:
NOTE. If the foreExec parameter is set to True, the ForeExec operation is prohibited by means of a special parameter in the request title. This parameter is not a secure method of prohibiting operation execution. It is recommended to use the Disallow parameter in registry settings or the Settings.xml file. |
| <proxy> | BI server parameters | url. BI server URL. http://<Server>[:<Port>][/<VirtualCatalog>]/axis2/services/PP.SOM.Som Where:
If the url attribute is used in the <proxy> section, browser requests are executed via web application back end. |
| <metabase> | Parameters of the repository in use. | Id. Repository identifier from the list of installed repositories at the BI server, for which connection is established. ping. Time, after which the system checks BI server connection (milliseconds). recentObjects. Setting up view of last opened objects in the welcome screen. Available values:
|
| <shareSettings> | Parameters of publishing data from the web application in various web services. The section may contain one or several nested elements <shareItem>. |
enabled. Indicates whether data can be published from the web application. Available values:
|
| <shareItem> | Publishing data in various services is available. | name. Service name. enabled. Indicates whether data can be published from the web application. Available values:
|
| <cultures> | Available web application languages. The section may contain one or several embedded <culture> elements. Interface language is selected in the login dialog box. | Each <culture> subsection has the following attributes: cultureName. Abbreviated language name. Available values:
NOTE. Translation of the application into Azerbaijanian and Kazakh may be incomplete. |
| <chart> | Parameter that determines general chart settings. | animation. Determines whether animation is used on rendering a chart. Available values:
|
| <discussConfig> | Settings of the Share drop-down menu. | enableResize. Determines whether the drop-down menu can be resized. Available values:
facebookItem. Settings of the Facebook menu item. Available attributes:
googlePlusItem. Settings of the GooglePlus menu item. Identical to facebookItem settings (see above). items. Array of menu items. linkedInItem. Settings of the LinkedIn menu item. Identical to facebookItem settings (see above). liveJournalItem. Settings of the LiveJournal menu item. Identical to facebookItem settings (see above). twitterItem. Settings of the LiveJournal menu item. Identical to facebookItem settings (see above). |
| <modules> | Settings of web application units. It may include a subsection with settings of the Dashboard tool - <dashboard>. | The <dashboard> subsection has the following attributes: reportBox. Description of tool settings. Available attributes:
|
| <oAuthService> | OAuth service URL, via which authorization is executed (in case of Twitter authorization). | enabled. OAuth server authorization attribute:
|
| <plugins> | The section with definition of additional scripts connected as plugins. Contains one or several <plugin> subsections. | Each <plugin> subsection has the following attributes:
NOTE. The loaded and type attributes are used only for external map services plugins. Available plugins:
IMPORTANT. After plugins are connected, you get access to API of external map services. Make sure that you have permissions to use them. The FORESIGHT company does not give permissions to use external map services and is not responsible for violation of license policy by the user. If external map service requires using the API key, then add the <params> subsection to the <plugin> section corresponding to the required service.
|
| <samlUrl> | SAML 2.0 protocol identification provider URL. | |
| <sourceTypes> | Types of data sources available in the web application. | items. Array of data sources that can be used in the web application. |
| <tabSheet> | Table settings in the web application. | enableNativeContextMenu. Determines whether browser context menu is available for table. Available values:
|
NOTE. Restart BI server and web server used by the web application for changes to take effect.
The example of the PP.xml file that is located in the web application folder:
<?xml version="1.0" encoding="utf-8" ?>
<pp>
<service url="http://localhost/PPBI_App_v9.0/axis2/services/PP.SOM.Som" timeout="120000" foreExec="true"/>
<metabase id="PPRepository" ping="120000" recentObjects="false" />
<shareSettings enabled="true">
<shareItem name="GooglePlus" enabled="false" />
</shareSettings>
<cultures>
<culture cultureName="ru" />
<culture cultureName="en" />
</cultures>
<publishMobile enabled="true" url="http://mobileserver.example.com/ppmobile_app_v9" />
<chart animation="true"/>
<modules>
<dashboard>
<reportBox servicesPlugins="true"/>
</dashboard>
<timeSeries enabled="true"/>
</modules>
<plugins>
<plugin name="ExternalMapPlugin" path="../build/ExternalMapPlugin.js" loaded="true"/>
<plugin name="YandexMapPlugin" path="../build/YandexMapPlugin.js" type="PP.Yandex"/>
<plugin name="ArcGisMapPlugin" path="../build/ArcGisMapPlugin.js" type="PP.ArcGis"/>
<plugin name="GoogleMapPlugin" path="../build/GoogleMapPlugin.js" type="PP.Google"/>
<params>
<param name="APIKey" value="AIzaSyCT36DH2CuXQ8GHtNSZASvoxQtbidhuWCU"/>
</params>
</plugins>
</pp>
See also:
Installing and Setting Up BI Server | Opening Web Application