No announcement yet.

Blank Application launches a blank window

  • Filter
  • Time
  • Show
Clear All
new posts

  • Blank Application launches a blank window

    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?

  • #2
    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.



    • #3
      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.


      • #4
        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.



        • #5
          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

          $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');   


          • #6
            Re: Blank Application launches a blank window


            How did you set the application target?

            Bernhard Bernsmann


            • #7
              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