4D v13Video script |
||
|
4D v13
Video script
Video script
In this video, we'll create a working database in just a few clicks and also take a moment to familiarize ourselves with the 4D environment. Let's start with creating a table:
Automatically, this table is created and appears in the "Structure" window. This "structure window" represents the data model including all of the tables, fields and relations. The Inspector palette also appears. This palette shows the properties of each object that is selected, namely: the structure window, a table, fields or, later on, a relation. To add fields to this table, just double-click one of the rows in the table and then create the fields one by one. We're going to create 4 fields:
You can move a table in 4D by clicking its title or by dragging its lower right corner to widen it so that its fields appear. Once these 4 fields are created, we are going to give each one of them a type so that 4D can perform any validity checks needed. We're now going to add records to this table:
Since we haven't yet created a form, 4D offers to create automatic forms for the current table or for all the tables you created. Click Yes. 4D's default display is a list that shows the data as a spreadsheet where you can search, sort or print the selection. To add a record, click on the "Records" menu and choose "New Record". Just fill in each of the fields and then validate the record by clicking on the Accept button. Each time you validate a record, another blank record appears to be filled in until you click the "Cancel" button and end data entry. When we finish entering records and click Cancel, we go back to the list form. This list contains all the records that were created. You can then use this small palette to navigate between the different tables. To modify a record, just double-click it and then make your changes and save it. If you don't want to save your changes, click Cancel. Of course, most of the time you already have data entered or even exported from another database, data from spreadsheets or in the form of a text file. After this first short look around, we're going to import data so that we can quickly learn how to query and sort data, and to design easily customizable reports. To import data:
Once the import is finished, we can perform queries and sorts, and produce reports. Let's start with queries:
Let's refine the query:
Let's refine the query even more and only search for interventions by the technician MA01:
To sort this information in the order it was carried out by the date and time of the intervention:
The information is sorted in ascending order. Now let's look for interventions during a particular time period:
We get 54 records that correspond to the interventions that fall within this period. |
PROPERTIES
Product: 4D |