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 / RAD / RAD pattern
  • The steps for creating a RAD pattern
  • Create the different pattern windows
  • The files to create
  • Standard to follow
  • The link buttons
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creating the link buttons in the windows of a WINDEV RAD pattern
The steps for creating a RAD pattern
The steps for creating a WINDEV RAD pattern are as follows:
  1. Creating the "RAD Pattern" project.
  2. Creating the different pattern windows.
  3. Generating the RAD pattern.
  4. Using the RAD pattern.
Create the different pattern windows

The files to create

Reminder: The following files are required to implement a RAD pattern used to create a full project:
  • A form for RADFileA.
  • A form for RADFileB. A combo box and a Vision Plus button (or a popup combo box) must allow you to select an element of RADFileA.
  • A form for RADFileC. A combo box and a Vision Plus button (or a popup combo box) must allow you to select an element of RADFileB.
  • A table for RADFileA.
  • A table for RADFileB.
  • A table for RADFileC.
  • A relation window RADFileB/RADFileD.
These different elements must contain link buttons. You also have the ability to provide the main menu of the application.

Standard to follow

This help page presents the different rules that must be applied when creating the pages and windows of the RAD pattern. These rules have been used to create the different patterns provided with WINDEV 16.
These rules are recommendations. You can implement and use your own standard.
The link buttons
The Form or Table windows can include link buttons. These link buttons are used to display a table, a form or a table + form on linked files for example.
A simple example: viewing the orders of a customer from the customer form.
A link button must be named:
  • BTN_TableLink_RADFileX for a link to a table window
  • BTN_FormLink_RADFileX for a link to a form window
  • BTN_RelationLink_RADFileX for a link to a relation window.
Note BTN_ is the programming guidelines prefix: it is not required if you are not using programming guidelines.
Any caption can be used. However, we recommend that you use a simple caption ("RADFileB table" or "RADFileA form" for example).
Code Here's an example of code that can be used in a link button to open a table in the file RADFileB from the file on RADFileA:
// Implement the filter on the link key 
HFilter(RADFileB,RADFileAIDRel, RADFileA.RADFileAID)
// Open the table window of RADFileB
Open(WIN_Table_RADFileB)
// Disable filter 
HDeactivateFilter(RADFileB)
Position of the link buttons and additional link buttons
The link buttons can be positioned anywhere in the window. When generating the window, the link buttons will be created at the specified location. Depending on the size of the analysis used by RAD, more than 3 link buttons can be found in a window. Therefore, we recommend that you plan for additional link buttons.
These addition buttons are used to position the link buttons. Indeed, the link buttons can be aligned horizontally, vertically or even in circle.
Additional link buttons must have a specific name: BTN_LIA_n (BTN_ is the programming chart prefix: not necessary if you are not using a programming chart), where n is the button number (e.g. BTN_LIA_1). These buttons must contain no code and they must be associated with no preset action.
Remark: If, at the time of RAD generation, the number of link buttons exceeds the number specified in the pattern, the additional buttons generated will be superimposed on the position of the last link button positioned in the pattern.
Minimum version required
  • Version 12
Comments
Click [Add] to post a comment

Last update: 02/19/2025

Send a report | Local help