PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Transforming a page in Session mode into an Active WEBDEV Page
  • Programming tips
  • Pro tip
  • Limitations regarding the content and the programming of Active WEBDEV Pages
  • Displaying an AWP page
  • Installing the Active WEBDEV Pages on a server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Transforming a page in Session mode into an Active WEBDEV Page
To transform a page in Session mode into an Active WEBDEV Page:
  1. Open the description of the current page ("Description" in the page popup menu).
  2. In the "General" tab, in "Type of page", select "AWP".
  3. Validate.
Where will the Active WEBDEV Page be saved?
Once a dynamic page has been transformed into an Active WEBDEV Page, the page will be generated in AWP format in the <Project Name>_WEB directory of the project (in each subdirectory corresponding to the languages supported by the project).
Programming tips
  • The server code must be found in the initialization events (initialization of page or controls).
  • The contexts must be managed through programming. The page must be positioned in the database (according to the parameters received in the URL for example). For more details, see Displaying an Active WEBDEV Page from another page.
Pro tip
  • Refreshing an Active WEBDEV Page: Refreshing an Active WEBDEV Page triggers all WLanguage events in the page. For example, if the Active WEBDEV Page allowed for an addition, refreshing the page will make that addition again.
  • WLanguage events: The order of execution of WLanguage events when clicking on a Button control, for example, is as follows:
    • "Initializing" event of the project,
    • "Global declarations" event of the page,
    • "Initializing" event of the controls in the page,
    • "Initializing" event of the page,
    • "Click" event of the clicked Button control
      Whenever an action is performed in the Active WEBDEV Page, the corresponding HTML page is entirely rebuilt on the server.
  • Links: The links can be built by programming (URL used on Link controls).
  • Links and buttons: You should prefer the links and buttons without "submit". A "<a href>" link is generated in the page.
Limitations regarding the content and the programming of Active WEBDEV Pages
  • First page of a project: An Active WEBDEV Page cannot be the first page of the project in Session mode. An AWP page can be the home page of a project.
  • WLanguage trace functions: Only the output into a file is available (trFile constant).
  • Dialog boxes: The dialog boxes displayed by Confirm, Error and Info are ignored if a page is displayed in the same process by PageDisplay.
  • Global elements used in the project: When modifying an element global to the project (global procedure, query, class, ...), the project must be recompiled in order to take these modifications into account in the relevant stand-alone AWP pages.
  • Pagers: The pagers generated by RAD cannot be used in the Active WEBDEV Pages. Indeed, these controls use the project context (that does not exist in the Active WEBDEV Pages). These controls must be replaced with a programmed pager. Each link of the pager must display a page with specific data (page based on a query with parameters for instance).
    All the records can also be displayed in a cell with scrollbar.
    Versions 16 and later
    The pager in AWP mode automatically manages the method for passing parameters, without programming. This type of pager allows you to reference all the linked pages and it avoids having to use cookies to store the current search.
    New in version 16
    The pager in AWP mode automatically manages the method for passing parameters, without programming. This type of pager allows you to reference all the linked pages and it avoids having to use cookies to store the current search.
    The pager in AWP mode automatically manages the method for passing parameters, without programming. This type of pager allows you to reference all the linked pages and it avoids having to use cookies to store the current search.
  • Table control: The Table controls are limited (the browsing tables with Link columns do not operate anymore for example). They can be replaced by a looper (whose links are dynamically created by Url).
  • Image control: No generated image can be used in the AWP pages.
  • Element in memory (list box, combo box, looper): The content of these elements is volatile. The content of these elements should be systematically filled in the initialization code of the page.
  • The value of the read-only controls is lost and it must be recalculated whenever the page is displayed.
  • Size of Active WEBDEV Pages: With large projects (containing several classes, global procedures or queries), the size of the generated AWP pages will be quite important.
  • Global server variables: The global server variables of the project regain their default value whenever the page is accessed in case of stand-alone Active WEBDEV Pages. However, you can use DeclareAWPContext or hidden controls associated with the desired value.
  • WINDEV or WEBDEV components: The components handled by an Active WEBDEV Page are not found. They must be moved to the <ProjectName>_WEB directory.
  • Location of data files: The location of data files must be performed in the initialization code of project, via the following line of code for example:
    HSubstDir("?", fDataDir())
  • Relative URL: The relative URLs created through programming in the home page of project must not be used.
Displaying an AWP page
An Active WEBDEV Page can be displayed from a static page or from a dynamic page of a WEBDEV site.
An Active WEBDEV Page can be displayed:
  • from the WEBDEV interface: all you have to do is select the AWP page to display when describing the link.
  • through programming.
Installing the Active WEBDEV Pages on a server
To install Active WEBDEV Pages on a server, you can:
  • use the standard setup of a site in Session mode. The AWP files are classified in the "Static HTML files" category.
  • use WDDeploy or any other FTP client to install the file directly on the desired site.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment