Create a Data Object Invoke operation method that returns the total number of available records
- Last Updated: October 8, 2025
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Create a Data Object Invoke operation method that returns the total number of available records
To use server-side paging, you must create an Invoke operation method that returns the total number of records in the server result set. The Invoke operation that returns the total number of records in the server result set must have the following ABL method signature:
Roll over a syntax element to learn about it:
METHOD PUBLIC VOID countFnName (INPUT filter AS CHARACTER,OUTPUT numRecs AS INTEGER)
Where:
countFnName | The name of the method. You have to use this name when you use the Data Object service from Telerik Platform. |
filter | A string that contains the same JSON Filter Pattern that is passed to the Read operation method. |
numRecs | An integer that you assign to the total number of records in the server result set identified by the filter. |
After you create an Invoke method with the required method signature, you must add ABL code that returns the number of records in the result set. Then, you must add annotations to the new Invoke method using the Define Service Interface wizard and replace the URI in the annotation with:
/countFnName?filter=~{filter~}