<script> my_window = window.open('', 'newwin', 'resizable=yes, scrollbars=no, toolbars=no, location=no, directories=no, status=no, menubar=no, copyhistory=no'); </script>
TYPE=DATA, COLUMN=N2,FOCEXEC=agasum(country=N1), TARGET='newwin', $
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
GRAPH FILE CAR SUM DEALER_COST ACROSS COUNTRY ON GRAPH SET LOOKGRAPH BAR ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO ON ON GRAPH SET GRID ON ON GRAPH SET STYLE * TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, BACKCOLOR='NONE', STYLE=NORMAL,$ TYPE=DATA, ACROSSCOLUMN=N1, JAVASCRIPT=runReport(COUNTRY),$ ENDSTYLE ON GRAPH HOLD AS GRP1 FORMAT HTMTABLE END -HTMLFORM BEGIN <html> <SCRIPT LANGUAGE="JavaScript"> function runReport(COUNTRY) { var randomNumber=Math.floor(Math.random()*10000001); var uri = '/ibi_apps/WFServlet?IBIF_ex=carinst'; uri += '%26COUNTRY=' + COUNTRY ; uri += '%26RANDOM=' + randomNumber ; window.open(unescape(uri),'','menubar=no,toolbar=no,status=no,location=no,width=200,height=200,resizable=no,scrollbars=no,left=200,top=200'); } </script> <body> !IBI.FIL.GRP1; </body> </html> -HTMLFORM END
-* File db-cabin.fex -SET &name = 'CABINNAME'; -SET &lblText = 'Cabin'; TABLE FILE HDBMAIN SUM REQHOSTFLIGHTS AS 'HOSTFLIGHTS' BY CONTRACTNAME BY TOTAL HIGHEST 10 REQHOSTFLIGHTS NOPRINT BY CABINNAME ON TABLE SET ASNAMES ON ON TABLE HOLD AS DBCABIN1 END TABLE FILE DBCABIN1 SUM HOSTFLIGHTS COMPUTE C_HOSTFLIGHTS/A20 = FTOA(PCT.HOSTFLIGHTS, '(D15)', 'A20'); COMPUTE C_SORT/A60 = C_HOSTFLIGHTS || '% - ' || MAX.CABINNAME; BY CONTRACTNAME BY TOTAL HIGHEST 10 HOSTFLIGHTS NOPRINT BY CABINNAME ON TABLE SET ASNAMES ON ON TABLE HOLD AS DBCABIN2 END GRAPH FILE DBCABIN2 SUM HOSTFLIGHTS MAX.CABINNAME AS 'CABINNAME' NOPRINT BY HIGHEST C_SORT ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET HAXIS 490 ON GRAPH SET VAXIS 350 ON GRAPH SET UNITS PIXELS ON GRAPH SET LOOKGRAPH PIESINGL ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 0 ON GRAPH SET GRXAXIS 1 ON GRAPH SET GRAPHSTYLE * setTemplateFile("/images/tdg/template/PrismSouthWestern.txt"); setReportParsingErrors(false); setSelectionEnableMove(false); setPieFeelerTextDisplay(0); setReverseSeries(0); -*setLegendPosition(3); setLegendAutomatic(true); setLegendPosition(3); setDisplay(getPieLabel(),false); setPlace(false); setPlaceResize(getPieSliceLabel(),0); setFontName(getPieSliceLabel(),"Arial"); setFontName(getLegendText(),"Arial"); setFontName(getSubtitle(),"Arial"); setTextString(getTitle(),""); setTextString(getSubtitle(),"Cabin"); setDisplay(getSubtitle(),true); setFontSizeAbsolute(getSubtitle(),true); setFontSizeInPoints(getSubtitle(),12); setFontStyle(getSubtitle(),2); setPlaceResize(getLegendText(),0); setFontSizeAbsolute(getLegendText(),true); setFontSizeInPoints(getLegendText(),6); setFontSizeAbsolute(getPieSliceLabel(),true); setFontSizeInPoints(getPieSliceLabel(),6); setFillColor(getChartBackground(),new Color(255,255,255)); setTransparentBorderColor(getChartBackground(),true); setPieDepth(0); setPieTilt(0); setOtherPieLabelDisplay(0); setPieLabelDisplay(0); setTextFormatPreset(getPieSliceLabel(),28); setFontSizeAbsolute(getLegendText(), true); setFontSizeInPoints(getLegendText(), 8); setTransparentBorderColor(getSeries(0),true); setTransparentBorderColor(getSeries(1),true); setTransparentBorderColor(getSeries(2),true); setTransparentBorderColor(getSeries(3),true); setTransparentBorderColor(getSeries(4),true); setLegendPosition(-1); setLegendAutomatic(false); setRect(getLegendArea(),new Rectangle(-16000.0,-1000.0,3000.0,8000.0)); setPlace(true); ENDSTYLE ON GRAPH SET STYLE * TYPE=DATA, COLUMN=N2, FOCEXEC=db-contract-detail(val = N3 name = '&name.EVAL' lblText = '&lblText.EVAL'), TARGET='report1', $ ENDSTYLE END -RUN
-* File db-cabin.fex -SET &name = 'CABINNAME'; -SET &lblText = 'Cabin'; TABLE FILE HDBMAIN SUM REQHOSTFLIGHTS AS 'HOSTFLIGHTS' BY CONTRACTNAME BY TOTAL HIGHEST 10 REQHOSTFLIGHTS NOPRINT BY CABINNAME ON TABLE SET ASNAMES ON ON TABLE HOLD AS DBCABIN1 END DEFINE FILE DBCABIN1 name/A10 = 'CABINNAME'; lblText/A10 = 'Cabin'; END TABLE FILE DBCABIN1 SUM HOSTFLIGHTS COMPUTE C_HOSTFLIGHTS/A20 = FTOA(PCT.HOSTFLIGHTS, '(D15)', 'A20'); COMPUTE C_SORT/A60 = C_HOSTFLIGHTS || '% - ' || MAX.CABINNAME; MAX.name AS 'name' MAX.lblText AS 'lblText' BY CONTRACTNAME BY TOTAL HIGHEST 10 HOSTFLIGHTS NOPRINT BY CABINNAME ON TABLE SET ASNAMES ON ON TABLE HOLD AS DBCABIN2 END GRAPH FILE DBCABIN2 SUM HOSTFLIGHTS BY HIGHEST C_SORT ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHDEFAULT OFF ON GRAPH SET VZERO OFF ON GRAPH SET HTMLENCODE ON ON GRAPH SET HAXIS 490 ON GRAPH SET VAXIS 350 ON GRAPH SET UNITS PIXELS ON GRAPH SET LOOKGRAPH PIESINGL ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 0 ON GRAPH SET GRXAXIS 1 ON GRAPH SET GRAPHSTYLE * setTemplateFile("/images/tdg/template/PrismSouthWestern.txt"); setReportParsingErrors(false); setSelectionEnableMove(false); setPieFeelerTextDisplay(0); setReverseSeries(0); -*setLegendPosition(3); setLegendAutomatic(true); setLegendPosition(3); setDisplay(getPieLabel(),false); setPlace(false); setPlaceResize(getPieSliceLabel(),0); setFontName(getPieSliceLabel(),"Arial"); setFontName(getLegendText(),"Arial"); setFontName(getSubtitle(),"Arial"); setTextString(getTitle(),""); setTextString(getSubtitle(),"Cabin"); setDisplay(getSubtitle(),true); setFontSizeAbsolute(getSubtitle(),true); setFontSizeInPoints(getSubtitle(),12); setFontStyle(getSubtitle(),2); setPlaceResize(getLegendText(),0); setFontSizeAbsolute(getLegendText(),true); setFontSizeInPoints(getLegendText(),6); setFontSizeAbsolute(getPieSliceLabel(),true); setFontSizeInPoints(getPieSliceLabel(),6); setFillColor(getChartBackground(),new Color(255,255,255)); setTransparentBorderColor(getChartBackground(),true); setPieDepth(0); setPieTilt(0); setOtherPieLabelDisplay(0); setPieLabelDisplay(0); setTextFormatPreset(getPieSliceLabel(),28); setFontSizeAbsolute(getLegendText(), true); setFontSizeInPoints(getLegendText(), 8); setTransparentBorderColor(getSeries(0),true); setTransparentBorderColor(getSeries(1),true); setTransparentBorderColor(getSeries(2),true); setTransparentBorderColor(getSeries(3),true); setTransparentBorderColor(getSeries(4),true); setLegendPosition(-1); setLegendAutomatic(false); setRect(getLegendArea(),new Rectangle(-16000.0,-1000.0,3000.0,8000.0)); setPlace(true); ENDSTYLE ON GRAPH SET STYLE * TYPE=DATA, COLUMN=N2, JAVASCRIPT=runReport(CABINNAME name lblText), $ ENDSTYLE ON GRAPH HOLD AS GRP1 FORMAT HTMTABLE END -HTMLFORM BEGIN <html> <SCRIPT LANGUAGE="JavaScript"> function runReport(COUNTRY) { var uri = '/ibi_apps/WFServlet?IBIF_ex=db-contract-detail'; uri += '%26CABINNAME=' + CABINNAME ; uri += '%26name=' + name ; uri += '%26lblText=' + lblText ; window.open(unescape(uri),'','menubar=no,toolbar=no,status=no,location=no,width=200,height=200,resizable=yes,scrollbars=no,left=200,top=200, titlebar=no); } </script> <body> !IBI.FIL.GRP1; </body> </html> -HTMLFORM END
-HTMLFORM BEGIN <html> <SCRIPT LANGUAGE="JavaScript"> function runReport(N3) { var uri = '/ibi_apps/WFServlet?IBIF_ex=dbcontractdetail'; uri += '%26val=' + N3 ; uri += '%26name=CABINNAME '; uri += '%26lblText=Cabin ' ; window.open(unescape(uri),'','menubar=no,toolbar=no,status=no,location=no,width=200,height=200,resizable=yes,scrollbars=no,left=200,top=200, titlebar=no, fullscreen=no'); } </script> <body> !IBI.FIL.GRP1; </body> </html> -HTMLFORM END