PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WEBDEV 28 feature!
  • In this lesson you will learn the following concepts
  • Overview of the site created in this part
  • Displaying a WEBDEV site in AWP mode
  • What is an Active WEBDEV Page?
  • Operating mode of AWP sites
  • How to share information (values) between Active WEBDEV pages?
Lesson 4.1. Internet site with data - Overview
In this lesson you will learn the following concepts
  • Overview of the site created in this part.
  • Displaying a site in AWP mode:
    • What is an Active WEBDEV Page?
    • Operating mode of AWP sites.
    • Sharing information between Active WEBDEV Pages.
Lesson duration

Estimated time: 5 mn
Previous LessonTable of contentsNext Lesson
Overview of the site created in this part
In this part, we will use the project we created in part 3: we will create an Internet section in the Intranet site. The Internet section will be used to list the new products and see their details.
This section will be created in AWP mode (Active WEBDEV Page).

Note

SEO
In a WEBDEV site in AWP mode, all the pages of the site can be optimized.


Part 5 will allow you to continue the site development, by exploring the following features:
  • Printing reports,
  • Managing use levels,
  • Sending emails,
  • Managing multiple languages,
  • ...
The development of this site will also allow us to cover the deployment phase in part 6.
If you followed part 3, you can use the same example in part 4.

Caution!

If you did not follow part 3, you will not be able to perform the exercises to link the Internet and Intranet section of the site ("Linking the Internet and Intranet sites").
Displaying a WEBDEV site in AWP mode
The Internet section of our site will be developed in AWP mode. Unlike sites in session mode, the AWP mode allows for easy SEO.
Let's analyze how the AWP mode works.

What is an Active WEBDEV Page?

An Active WEBDEV Page is a page in WEBDEV session mode without persistent context on the server. The Active WEBDEV Page context is temporary. It is created in a temporary session.
Reminder: In a WEBDEV site in Session mode, each displayed page owns a persistent page context for the entire lifetime of the session on the server.

Operating mode of AWP sites

For each Active WEBDEV Page displayed in the browser, the following elements are automatically created on the server:
  • a temporary session,
  • a temporary Active WEBDEV Page context.
The temporary session contains the temporary context of the Active WEBDEV Page. When the Active WEBDEV Page is sent to the user, the temporary page context and the temporary session are deleted. Memory is cleared on the server-side.
The temporary context of the Active WEBDEV Page contains all the elements required to build the page viewed by the user:
  • local variables,
  • server processes,
  • database connections,
  • file contexts, etc.
When the Active WEBDEV Page is sent to the user, these elements are removed.
Displaying a WEBDEV site in AWP mode

How to share information (values) between Active WEBDEV pages?

There are two methods to share values between Active WEBDEV Pages:
  • Passing information in the URL. This method allows for better SEO.
  • Saving information in AWP contexts (programmatically).
Passing information (values) between two pages in the URL
It is possible to pass information from one page to another via the URL. The URL has the following format: "http://Web server/.../mypage.awp?NameParam1=Value1&NameParam2=Value2".
This method allows a better page SEO because the information passed in the URL is visible and analyzed by the SEO robots.
Saving information (values) in AWP contexts (programmatically)
You can store values common to several Active WEBDEV Pages on the server, via AWP contexts. An AWP context is created on disk on the server. This context is available as long as Active WEBDEV Pages are displayed and as long as the timeout of the AWP contexts is not exceeded. The timeout of AWP contexts can be defined in the WEBDEV administrator ("Configuration" tab, "Duration of AWP contexts" option).
To manage AWP contexts, you must use WLanguage functions such as DeclareAWPContext, FreeAWPContext, etc.
For more details, see AWP: Managing contexts.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 28
Comments
Click [Add] to post a comment