Creating a Web Application

To create a web application frame by means of DHTML components:

  1. Create a web application (.NET Framework 4.5.2).

  2. Add a link to the PP.dll library at <Path to the installed Prognoz Platform 9 Web Application>/Bin.

  3. 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>

  1. Add CSS styles of components to the project, styles are located at <Path to the installed Prognoz Platform 8 Web Application>/Build.

  2. Add a folder with images. Images are located at <Path to the installed Prognoz Platform 9 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).

  1. Add JS files to the project, files are located at <Path to the installed Prognoz Platform 9 Web Application>/Build and resources located at <Path to the installed Prognoz Platform 9 Web Application>/Resources.

IMPORTANT. Use of JavaScript code in Prognoz Platform 9 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.

  1. 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 Prognoz Platform 9 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:

DHTML Components | DHTML Components Layout | Class Library