Section 1: Introducing the Object Model
This is the basic Tap Forms object model 1:
The document object represents your Tap Forms database. It contains form objects. Each form object contains record objects. Each record object contains field objects with associated values.
Here's a picture of what that looks like.
Tap Forms | MS Access | MS Excel |
document | CurrentDb | Workbook |
form | TableDef and form | Worksheet |
record | row of Recordset | row of Range.Cells |
field | Field | Cell |
This is the database this tutorial is using:
It has 2 simple forms for a pet rescue service. A list of animals and a table for reports. A third form is added later.
In the object model, it looks like this:
1 Sam Moffatt points out, "JavaScript is also generally referred to as a prototype based language and as such doesn’t have classes, just objects that you can extend upon (in a sense they’re all just dictionaries with some self referential sugar). It’s a slightly different approach than class based object orientated programming hierarchies." Back to paragraph.