Pre_mask userexit at each mask. Using as On_Select userexit in widget- and edit-menus/button-areas or On_Event userexit in Widget state or in Query mode of mask edit state is possible to.
It is recommended to use the userexit at the pre_mask-trigger if you want to fill a mask with the current data immediately after displaying it on the screen. For, immediately after opening a mask, usually no search terms are defined, DataView fills the mask with all existing records.
If a query returns more records than allowed for the current mask (R-Max field of the -> mask data form) DataView will output a message and display only the number of records allowed. If the search was started with at least one database sort criterion set, the remaining records can be fetched via record-scan.