Sunday, September 16, 2018

Implement searchMore using PHP

The following sample code will search for a customer record. The search result could be a thousand records and not ideal to display all the result in one request.

The searchMore method was created to handle pagination. We can limit the data to be display when using search method and use searchMore to get the next set of results.

Pagination breaks up a large number of records that are part of a search result set into smaller pages. You then have the ability to retrieve these pages of records one at a time. Pagination is used mainly to make processing large result sets earier and more manageable.

1. Create a new PHP file and add the following HTML code in the body section. Save the PHP file as searchCust.php.



2. Here's a sample PHP script:

1 comment:

  1. Why a developer or a big company would create this shit as docs?

    ReplyDelete