(view)
integer o2view_total(string $view_name, boolean $from_cache)
Returns total number of records in the view dataset.
This is the function to use to get the actual view records number, regardless of paging, offsets and cursor position.
If parameter $from_cache is not passed or it is passed as FALSE total records number will be forced to be recounted.
If $from_cache parameter is passed as TRUE an extra check will be performed on dataset to verify if it has changed from last count.
The $from_cache parameter is mostly intended to be used as TRUE in UI expression, i.e.
in a grid footer cell value.