PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Configuring the data files used when generating the pages
  • Generating the static pages from your database
  • Running the test of a page generated by WDGenPage
  • Stopping the test of a semi-dynamic page
  • Processes run
  • Processes run when generating the pages
  • Processes run during the test of a generated page
  • Notes
  • Managing passwords (analysis or data file)
  • Languages associated with the generated pages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
WDGenPage: Features
Overview
The different operations that can be performed by WDGenPage are as follows:
  • Generating static pages from the semi-dynamic pages of your site and from your data files.
    Note: Before generating the pages, you must configure the path of the data files used.
  • Running the test of generated static pages.
How to proceed?

Configuring the data files used when generating the pages

To configure the data files used when generating the pages:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. In the "Files" tab, select the location of test files:
    • Current directory: The data files will be found in the EXE sub-directory of the project.
    • Specific directory: The data files will be found in the specified directory.
Note: If the analysis or the data files associated with the semi-dynamic pages are password protected, the necessary passwords must be specified by programming.

Generating the static pages from your database

To generate the static pages from your database:
  1. Start WDGenPage ("Tools .. WDGenPage"). The main window of WDGenPage is displayed.Start WDGenPage: on the "Tools" pane, in the "Web utilities" group, click "WDGenPage". The main window of WDGenPage is displayed.
  2. Select the semi-dynamic pages that will be generated.
  3. Click the "Generate" button. The pages are automatically generated.

Running the test of a page generated by WDGenPage

A window is displayed at the end of generation, allowing you to run the test of the generated pages. To run the test of a page generated by WDGenPage:
  1. Select the page whose test must be run.
  2. Click "Test".
    WEBDEV (if it is started) is automatically minimized. The first static page corresponding to the semi-dynamic page is displayed in a browser.
During the test, all the page features can be run. You will have the ability to open other pages for example.
Note: You can also run the test of the pages generated by WDGenPage from the editor.

Stopping the test of a semi-dynamic page

Several methods can be used to stop the test:
  • 1st method: Close the site whose test is currently run. WEBDEV (if it is started) displays the editor that was used at the beginning of the test.
    If the test was run from WDGenPage, you must exit from this tool.
  • 2nd method: Go back to the editor with the taskbar (or press [Alt] + [Tab]) and confirm the ending of the test. WEBDEV displays the editor that was used at the beginning of test.
Processes run

Processes run when generating the pages

When generating the semi-dynamic pages, the following processes are run:
  • Declaring the global variables of the page.
  • Initializing the page
These processes are generation codes and they are used to enter the information required by the generation.
Some examples:
  • If the base file of the page (or the analysis) is password protected, the password can be specified in one of the generation processes.
  • If the base file of the page is a query with parameters, the parameters expected by the query can be specified in one of the generation processes.
  • You also have the ability to call a class in these generation processes.
  • If the page control (table or looper) is based on a query with parameters, the parameters expected by the query can be specified in one of these generation processes.

Processes run during the test of a generated page

During the test of a semi-dynamic page, the following processes are run:
  • Loading the first page (Browser code).
  • Entering the first control of the first page if this control has an entry process (Browser code).
Notes

Managing passwords (analysis or data file)

No password is requested during the test of the dynamic page, no matter whether the page is associated with an analysis protected at run time or with a password-protected data file.
The necessary passwords must be specified by programming in the initialization code of the project (if it exists) or in the "Declaration process of global variables" of the semi-dynamic page.
If the page handles a data file found in a password-protected analysis, this password must be specified in HOpenAnalysis.
If the page handles one or more password-protected data files, this password must be specified in HPass.
If the passwords are not specified, an error occurs when generating the page.

Languages associated with the generated pages

For the multilingual sites, you have the ability to select the languages in which the semi-dynamic pages will be generated ( ).
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment