PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
  • Events run
  • Events run when generating the pages
  • Events 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
Warning
From version 24, the creation of semi-dynamic pages is no longer available.
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 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 page features can be run. You will have the ability to open other pages for example.
Note: You can also run the test of 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 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 end of test. WEBDEV displays the editor that was used at the beginning of test.
Events run

Events run when generating the pages

The following events are run when generating semi-dynamic pages:
  • "Global Declarations" of the page.
  • "Initializing" the page.
These are generation events and make it possible to enter the information needed for the generation.
Some examples:
  • If the base file of the page (or analysis) is password-protected, the password can be specified in one of the generation events.
  • 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 events.
  • You can also use a class in these generation events.
  • If the control (Table or Looper) is based on a query with parameters, you can specify the parameters expected by the query in one of the generation events.

Events run during the test of a generated page

The following events are run when starting the test of a semi-dynamic page:
  • 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 event "Global declarations" 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 multilingual sites, you can select the languages in which the semi-dynamic pages will be generated ( ).
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment