Handling user entered report options

Part of our report design includes allowing the user to choose fans based on some simple demographic data based on age and gender. We'll need to add two more fields to our Radio Show Fan table definition, one for Gender and the other for Birth Date, from which we can calculate the fan's age, as shown in the following screenshot:

This back and forth process of updating first one object, then a different one, then yet another, is typical of the NAV development process much of the time. Exceptions are those cases where either the task is so simple we think of everything the first time through, or the cases where we create a completely documented, full-featured design before any development starts (but nobody thinks of everything, there are always changes; our challenge is to keep the changes under control).
An advantage to the more flexible approach we are following is that it allows us to view (and share with others) intermediate versions of the application as it is developed. Design issues can be addressed as they come up and overlooked features that can be considered midstream. Two downsides are the very real possibility of scope creep (the project growing uncontrollably) and poorly organized code. Scope creep can be controlled by good project management. If the first pass through results in poorly organized code, then a thoughtful refactoring is appropriate, cleaning up the code while retaining the design.

In order for the user to choose which Fan demographics will be used to filter the Fan data for a particular promotion, we will have to create a Request Page for entry of the desired criteria. This, in turn, requires the definition of a set of Global Variables in our Report object to support the Request Page data entry fields and as working variables for the age calculation and Fan selection. We've decided that if a Fan fits any of the individual criteria, we will include them. This makes our logic simpler. Our final Global Variable list in Report 50002 looks like the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.43.17