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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant