How to develop a pagination data table with bonita 7.x

I use the bdm api:

Request url http://…/API/bdm/businessData/businessDataType?q=queryName&p=0&c=10&f=param=value

and i receive my first ten business data rows, i want to control the next page on the UI designer to be assigned to a button, how can i do that, i need to post a response to the server to do that or how?

in Spanish:

Yo utilizo el api de bdm,

Request url http://…/API/bdm/businessData/businessDataType?q=queryName&p=0&c=10&f=param=value

Yo recibo los primeros 10 registros de mi objeto de negocios, necesito controlar como obtener la siguiente pagina por medio de un boton, ¿como puedo hacer esto?, es necesario mandar una solicitud al servidor, como puedo hacer esto sin salirme de la tarea actual del proceso.

Saludos,

Eduardo Cortez

Hi Eduardo,

Do you have any example of how you are parsing the JSON response in the UI Designer? Are you using a Javascript function within the page and iterating through the objects?

Thanks in advance,

Dave

Hi.
Maybe you can create a new widget that call the rest api when you click on a “next” button. Then you reload your table with the new json that you get.

Another solution is to get all the rows with the rest api and add a pagination functionnality to a custom table widget.

Thanks, i make the widget, then i use the rest api to move in the pages.

Just figured it out.

This webinar http://www.bonitasoft.com/for-you-to-read/videos/bonita-bpm-7-custom-pages-applications gives a great example.