I have a Bill of Lading app that after a record is created and line items are added (details table), it goes to the view page. From here the user can click on one of 3 custom buttons that open 3 different print pages (Bill of Lading, Commercial Invoice, CUSMA) based on the open record.
My code to direct to the appropriate page is below:
Server
Client after
And then on the printer friendly Before SQL query:
Everything directs properly, the proper print page is displayed (Bill of Lading, Commercial Invoice, CUSMA) but on the print page the line items (record details) do not display. It is as if the link is lost after you do the $strWhereClause.
Also if you print (Bill of Lading, Commercial Invoice, CUSMA) from the list page all line items are displayed. This was done by adding two more print buttons and selecting what print page to go to through page designer.
Any idea if I need to add something to the Before SQL query on the printer friendly event?? Any help or ideas welcome.
Thanks,
Billy
My code to direct to the appropriate page is below:
Server
$record = $button->getCurrentRecord(); $result["recid"] = $record["ship_id"];
Client after
var id = result["recid"]; var URL = 'bol_main_print.php?page=print_bol&editid1='+id; window.open(URL, '_blank');
And then on the printer friendly Before SQL query:
if($_GET["editid1"]) $strWhereClause = "ship_id = ".$_GET["editid1"];
Everything directs properly, the proper print page is displayed (Bill of Lading, Commercial Invoice, CUSMA) but on the print page the line items (record details) do not display. It is as if the link is lost after you do the $strWhereClause.
Also if you print (Bill of Lading, Commercial Invoice, CUSMA) from the list page all line items are displayed. This was done by adding two more print buttons and selecting what print page to go to through page designer.
Any idea if I need to add something to the Before SQL query on the printer friendly event?? Any help or ideas welcome.
Thanks,
Billy