PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Principe and operating mode
  • How to proceed?
  • Configuration
  • Notes
  • Running the test of a "Dynamic serving" site
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
Overview
"Dynamic serving" is a technique where the same address (URL) leads to 2 different pages: a page for PC and a page for mobile.
The proper page will be displayed according on the device (PC or mobile) that accesses the page.
This is an alternate solution (even complementary) to "Responsive Web Design" to make a standard site "mobile friendly". With "Dynamic serving", no need to modify the existing pages: all you have to do is add some for the mobile devices.
This technique benefits from an excellent referencing by Google.
Notes: "Dynamic serving" is available for the dynamic pages and for the AWP pages (not stand-alone).
Principe and operating mode
The site includes 2 sets of pages: the pages for computer and the pages for mobile device. These pages are associated 2 by 2.
When the address of a page is typed in the browser, the environment used is automatically detected and the corresponding page (computer or mobile device) is displayed in the browser. The address displayed in the browser does not change: only the content displayed is adapted to the system.
All the links and the pages opened in the code are automatically redirected to the corresponding page in the current platform.
Notes:
  • The detection of the environment is performed according to the Google recommendations: the tablets are not considered as being mobile devices.
  • The pages are identified by Google as being in "Dynamic serving" mode. Therefore, the differente page versions are referenced. If the mobile pages are developed properly, the site is considered as being "Mobile friendly".
  • Caution, Dynamic Serving is not available on a PHP server. However, for a mixed site that would mix dynamic and PHP, the AWP pages that reference PHP pages must use Dynamic Serving. In this case, the PHP pages are listed by Dynamic Serving.
How to proceed?

Configuration

To use "Dynamic serving" in a WEBDEV site:
  1. Create the pages specific to the mobile interface in your project.
  2. On the "Project" pane, in the "Web" group, expand "Referencing" and select "Dynamic Serving".
  3. The window that is displayed includes three sections:
    • 1. The list of common pages (displayed regardless of the platform).
    • 2. The list of pages for computer.
    • 3. The list of pages for mobile.
  4. To perform page associations:
    • In the "Common pages" list, select the page corresponding to the "Computer version" page.
    • Drag and Drop the page to the "Computer version" section or click .
    • The corresponding "Mobile version" section appears in red.
    • In the "Common pages" list, select the page corresponding to the "Mobile version" page.
    • Drag and Drop the page to the "Mobile version" section or click .
When all the associations are performed, validate the window.

Notes

  • The associations are saved in the pages. If your pages are found in the SCM, a check-out of mobile pages is requested.
  • The associated pages must have the same prototype. If the expected parameters are not the same, the pages are displayed on a red background in the window for managing the associations.
  • Stand-alone AWP pages cannot be associated.
  • The controls used from the outside of the page (syntax: <Page Name>.<Control Name>) must be found in the two pages of the association.
  • DynamicServingConfigure is used to create a "Mobile site" link or a "Site for computer" link that forces the display of the site for a given environment.

Running the test of a "Dynamic serving" site

By default, when running the test of a page or site, the "Computer" version of the site is automatically started.
To run the test of a project or page in "Mobile" mode, all you have to do is enable the test option in mobile:
  1. In the quick access buttons, expand the combo box found beside the requested "GO" icon (page test or project test):
  2. Select "Debug the mobile version (Dynamic Serving)".
  3. The next page or project tests will be run in mobile mode. To go back to "Computer" mode, all you have to do is select "Debug the mobile version (Dynamic Serving)" again in order to disable it.
Caution: This option is available in GO mode for page and site. It can be enabled/disabled for the page GO and/or for the site GO only.
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment