Dear gurus,
I have global variable created in orders application, called [globid].
Inside orders form, I created button “print” to print pdf invoice.
I used sc_redir(“print”,globid={no_order})
Inside the print application pdf, I created $sqlstr to get records from recordset with no_order
$sqlstr=‘select fnamabrg, fqty,fharga from orderdetails inner join goods on orderdetails.fkodebrg=goods.fkodebrg where fnojual=$globid’;
but i get error
select fnamabrg, fqty,fharga from orderdetails inner join goods on orderdetails.fkodebrg=goods.fkodebrg where fnojual=$globidTCPDF ERROR: Some data has already been output, can’t send PDF file
How i can use global variable globid to get records ?
Thank you
Regards