Custom button for each database page
Custom button for each database page
how are you? I'm developping a big medical project generating a thousands of reports and I need to create a custom button for each database page. For examle the result of my search function is contained with 1200 record. On each record I have a report that contains at least 4 pages. For example
The blue button << pdf >> IS DONE to print all this reports so if the datatbles contains many (more than 40) I have a server error. So I need to place that button related to each page of the table (only 10 entries) Any help please
This question has an accepted answers - jump to answer
Answers
My question is how can I add a button to print for example a part (page : 10 entries) from the datatable and that data (to print) change from a page to another
I think you're asking to only export those records on the current page - if so, this example shows how to use the
exportOptions
to achieve that,Colin
I this is my question how to pass data of current page to the button
thanks a lot
Use Colin's example.
Guessing the blue PDF button is not generated from the Buttons Extension, correct? If so use
rows().data()
with therow-selector
of{page: current}
to get the row data on the current page.Kevin