Modifying Table Fields
Because we want the NAV tables to be the core of the design and to host as much of the processing as makes sense, we will start our enhancement work with table modifications.
The first table modification is to add the data fields to the Playlist Header to support the definition and tracking of various program segment requirements. In the Radio Show table, each show has requirements defined for specific numbers of PSAs and Advertisements, and for the presence of News, Sports, and Weather spots. The Playlist Header needs this requirements information stored along with the associated counts for this show instance for PSAs and Ads. We are going to obtain the News, Sports, and Weather line counts by means of a function call.
Since the Playlist Line includes an Option field which identifies the PSA and Advertisement records, we use a FlowField to calculate the counts for each of those line types. We construct the FlowField definition starting in the Properties form...