Focal Point
[SOLVED]Maximize window when running

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1077023376

October 30, 2014, 10:40 AM
hainguyen
[SOLVED]Maximize window when running
Whenever I run the report in Dev Studio or in Dashboard, the initial window didn't open maximum size, it just opened a part and display in a middle of the screen. So I have to click the maximize button to see the report in the full size. Is there anyway I can set this feature ?

This message has been edited. Last edited by: hainguyen,


WebFOCUS 7.7.03
Windows, All Outputs
October 30, 2014, 10:58 AM
Francis Mariani
I don't think there's any way to set this to occur automatically.

This is what I do: use the SET JSURL command in the fex to point to a JavaScript file which maximizes the window.

The fex:
SET JSURL  = '/approot/common/maximize.js'

TABLE FILE CAR
SUM
SALES
BY COUNTRY
END


The js file:
// Maximize browser window
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);

The js file is located in a folder on the web server.

The one issue I have with this method is for users with two monitors, the report window is always moved to the main monitor.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 31, 2014, 11:53 AM
hainguyen
Thanks Francis, this is awesome.


WebFOCUS 7.7.03
Windows, All Outputs