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.
Select File>New from the menu bar, then click the Project tab of the New dialog box.
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.
Make sure the pbtutor.pbl file is selected in the Application libraries list and click Next.
The Specify Project Object page displays.
Click Next.
You accept the default project object name: p_pbtutor_webdw.
Select the EAS Demo DB V105 from the Database Profiles list if it is not already selected.
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) |
Click Finish.
The p_pbtutor_webdw project displays in the Project painter.
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.
Select File>Close from the menu bar to close the project. Select Yes if PowerBuilder prompts you to save the project file.