Custom button for each database page

Custom button for each database page

fatenfalfoulfatenfalfoul Posts: 3Questions: 1Answers: 0

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

  • fatenfalfoulfatenfalfoul Posts: 3Questions: 1Answers: 0

    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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    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

  • fatenfalfoulfatenfalfoul Posts: 3Questions: 1Answers: 0

    I this is my question how to pass data of current page to the button
    thanks a lot

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Use Colin's example.

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974

    Guessing the blue PDF button is not generated from the Buttons Extension, correct? If so use rows().data() with the row-selector of {page: current} to get the row data on the current page.

    Kevin

Sign In or Register to comment.