ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / MVP (Model, View, Presenter)
  • 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 uses 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 uses 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 version required
  • Version 20
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help