Print single record from a grid using a print icon link |
2/12/2024 1:05:27 AM |
PHPRunner Tips and Tricks | |
1NET author
I've created an option to print a single record from a grid (instead of the whole grid of records listed) Step-1
Step-2
Select the ID field and choose "View as Custom" $value = "<a href='line_boring_print.php?a=print&selection[0]=$data[lb_id]' target='_new'><i class='fa fa-print fa-lg'></i></a>" Change the following to suit your project page $value = "<a href='YOUR_PAGE_print.php?a=print&selection[0]=$data[YOUR_GRID_RECORD_ID_FIELD]' target='_new'><i class='fa fa-print fa-lg'></i></a>" it used the icons in the Font Awesome library already installed in your project. |
|
Dalkeith 2/12/2024 | |
Thank you 1NET I could well see me using that at some point in the future |