T
|
thesofa author 7/4/2008 |
OK, I have been playing with this a bit more, I have all the relavent info on the reort page, in fact, I have too much, so what I need to know now is 2 things. |
T
|
thesofa author 7/4/2008 |
The journey continues,....... |
J
|
Jane 7/7/2008 |
Hi, //redirect to printer friendly page header("Location: tablename_print.php?recordid=".$keys["id_det"]); exit();
if (@$_REQUEST["recordid"]) $strWhereClause = whereAdd($strWhereClause,"id_det=".$_REQUEST["recordid"]); |
T
|
thesofa author 7/7/2008 |
You are a star, one of the brightest in the firmament. |
S
|
swanside 7/7/2008 |
The journey continues,....... I have found the ID number for the record just saved by using $keys["id_det"] How do I pass the value from this array variable as the filter for the report? Or even to a printer friendly page where I can extract the data from other tables with queries run in an event, then build the letter up from variables. How do I pass this value to a printer friendly page for one record? AAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRGGGGGGGHHHHHHHHHHHHHHHH! I hate these things when I get stuck....................
|
T
|
thesofa author 7/7/2008 |
OK, I have this all but sussed out, here is what I have done. function BeforeProcessRowPrint(&$data)
|
T
|
thesofa author 7/7/2008 |
Hi, here is an example: Then check this parameter in the Print page: Before SQL query event:
|
J
|
Jane 7/8/2008 |
Hi, ?><script> window.open('tablename_print.php?recordid=<?php echo $keys["id_det"]?>'); window.location.href='tablename_list.php'; </script><?php |
Z
|
zeitsprung 7/17/2008 |
//redirect to printer friendly page
if (@$_REQUEST["recordid"])
?><script>
|
J
|
Jane 7/17/2008 |
Hi, Have I to put this particular code snippet /w JS code just between the braces?
?><script> window.open('tablename_print.php?recordid=<?php echo $keys["RecordID"]?>'); </script><?php |
Z
|
zeitsprung 7/20/2008 |
Hi, if (@$_REQUEST["recordid"])
|
J
|
Jane 7/21/2008 |
Hi, if ($values["printed"]==1 && $values["exported"]==0) { //redirect to printer friendly page ... } |