Hi there,
I'd like to export the info regarding the selected row in the master section and also all the rows in the detail section, is there any way to do this?
Thank you.
Hello Ramirez,
This is currently not supported via phpgrid.
We're adding it in todos.
Thank you Abu for your quick response, I'm a paid member by the way ([email protected])
I solved it now, I used the custom export method and from there I inserted only the selected Master row and then an inserted the whole detail afterwards.
Thanks 🙂
Dear Christian,
would you mind to show/send me a sample of your code?
would use it for my food database and have to show the ingredients for each row (detail) on the export
It can be achieved by generating PDF based on html.
Refer http://www.phpgrid.org/demo/demos/export/export-pdf-html.php
Code http://www.phpgrid.org/demo/demos/export/export-pdf-html.phps
Sir, I can't see your sample code through http://www.phpgrid.org/demo/demos/export/export-pdf-html.phps, page not found. Would you fix it?
Thank you Abu, but it would be awesome to see the sample of Christian, with details included in the pdf.
or can you tell me, how to insert a sql select in the pdf rendering
I've prepared a demo of exporting detail grid. Open the demo and Click on export for preview.
It uses custom pdf export code using html renderer, so it may take time & memory for big dataset.
Live: http://www.phpgrid.org/demo/demos/export/export-detail.php
Code: http://www.phpgrid.org/demo/demos/export/export-detail.phps
Sorry for the delay.
Here are the linksfor the custom export the selected master and its details:
1.-Preview of the Master-Detail page (http://www.kanul.com/ads/tmp/masterdetail_export.txt)
2.-Source (http://www.kanul.com/ads/tmp/MasterDetailExport_Sample.docx)
I hope this helps.
Pasting sample code to gist.
https://gist.github.com/gridphp/6c88a6666ef4701fdb47837e93f3e104