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

1
+1
-1

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

Comments

Submitted by yannick.lombardi on Tue, 06/30/2015 - 09:24

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.

Submitted by eduardo.cortez_1 on Tue, 06/30/2015 - 18:03

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

1 answer

1
0
-1

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

Comments

Submitted by dmickelson on Fri, 08/14/2015 - 15:26
Notifications