Accessing and displaying data outside of datatables wrapper
Accessing and displaying data outside of datatables wrapper
Hello,
I have a datatables which displays data from a database. This all works fine and is looking good! However, on the same webpage I wish to display a count of how many rows have a certain value. This would be below the datatables and outside its wrapper etc... I have a select filter in place, allowing a user to only display rows with a certain value. Out of these filtered results I wish to count them and display the number.
Context: We have a signup form on our site, people can sign up to attend an event. They enter in details such as their name, what car they are bringing, and what date they are signing up for. The organisers then have a private page which uses datatables to display all of the sign ups. We then have a select box with a list of dates which an organiser can filter by. This displays all the sign ups for that date. This all works. However on the same page, under the datatable I wish to show a breakdown of what cars people are attending in and how many of each, for the date the organiser filtered by. This is where I am stuck.
Thanks!
I have a datatables which displays data from a database. This all works fine and is looking good! However, on the same webpage I wish to display a count of how many rows have a certain value. This would be below the datatables and outside its wrapper etc... I have a select filter in place, allowing a user to only display rows with a certain value. Out of these filtered results I wish to count them and display the number.
Context: We have a signup form on our site, people can sign up to attend an event. They enter in details such as their name, what car they are bringing, and what date they are signing up for. The organisers then have a private page which uses datatables to display all of the sign ups. We then have a select box with a list of dates which an organiser can filter by. This displays all the sign ups for that date. This all works. However on the same page, under the datatable I wish to show a breakdown of what cars people are attending in and how many of each, for the date the organiser filtered by. This is where I am stuck.
Thanks!
This discussion has been closed.
Replies