Thiết lập Giao diện hộp thoại biến mất, và bạn đang nhìn vào cách bố trí của bạn một lần nữa. Nếu bạn có đôi mắt sắc nét, sau đó bạn nhận thấy chiều rộng của trang đã bị thu hẹp một chút, như thể hiện trong hìnhTạo Layouts cho in ấn | Running Scripts When you exit a field that has Field Validation options. When you press a key on the keyboard while in a field or while a button or tab is selected. When you change the contents of a field in any way. When you switch from one tab panel to another. When you leave a field or tab away from a button or tab panel. When you leave a field after you ve made changes to it in other words when FileMaker has to save changes to the field . You ll learn how to use script triggers and more about how they behave at the end of this chapter. Performing Scripts When a File Is Opened and Closed You can configure a script to run each time the database is opened or closed. These opening and closing scripts are a lot like script triggers but FileMaker doesn t call them that. The opening script runs when you first open the file. You can use this script if you want to be greeted with the list of unpaid invoices first thing every morning. The closing script runs when you close the last window for an open file. This option is a little less common but it has its uses If you want to make sure other related files close whenever the main file closes even if they have open windows then you can write a script to close them all whenever you close the main file. UP TO SPEED A Script Action or a Script Attaching a single script action to a button is so easy that it s tempting to use that technique often page 318 . But even if your buttons do only one thing you ll still save time in the long run if you create a single-line script and attach that to your button instead. Yes it s a little more work upfront but scripts have a lot more flexibility over the long haul. Here s why. Lots of the initial development work in a database has to do with helping the users get around. So many of the first buttons you create just go to a layout or to a set of related records. But what if your business rules change-like from now on only managers can see a customer s payment history You have to figure .