hi all,
i have two different reports and i have placed code to open these reports in two different A5w page.(1st report in 1st a5w page,2nd report in 2nd a5w page)
problem: in afterupdate event of a grid i am calling report a5w page, it works fine.
Now my new requirement is i have to open two different reports.
which is placed in two different a5w page at the same time.
i know using javascript it works with a5w page,but in case of a5w page which contains code to open reports is not working. it is opening only one report.
thanks,
the following code is from the a5w page
------------------------------------------------------------------------
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 9 Build 1634-3197">
<title></title>
<script language="javascript">
function opennew()
{
window.open ("http://www.google.com","mywindow","status=1");
}
</script>
</head>
<body onload="opennew()">
<p>
<%a5
PrintBarCodePOno="34536-1"
IF eval_valid("PrintBarCodePOno") = .f. Then
goto skipreport
end if
dim args as sql::arguments
args.set("PrintBarCodePOno",alltrim(PrintBarCodePOno))
Dim filename as c
dim libfolder as c
libfolder = a5_removetrailingbackslash(Request.ApplicationRoot) + chr(92)
reportname = "GRN_BARCODE_PRINTING_BCP@" + libfolder + "emanagement.alb"
filename = session.session_folder + "tempreport.pdf"
filename = report.saveas(reportname,"pdf","","",filename,.f.,null_value(),args)
if file.exists(filename)
response.redirect(session.session_url + "tempreport.pdf?" + time("hms3"))
end if
skipreport:
%></p>
</body></html>
---------------------------
i have two different reports and i have placed code to open these reports in two different A5w page.(1st report in 1st a5w page,2nd report in 2nd a5w page)
problem: in afterupdate event of a grid i am calling report a5w page, it works fine.
Now my new requirement is i have to open two different reports.
which is placed in two different a5w page at the same time.
i know using javascript it works with a5w page,but in case of a5w page which contains code to open reports is not working. it is opening only one report.
thanks,
the following code is from the a5w page
------------------------------------------------------------------------
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 9 Build 1634-3197">
<title></title>
<script language="javascript">
function opennew()
{
window.open ("http://www.google.com","mywindow","status=1");
}
</script>
</head>
<body onload="opennew()">
<p>
<%a5
PrintBarCodePOno="34536-1"
IF eval_valid("PrintBarCodePOno") = .f. Then
goto skipreport
end if
dim args as sql::arguments
args.set("PrintBarCodePOno",alltrim(PrintBarCodePOno))
Dim filename as c
dim libfolder as c
libfolder = a5_removetrailingbackslash(Request.ApplicationRoot) + chr(92)
reportname = "GRN_BARCODE_PRINTING_BCP@" + libfolder + "emanagement.alb"
filename = session.session_folder + "tempreport.pdf"
filename = report.saveas(reportname,"pdf","","",filename,.f.,null_value(),args)
if file.exists(filename)
response.redirect(session.session_url + "tempreport.pdf?" + time("hms3"))
end if
skipreport:
%></p>
</body></html>
---------------------------
Comment