Some simple coding modifications
Now, we’ll add some AL code to objects we’ve created for our WDTU application. We will add validation code to a table field, add code and a request page to a report, and finally, test the completed report.
Adding field validation to a table
In Chapter 4, Pages – The Interactive Interface, we created the 50110 "Radio Show Fan"
table. We›ve decided that we want to be able to use this list for promotional activities, such as having drawings for concert tickets. Of course, we want to send the tickets to the winners at their mailing addresses. We didn’t originally include these fields in our table design, so we must add them now.
To keep our design consistent with the standard product, we will model these address fields after the equivalent ones in the 18 - Customer
table. Our updated table will look as follows:
Figure 6.20 – Updated Radio Show Fan table
Part of modeling...