TopNumberOfRows Property
Version: Available or changed with runtime version 1.0.
Specifies the maximum number of rows to include in the resulting data set of a query.
Applies to
- Query
Property Value
An integer that specifies the maximum number of rows to include in the resulting dataset. The default value for this property is 0.
Note
A value of 0 is the same as leaving the property blank. If you set the value to 0, then there is no limit and all rows of the dataset are returned.
Syntax
TopNumberOfRows = 10;
Remarks
You use the TopNumberOfRows property to limit the resulting dataset to the first set of rows that are generated for the query. For example, you can include only the first 10 or first 100 rows in the resulting dataset. The TopNumberOfRows property is useful for key performance indicators such as the top number of customers or sales.
You can also specify the number of rows to include in the dataset by calling the TopNumberOfRows Method from AL. The TopNumberOfRows method will overwrite the TopNumberOfRows property setting.
Related information
Query Object
Linking and Joining Data Items
Aggregating Data in Query Objects
Filtering Data in Query Objects
Properties