I have this doubt some time, but didn’t get the oportunity to post it.
I wanted to create a PDF report coding TCPDF directly to get full flexibility, following https://www.youtube.com/watch?v=y5LyMqfE-vw
FIrst problem I encountered was, SQL macros don’t works inside, and in video all is passed as vars.
What is the best way to go then? If I’m on a form and want to call a report, first I need to retrieve data and pass it as vars?