|
|
|
|
|
- Overview
- Principle
- The Table window
- The Form window
MVP: Simple single-file example: Table + Linked file
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. 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:
|
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.
|
|
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|