Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Web Publishing with PHP and FileMaker 9- P11:On the other hand, it would drive me nuts if you bought this book only to discover that it didn’t address your needs. In the spirit of customer satisfaction, please read the following introduction to get a sense of where I’m coming from, and whether you might get some good use out of this book. | 140 CHAPTER 8 Working with Related Data Portals TO the pointer turns into an double-headed arrow that allows you to drag the TO open a bit. Do that now so you can view all of the Product fields as shown in Figure 8.3. FIGURE 8.3 It can be useful to resize your table occurrences to display all fields. Now that you can see all the fields in both TOs we are going to link the ID field in the Product table to the ID Product field in the Inventory table. The easiest way to do this is to drag one onto the other. 1. Position your mouse pointer over the ID field in the Product TO. 2. Click and hold your mouse button. You should notice that the pointer changes to an arrowhead with two connected dots underneath it. 3. Without releasing your mouse button reposition your mouse pointer over the ID Product field in the Inventory TO. As you move your mouse you should see a line following out of the Product TO. 4. The ID Product field will appear highlighted when your pointer is hovering over it. When you see the highlight you can release your mouse button. A relationship line should now exist between the two TOs see Figure 8.4 . Adding a Related Table to the Database 141 FIGURE 8.4 A relationship has been created between the Product and Inventory table occurrences. Creating a Portal Now that the relationship has been configured you can click the OK button to dismiss the Manage Database dialog box. Doing so should return you to the Product layout. I would like to call your attention to the layout pop-up menu up near the top of the gray status area on the left side of the window. If you click on the layout pop-up you should see that a default layout has been created for the Inventory table. Select the Inventory option from the list to view the Inventory layout. The Inventory layout should look similar to Figure 8.5. 8 FIGURE 8.5 FileMaker creates a default layout whenever you add a table to the database. 142 CHAPTER 8 Working with Related Data Portals What I m going to do next is .