To create a web application frame by means of DHTML components:
Create a web application (.NET Framework 4.5.2).
Add a link to the PP.dll library at <Path to installed Foresight Analytics Platform 9.2 Web Application>/Bin.
Create the Config folder. Add the PP.xmlPP.xml file to it that contains web application settings, that is, the path to BI server and identifier of the repository, to which connection is established:
<?xml version="1.0" encoding="utf-8" ?>
<pp>
<service url="http://localhost:9090/axis2/services/PP9.SOM.Som" />
<metabase id="PPRepository" ping="120000" />
</pp>
Add to the project CSS styles of components at <Path to installed Foresight Analytics Platform 9.2 Web Application>/Build.
Add a folder with images. Images are located at <Path to installed Foresight Analytics Platform 9.2 Web Application>/Build/img.
NOTE. Further specify the path to the folder in the ImagePath property for the placed component (see example on the Example of the ReportBox Component Layout page).
Add to the project JS files at <Path to installed Foresight Analytics Platform 9.2 Web Application>/Build and resources at <Path to installed Foresight Analytics Platform 9.2 Web Application>/Resources.
IMPORTANT. The use of JavaScript code in Foresight. Analytics Platform in published applications is allowed only in the compiled or obfuscated form. Use of JavaScript code without obfuscation may lead to opening of software source codes that contain production secrets and are a protected intellectual property of the company.
Replace the Web.config file located in the root folder of the created application with the Web.config file located in the folder with the installed Foresight Analytics Platform 9.2 Web Application, or specify the following settings in the Web.config file:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <globalization culture="auto" uiCulture="auto" responseEncoding="utf-8" responseHeaderEncoding="utf-8" /> <httpHandlers> <add verb="GET,POST" path="PPService.axd" type="PP.ServiceHandler, PP" /> </httpHandlers> <httpModules> <add name="PPModule" type="PP.PPModule, PP" /> </httpModules> <compilation debug="true" /> <httpRuntime maxRequestLength="102400"/> </system.web> <system.webServer> <directoryBrowse enabled="true"/> <handlers> <add preCondition="integratedMode" name="ppService" verb="GET,POST" path="PPService.axd" type="PP.ServiceHandler, PP" /> </handlers> <modules> <add name="PPModule" type="PP.PPModule, PP"/> </modules> <validation validateIntegratedModeConfiguration="false"/> <httpErrors errorMode="Detailed" /> <staticContent> <mimeMap fileExtension=".trsp" mimeType="application/x-trsp" /> </staticContent> </system.webServer> <system.net> <connectionManagement> <add address="*" maxconnection="100"/> </connectionManagement> </system.net> </configuration>
See also: