In the Getting Started guide, I've shown you how to use VFP's data language to create cursors and then display that data. This works well, but it's not really great application design and most applications do or should use business object for the data access.
In this guide, we'll take a more disciplined approach and I'll demonstrate how to use business objects using the wwBusinessObject class to manage your business logic and using a Model, View, Controller (MVC) based HTML rendering approach that separates your code from your HTML markup by using Scripts and Templates.
Online Sample Code
You can find the sample code for the completed projects at the following GIT BitBucket repository:
Web Connection Step By Step Samples on BitBucket
You can clone the repository, or use Download Button to grab a Zip file of the completed project folder.
- Step 1 - Setting up a business object
- Step 2 - Create a new Process class
- Step 3 - Querying customers with the business object
- Step 4 - Model View Controller (MVC) - separating code from HTML
- Step 5 - Selecting and displaying a single customer
- Step 6 - Adding, editing and deleting customers from the customer list
- Step 7 - Displaying a Customer edit form
- Step 8 - Saving customer data and error handling
- Step 9 - Adding a new customer
- Step 10 - Adding security
© West Wind Technologies, 1996-2024 • Updated: 03/11/20
Comment or report problem with topic