[progress Communities] [progress Openedge Abl] Forum Post: Re: Limiting/paging The Number...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
Hello Carl, Here are short answers to your questions then more detail: 1. Yes, you would need to enable JFP support in your Business Entity. Please notice that the extra seq and id fields are only needed on the temp-table definition, they are not required in the actual database table. The seq field is used by the code to support sorting. The id property is used to support queries using an ID. This functionality is currently not used by Kendo UI Builder. In practice you can actually implement your own way to handle queries. It does not need to be JFP. 2. Yes, the code in the documentation is a code sample. 3. As mentioned earlier, you can implement your own way to handle queries. Please let me know if you are interested in this approach and I can provide more information. The key to enabling paging is to turn off the "Client-side Processing" in the Data Source definition. (Edit Data Provider / Edit Data Source) This will enable the server-side processing which sets serverPaging, serverFiltering and serverSorting on the DataSources generated by Kendo UI Builder. You will then see these properties are automatically generated and set in the generated code in controller.js. When serverPaging, serverFiltering and serverSorting are set to true, the Kendo UI DataSource sends the request to the remote service. This is done via the JSDO. You would need code in your Business Entity that can process the request sent by the datasource. A way to do this is to use the JFP (JSON Filter Pattern). You can implement your own filter pattern but it is easier to use the JFP. It depends on your requirements. The PDF that you mentioned has a sample implementation for it. You can also find this section online at: documentation.progress.com/.../index.html You would need to do update the READ method to process the JFP, perhaps by calling JFPFillMethod() as in the sample code or doing your own processing. The count method is used to return the total number of records for a result set. The "Unexpected response" message would mean that the response does not have the expected structure. Please confirm that the signature of the count method as in the one in the same. What do you see in the Network tab in the Developer Tools? The PageSize property in the grid properties and the Data Source definition controls the value of the pageSize that is generated. Please let me know if you have comments or questions. I hope this helps, Edsel

Continue reading...
 
Status
Not open for further replies.
Back
Top