ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Link control
  • Overview
  • Available types
  • Note: Internet browsers allow only one action on the page per treatment.
  • Choosing a type of link
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Choosing the type of link
Overview
WEBDEV proposes several types of links according to the action of the link on the page controls.
Available types
The type of link is linked to the type of operation performed on the controls. The choice of the operation is performed in the description window of the link ("General" tab).
The available types of operations are as follows:
  • Send values to the server (submit):
    The link validates all the controls found in the current page and returns the value of the controls to the server. Then, the server performs the specified action.
  • Delete content of the controls in the browser (reset):
    The link clears all the page controls (except for the controls reset programmatically).
  • Don't send anything to the server:
    The link performs the requested action but it does not return the content of the controls found in the current page to the server.

Note: Internet browsers allow only one action on the page per treatment.

Some types of links automatically trigger an action on the page (for example, "Send values to the server (submit)").
If the PageSubmit or EmailOpenMail functions are used in the "Browser click" event of these links (or in a procedure called by this event), this function will be ignored: only the link action will be performed.
Consequences: Functions PageSubmit or EmailOpenMail cannot be used in a code that (automatically or not) causes an action.. These functions are ignored:
  • in the click code of a link that performs the "Send to server" operation
  • in the click code of a link that performs the "other" operation whose action differs from "None"
  • if PageSubmit is followed by EmailOpenMail (in the current process, in a procedure called by the current process or in another process called by Execute).
  • if EmailOpenMail is followed by PageSubmit (in the current process, in a procedure called by the current process or in another process called by Execute).
To use PageSubmit or EmailOpenMail from a link ("Click" browser event of the button), the link must have the following characteristics ("General" tab of the description window):
  • Operation on fields: "None"
  • Action: "None"
Choosing a type of link
Let's see some "standard" examples for using links in a page:
Action to performExampleOperation on the controls
Send data of the current page to the server to be processed.Registration form.
The link is used to check the validity of the information entered and it displays a confirmation page.
Send value of controls to server (submit)
Perform a process on the server, without retrieving the data of the current page.Menu page with buttons.
Each link is used to display a page of the site.
None
Perform a process in browser codePerform a simple calculation, an input check, ...None
Display a static page of the siteDisplay the home page of the site.None
Display a page external to the siteStart a search engine.None
Reset the page controlsClear the controls of the current page.Reset page controls
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help