Hello everyone.
I downloaded a custom widget here https://github.com/mskutlu/bonitaTableWidget.git. ( I thank @msakirkutlu_1359205 for this widget )
My objective is to display a json object obtained from a BDM request in a table with the pagination option.
Can you help me, please?
PS: My BDM request works very well and I can already display the information in the standard table widget. My constraint was caused by the fact that I cannot use the LIMIT statement in the JPQL code of my request. I therefore need to use pagination when displaying my table.
If you use preview and your datatable is fill by your BDM, i think it’s normal. When you use preview mode directly with the form editor, that don’t load your BDM, so, you don’t have any datas.
Try to fill it with json object directly without your businessObject, it’s will be work (just for your test, when you need to deploy your process, just replace with your businessObject).
Regards
It works perfectly right now for me.
It was a question of importing assets and angular modules correctly with the right names and links.
Assets:
- https://cdnjs.cloudflare.com/ajax/libs/angular-filter/0.5.17/angular-filter.js (external)
- dirPagination.js
- https://cdnjs.cloudflare.com/ajax/libs/angular-strap/2.3.12/angular-strap.js (external)
AngularJS modules required:
angular.filter, angularUtils.directives.dirPagination
And to display multiple pagination instance on one page read this page https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination#multiple-pagination-instances-on-one-page
Thank you for your answer.
It’s true what you’re saying.
I created a valide json variable named testUserJson just for test in my page with the data
[
{
"firstname": "Audit Committee",
"creation_date": "2018-12-04 14:02:37.798",
"userName": "audit1",
"id": "33",
"job_title": "Audit Committee employee",
"last_update_date": "2018-12-04 14:02:37.798"
},
{
"firstname": "Asset Holder",
"creation_date": "2018-12-04 14:02:37.752",
"userName": "asset1",
"id": "28",
"job_title": "Asset Holder employee",
"last_update_date": "2018-12-04 14:02:37.752"
},
{
"firstname": "Chef de Service",
"creation_date": "2018-12-04 14:02:37.814",
"userName": "cds",
"id": "34",
"job_title": "Chef de Service employee",
"last_update_date": "2018-12-04 14:02:37.814"
}
]
But in fact, when I load my json object with all the right properties and good settings I don’t have a display. Same even when I leave the widget as it is by default the preview does not work either.
I have try this plugin, and it’s not working for me too.
When i include it to my page or from, all become empty. I think you need to post a topic in the github of this plugin.
Regards,
Okay, Thank you for your cordiality.
Best Regards,
Franck