Query and Query component properties
There are several Query properties that we should review.
Query properties
The properties of a Query object can be accessed by highlighting the first empty line and clicking on the Properties icon (or clicking Shift + F4 or View | Properties). The Properties of the Query that we created earlier look like the following:
We'll review three of these properties:
- OrderBy: Provides the capability to define a sort, data column by column, and ascending or descending, giving the same result as if a key were defined for the Query result, but without the requirement for a key.
- TopNumberOfRows: Allows the specification of the number of data rows that will be presented by the Query object. A blank or 0 value shows all rows. Specifying a limit can make the Query object execution complete much faster. This property can also be set dynamically from the C/AL code.
- ReadState: Controls the state (committed or not) of data that is included and the type of...