tailieunhanh - filemaker pro 11 the missing manual phần 9

Xây dựng một kịch bản phức tạp cần có thời gian và lập kế hoạch. Bởi vì kịch bản cung cấp cho bạn tính linh hoạt rất nhiều, bạn thường có nhiều cách để giải quyết cùng một vấn đề. Công việc của bạn là tìm cách đáp ứng tốt nhất công việc kinh doanh của bạn cần và | Putting a Complex Script Together Putting a Complex Script Together Building a complicated script takes time and planning. Because scripting gives you so much flexibility you often have many ways to solve the same problem. Your job is to find the way that best meets your business needs and is the simplest to understand fix and maintain later. As your skills grow the approach you take to solving problems will change. In this section you ll make a script that generates an invoice for a job. You want to gather all the unbilled expenses and timeslips for the job and then add the appropriate line items to the invoice. To make a script like this you need to cover all your bases Planning. Before you even start writing the script you have to decide upon a general approach. Outline all the things your script will do and in what order. This process usually evolves from the general to the specific. The most specific version is the script itself where you tell FileMaker exactly what to do. Exceptions. What kinds of things can go wrong Think about how you ll check for errors and prevent problems. Efficiency. Are you doing the same things several places in the script Are there other reasons to break your script into multiple smaller scripts Note The rest of this chapter is one long exercise. Here you ll get a chance to put theoretical concepts to practical use. Since each section builds on the one before it this complex script is best digested if you work straight through from here to the end-without skipping parts or jumping around. And while you may not need this exact process in your real life databases the techniques you ll learn are applicable to any complex scripting situations. Planning the Script Planning a big script is usually an iterative process. You start by outlining the steps the script will take in very general terms. You then go in and fill in more and more detail with each pass. When you re done adding detail you know exactly what steps your script will use. .

TỪ KHÓA LIÊN QUAN