Skip to content

Conversation

@marcelosboeira
Copy link

Get the batch informations to use [moreResults] => NO_MORE_RESULTS and an count(entityResults)

Get the batch informations to use [moreResults] => NO_MORE_RESULTS and an count(entityResults)
@marcelosboeira
Copy link
Author

marcelosboeira commented Aug 13, 2020

I used that to show or not the pagination.
Ex.:
// Pagination... if ($obj_itens->str_last_batch->moreResults == 'MORE_RESULTS_AFTER_LIMIT') { $this->set('PAGINATION', "Limit: $pageLimit <br> Cursor: $page <br>Next Cursor: $erro {$obj_itens->getCursor()} <br>".' <a class="btn btn-success" href="?page_exe='.$obj_itens->getCursor().( $url_qry?"&$url_qry":"").'" > Next Page</a>'); } else {$this->set('PAGINATION', "");}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant