For a new query, the following screen will be displayed:
Much like a new Report, we begin Query development by defining the primary DataItem for our query and continuing from there as we did in Chapter 5, Queries and Reports. All C/AL code in a query is tied to the OnBeforeOpen trigger of the query (this code is often used to apply filters to the Query DataItems using the SETFILTER function).