MyComponents works like that:
User sees a full screen divided on 2 parts, the data Grid on top, and the Form fields on the bottom.
The Grid uses the objGrid1.php class, where it can choose to select the record that should be edited in the form.
On the Form, every time that there is a need of selecting a list of values, either from fixed values or from a table, the objLista.php class can be called.
All the database access ar made by the objDB.php class.
The sample table is Cliente(id, nome).
|