Door 1 - The Database |
Hello and welcome to this year's MBS FileMaker Advent calendar. This year our logo monkey has turned into a Christmas elf and has to take care of the coordinated distribution of presents at Christmas. What could be more obvious for our monkey than to get an overview with a FileMaker database. Over the next 24 days, we'll show you how to pimp a simple database with the help of the MBS FileMaker Plugin. All you need is to have fun with FileMaker. We'll start by creating the database and work our way through step by step. Even though the advent calendar is suitable for beginners, advanced users and professionals can certainly use some of the ideas from the advent calendar for their own purposes.
So let's start with our first door and thus with the basis for this calendar. Our FileMaker database. Although we provide you with this database, it can be useful to deal with the topic of how such a database can be set up. Initially, we only have a few tables, which we will expand over the course of the Advent calendar. Initially, our database consists of 3 tables. The table with the name of the giftee is our main table in which we find the information about the giftee, such as the last name, first name, date of birth and address. In addition, each recipient has their own identification number that can be uniquely assigned to them. This means that the number exists exactly once for each recipient. In this example, we call it the Primary Key in the table.
We would also like to include the telephone numbers and e-mail addresses of the recipients. But there is a problem, because a recipient can have different phone numbers or e-mail addresses and we would like to use this possibility to include them in our database. For this reason, we still need the Telephone and Mail tables in which we can record this data.
I will demonstrate this using the telephone table. However, it works in the same way for the e-mail addresses. The Giftee and Phone table are linked with a relationship in the relationship graph. We use the primary key of the giftee table and theForeign key field in the Telephone table. So if a telephone number belongs to a specific giftee, we take the primary key of a person and enter it in the telephone table as Foreign key.
We do the same for our mail addresses.
This completes our database schema for now and we would now like to create a layout. We want to see our giftee data. To do this, we first add the last name, first name, address and birthday fields to our layout and position them as we want.
Now, of course, we would also like to see our telephone numbers and e-mail addresses on the layout. We use portals for this. We drag a portal onto our layout and enter the corresponding tables from which the information comes from. At the moment we can see everything we want to see.
Of course we would like to make the whole thing a bit more user-friendly. Since we are going to create different layouts, we want to create our own customized theme. To do this, we first change something in our layout, such as the color of the top navigation in green. We now see that a red arrow lights up at the top next to the style. This means that FileMaker wants to point out that this is not the original style of the selected theme. Here we now have the option of either overwriting the original style or creating a new style. I would always recommend that you create a new style so that you always have the opportunity to return to the other style.
The style is currently only visible on this single layout, which we would now like to change - we can currently see the red arrow next to the theme. Again, we have the option of overwriting the theme or creating a new one. Again, the advice to create a new one. After creating a new design, we can change it to our liking. We keep our colors in green and red and choose a nice font for the field naming and the info texts.
Of course, the logo with our elf monkey should not be missing. To do this, we simply drag our logo into the application and can then use the mouse to set the size and position it accordingly. Here's a little tip: If you press the Option key at the same time as scaling with the mouse, the proportions will be retained.
Now our database template is ready.
I hope you enjoyed the first little door and we'll see you again tomorrow.
Download Advent24-Door 1.fmp12
Watch the video on YouTube