PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Principle
  • The Table window
  • The Form window
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
Let's see a simple and illustrated example about the use of MVP to create a Table window with its linked form. This example is using a single file.
Principle
Unlike the classic programming mode, the Table control is linked to a variable instead of a data file.
Similarly, the form controls are not linked to items but to variables.
It is using the "Binding" concept.

The Table window

In this example, the "Table" window allows you to view a list of contacts.
The possible actions are:
  • Create a contact.
  • Delete a contact.

The Form window

In this example, the "Form" window is used to create and modify a contact.
The possible actions are:
  • Validate the input.
  • Cancel the input.
Related Examples:
WD Discovering MVP - Part 1 Training (WINDEV): WD Discovering MVP - Part 1
[ + ] This educational example explains how to implement an MVP architecture (Model View Presenter) in a project. This example is simplified in order easily understand the concepts of this architecture.
WD Discovering MVP - Part 2 Training (WINDEV): WD Discovering MVP - Part 2
[ + ] This training example explains how to implement an MVP architecture (Model View Presenter) in a project for a simple analysis (Customer - Order - Order line - Product).

Several types of views (as well as their presentation) are proposed:
- table (with addition, modification, deletion and print),
- form,
- search (with filter).
Minimum required version
  • Version 20
Comments
Click [Add] to post a comment