I was creating PHPExcel code using Scriptcase Blank Application v6 and I noticed that after the execution a blank window was left opened. Initiately I though it was my PHPExcel codes but after several experiments, I found that it was the behaviour of the Scriptcase Blank Application. This can be duplicated by creating a blank application but do not put any codes into that application. RUN the application and a IE browser window is launch with no content.
How do i close this IE browser window automatically?
Re: Blank Application launches a blank window
Hi. I am using blank applications a lot on v6 and I am not seeing this duplicate window opening. You might want to open a ticket with SC support. I just looked at my blank apps and there are no settings anywhere specifying if you want it to open in self or parent or top, etc. Are you linked to that blank app from a menu? Is that opening it somewhere else than expected? Just wondering.
Mine are all loaded into the container apps, into iframes, if that helps.
Peace,
Jamie
Re: Blank Application launches a blank window
I tried linking it from a control application, I get the same thing. However, I also tested without any link, just standalone, when i click on the RUN icon, it perform a generate and then execute, the result is an OPEN blank browser window.
I then tried by inserting a javascript:window.close() command and it close the blank browser window, but when i linking it from the control application, the javascript closes even the parent (control) apps instead of returning back to the calling program.
Re: Blank Application launches a blank window
Hello leatheric,
This behaviour occurs only in IE browser?
did you try to open in another browser?
Are you using the latest version of version 6?
You can check it too, by creating a simple app blank, see if this blank window still is open.
Regards
Re: Blank Application launches a blank window
This seems to be happening for IE browser. I tried with Firefox and the browser closes after I have closed the excel spreadsheet which was called from PHPEXCEL $objWriter->save(‘php://output’);
I am using v6 and created a blank application and inserted the following codes in the onExecute
error_reporting(E_ALL);
$objPHPExcel = PHPExcel_IOFactory::load("MPSFormA_Jan.xlsx");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="report.xlsx"');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
ob_end_clean();
$objWriter->save('php://output');
$phpExcel->disconnectWorksheets();
unset($phpExcel);
Re: Blank Application launches a blank window
Hello,
How did you set the application target?
regards,
Bernhard Bernsmann
Re: Blank Application launches a blank window
There is no target.
I create a blank application, put the code in and just run it.
I also tried on a control application, put the code in the run it.
Same results