Build a Web DataWindow container

Note

A Web DataWindow container gathers all the supporting files and properties that your page needs into a single area installed on the server.

The Web DataWindow Container wizard creates a custom EAServer component that implements the HTMLGenerator105 interface and packages all the DataWindow objects together with database connection information.

In this lesson you build a Web DataWindow container using the Web DataWindow Container wizard, and you deploy the component directly to the server for use by your Web application.

  1. Select File>New from the menu bar, then click the Project tab of the New dialog box.

  2. Select the Web DW Container Wizard icon (not the Web DataWindow Container icon) and click OK.

    Click Next on the first page of the wizard.

    Shown is a Choose E A Server Profile screen for selecting a profile containing the information necessary to connect to E A Server for the Web D W Component and to select the generation format for the Web Data Window. In the E A Server Profiles list, the selected profile has the name Local, the Host B S C H dot dot dot, the Port is 9000, and the User is jag admin. At bottom are Generation Format radio buttons for HTML, X HTML, and XML, which is selected.
  3. Make sure the pbtutor.pbl file is selected in the Application libraries list and click Next.

    The Specify Project Object page displays.

  4. Click Next.

    You accept the default project object name: p_pbtutor_webdw.

  5. Select the EAS Demo DB V105 from the Database Profiles list if it is not already selected.

  6. Click Next until the final wizard page displays, accepting the defaults as listed:

    Wizard Options

    Default Value

    Choose EAServer Profile

    local

    Specify EAServer Container and Package Name

    pbtutor_component

    pbtutor_package

    Specify Instance Pooling Options

    Supported

    Specify Other Component Options

    None

    Specify Dynamic Library Options

    Build consolidated dynamic library (selected)

    Include unreferenced objects in consolidated PBD (selected)

    pbtutor.pbd (name of consolidated PBD file)

  7. Click Finish.

    The p_pbtutor_webdw project displays in the Project painter.

  8. Select Design>Deploy Project from the menu bar.

    This builds and deploys the project as a package and component to the EAServer running on your local machine. The component deployed is a custom Web DataWindow Container using the DataWindow::HTMLGenerator105 interface.

  9. Select File>Close from the menu bar to close the project. Select Yes if PowerBuilder prompts you to save the project file.