ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Project editor
  • Overview
  • How to?
  • Defining a preset action
  • Note
  • Information displayed in the code editor
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
Programming by preset action
Overview
Preset actions allow you to define the code of an event in a single click, without having to write one single line of code.
For example, in WINDEV:
Execute the click code of the Button control and open the window
Execute the click code of the Button control and open the window

Component initialization, the parameters are specified in the interface
Initialization of a component, the parameters are specified in the interface


The preset actions are proposed:
  • on Button controls (in the event "Click").
  • WEBDEV - Server code on Link controls (in the event "Click (server)").
How to?

Defining a preset action

To define a preset action:
  1. Open the control description window (select "Description" in the context menu).
  2. In the "General" tab, define the desired action:
    1. WEBDEV - Server codePHP Select the desired action in the "Type" combo box ("Button action" area).
      The most common actions appear in this list. To select a more specific action, click "More options".
The actions proposed depend on the elements found in the current project (windows, pages, component, procedure, ...).
Note

Information displayed in the code editor

When a preset action is used, an information indicating this preset action is specified in the code editor.
For example:
Preset action in the code
Clicking the preset action that appears in the code editor opens:
  • WEBDEV - Server codePHP the control description window.
Therefore, the preset action can be modified from the code editor directly.
Caution: Any WLanguage code entered in the code editor after the call to the preset action will not be run.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help