As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi there, We have some V5.3.2 Focus code/html that we want to convert to V7.6.6. I have an existing html that I have converted using the HTML Layout Painter in v766. When I run it I get the error message: Error occurred. ERROR: ERROR_MR_MISSING_STRING Required value IBIMR_folder is missing.
I looked in the html code and it appears in there and the name of the folder as well.
What could be missing? I did a similar conversion with another piece of html and it worked after minor tweaking (dynamic values).
For this second case it looked like I could not use the fex code to start the conversion. I was only able to do it from the html.
Here's the fex code : -*------------------------------------------------------------------------------ -* Client : Ontario - Ministry of Transportation -* Project : Road Side Data Capture -* Application : District Workload and Defect Summary Report -* Module : rdc030.fex -* Description : -* Called By : WebFOCUS Business Intelligence Dashboard -* Date Developed: January 2005 -* Developed by : Tamra Colangelo, Information Builders -*------------------------------------------------------------------------------ -* Maintenance History -*------------------------------------------------------------------------------ -* Modified by : -* Date Modified: -* Reason : -* Mod. ID : -*------------------------------------------------------------------------------ -SET &REP_NAME = 'Workload and Defect Summary Report'; -STEP0 SET LINES=9999 SET PAPER=9999 SET SPACES = 1 SET ASNAMES= ON -SET &RUN_DATE = &DATEMtrDYY; -SET &RUN_TIME = EDIT(HHMMSS('A8'),'99$:99$:99'); -*QUARTERS -DEFAULT &ADATE1 = '20050107'; -DEFAULT &ADATE2 = '20050108'; -SET &ADATETIME1 = &ADATE1 | ' 00:00:00'; -SET &ADATETIME2 = &ADATE2 | ' 23:59:59'; -SET &ADATE1TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE1, 'A17'), 'A17'); -SET &ADATE2TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE2, 'A17'), 'A17'); -SET &QTRBEG_DATE = &ADATE1 | ' 00:00:00'; -SET &QTREND_DATE = &ADATE2 | ' 23:59:59'; -****SET &QTRBEG_DATE = LCWORD(17,CHGDAT('YYMD', 'YYMD', &ADATE1, 'A17'), 'A17'); -****SET &QTREND_DATE = LCWORD(17,CHGDAT('YYMD', 'YYMD', &ADATE2, 'A17'), 'A17'); -* -STEP1 -* -*-------------------------------------------------------------------------------- -* set up AXLE GROUPING + MOTORCOACH + -* set up other counts for report -* pickup all corresponding rec form inspectin and opt_field tables -*-------------------------------------------------------------------------------- -AAA SET ALL=ON JOIN CLEAR * JOIN INSPID IN INSPECTION TO ALL INSPID IN INSP_OPT_FIELD AS J1 DEFINE FILE INSPECTION XVEHTYPE/A4 = IF INSPID EQ LAST INSPID THEN EDIT(OPTFIELDDATA,'9999') ELSE ' '; XAXLE1/I5C = POSIT(OPTFIELDDATA,30,'=',2,'I2') ; XAXLE2/A5 = IF INSPID EQ LAST INSPID THEN XAXLE2 ELSE SUBSTR(30,OPTFIELDDATA,XAXLE1,XAXLE1+2,4,XAXLE2); XAXNUM/A2 = IF INSPID EQ LAST INSPID THEN XAXNUM ELSE GETTOK(OPTFIELDDATA,30,-1,'=',2,XAXNUM); X1AXNUM/I9C = EDIT(XAXNUM); XAXLEGRP/A8 = IF XAXNUM EQ '2' AND XVEHTYPE EQ 'MC' OR 'VN' OR 'SP' OR 'PD' OR 'SB' OR 'BU' OR 'MT' THEN '02-BUS' ELSE DECODE XAXNUM('2' '2' '3' '3-4' '4' '3-4' '5' '5-7' '6' '5-7' '7' '5-7' ELSE '8+'); XMOTORCOACH/I9 = IF XVEHTYPE EQ 'MC' THEN 1 ELSE 0; END TABLE FILE INSPECTION SUM MAX.STATECENSUSNUM MAX.OPTFIELDDATA MAX.OPTFIELDID MAX.XAXLE1 MAX.XAXLE2 MAX.XAXNUM MAX.X1AXNUM MAX.XAXLEGRP MAX.XMOTORCOACH MAX.TOTALVIO MAX.TOTALOOSVIO MAX.TOTALHM MAX.INSPLOCATIONCODE COMPUTE -* to match with certifeid officers table later the 2 fields must be same format XINSPECTORCODE/A8 = INSPECTORCODE; BY INSPLEVEL BY INSPID BY RPTNUM WHERE INSPLEVEL EQ '1' OR '3' OR '4' OR '5' WHERE INSPSTARTDATE GE (DT(&QTRBEG_DATE.EVAL)) AND INSPENDDATE LE (DT(&QTREND_DATE.EVAL)); WHERE OPTFIELDID EQ 52 OR 7 OR 10 ON TABLE HOLD AS RDC030A FORMAT ALPHA END -RUN -*---------------------------------------------------------- -* check for 0 records -* -IF &LINES EQ 0 GOTO NO_DATA; -* -* -STEP2 -*GOTO STEP3 -*-------------------------------------------------------------------------------- -* pick up only THE PLATES REMOVED AND CHARGES LAID (insp_opt_field table) -* - the INSP_violation(oos) table joined with the other tables causes multiplicative effect -* - using match to pick up all data in file1 and the matching rec form file2 (join produced only matching rec) -*-------------------------------------------------------------------------------- TABLE FILE INSPECTION PRINT OPTFIELDDATA OPTFIELDID BY INSPID WHERE ((OPTFIELDID GE 36 AND OPTFIELDID LE 50 OR 53) AND (OPTFIELDDATA EQ 'Y' )) OR ((OPTFIELDID EQ 2 OR 11 OR 12 OR 13 OR 5 OR 53) AND (OPTFIELDDATA EQ 'Y' OR 'N')) WHERE INSPLEVEL EQ '1' OR '3' OR '4' OR '5' WHERE INSPSTARTDATE GE (DT(&QTRBEG_DATE.EVAL)) AND INSPENDDATE LE (DT(&QTREND_DATE.EVAL)); ON TABLE HOLD AS RDC030X FORMAT ALPHA END -RUN -* SET ALL=ON MATCH FILE RDC030A SUM XAXLE2 X1AXNUM XAXLEGRP XMOTORCOACH TOTALVIO TOTALOOSVIO TOTALHM XINSPECTORCODE INSPLOCATIONCODE RPTNUM INSPLEVEL STATECENSUSNUM BY INSPID RUN FILE RDC030X PRINT OPTFIELDDATA OPTFIELDID BY INSPID AFTER MATCH HOLD AS RDC030B OLD END -RUN -SKIPVIO DEFINE FILE RDC030B XOOSINSP_CHRGLD/I9C = IF ( TOTALOOSVIO GT 0 ) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID GE 36 AND OPTFIELDID LE 50 ) OR (TOTALOOSVIO GT 0) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 5) THEN 1 ELSE 0; XOOSINSP_PLTRMV/I9C = IF (TOTALOOSVIO NE 0) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 2 OR 11 OR 12 OR 13) THEN 1 ELSE 0; XINSP_CHRGLD/I9C = IF (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID GE 36 AND OPTFIELDID LE 50 ) OR (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 5) THEN 1 ELSE 0; XINSP_PLTRMV/I9C = IF (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 2 OR 11 OR 12 OR 13) THEN 1 ELSE 0; XCNT_OOSINSP/I9C = IF (TOTALOOSVIO GT 0) THEN 1 ELSE 0; -* to ensure grandtotals appear at end XDUMMYSORT/A1 = ' '; END TABLE FILE RDC030B SUM CNT.DST.RPTNUM AS XCNTINSP MAX.XCNT_OOSINSP MAX.TOTALOOSVIO MAX.X1AXNUM XAXLEGRP OPTFIELDID OPTFIELDDATA MAX.XOOSINSP_CHRGLD MAX.XOOSINSP_PLTRMV MAX.XINSP_CHRGLD MAX.XINSP_PLTRMV MAX.XMOTORCOACH MAX.TOTALVIO MAX.TOTALHM XINSPECTORCODE INSPLOCATIONCODE COLUMN-TOTAL BY INSPLEVEL BY XAXLEGRP BY RPTNUM BY INSPID ON TABLE HOLD AS RDC030D END -RUN -*------------------------------------------ -* merge above file with officer names JOIN XINSPECTORCODE IN RDC030D TO INSPCODE IN CERTIFIED_OFFICERS AS JD TABLE FILE RDC030D PRINT XCNTINSP XCNT_OOSINSP X1AXNUM XAXLEGRP XMOTORCOACH TOTALVIO TOTALOOSVIO TOTALHM INSPLOCATIONCODE XOOSINSP_CHRGLD XOOSINSP_PLTRMV XINSP_CHRGLD XINSP_PLTRMV INSPCODE REGION AREA XREGION XDISTRICT COMPUTE XOFFLSTNAME/A150 = LASTNAME || (', '|FRSTNAME ); XOFFNAME/A150 = INSPCODE | (' '|LASTNAME)|| (', '|FRSTNAME ); LASTNAME BY INSPLEVEL BY XAXLEGRP ON TABLE HOLD AS RDC030F END -RUN -*---------------------------------------------------------- -* check for 0 records -* -IF &LINES EQ 0 GOTO NO_DATA; -* -*------------------------------------------ -*----- Final report -*------------------------------------------ DEFINE FILE RDC030F TODATE/MtrDYY = '&MDYY'; XBDATE/I8YYMD = &ADATE1.EVAL ; XBEGDATE/MtRDYY = XBDATE; XEDATE/I8YYMD = &ADATE2.EVAL ; XENDDATE/MtRDYY = XEDATE; XCNT_OOSINSP/I9 = IF (TOTALOOSVIO EQ 0) THEN 0 ELSE 1; XTOTINSPHAZ/I9 = IF TOTALHM EQ 0 THEN 0 ELSE 1; -* to ensure grandtotals appear at end XDUMMYSORT/A1 = ' '; END -* TABLE FILE RDC030F SUM XCNTINSP AS 'No. of ,Inspections' XCNT_OOSINSP AS 'No. OOS,Inspections' -*--------------------------------------------------------- -* ASSUME xpct_oos to be the pct of OOS per total # of inspections -*--------------------------------------------------------- COMPUTE XCNT_INSP/I5 = XCNTINSP; NOPRINT COMPUTE XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNTINSP ) * 100; AS '%,OOS' TOTALOOSVIO AS 'Total OOS,Violations' TOTALVIO AS 'Total ,Violations' XMOTORCOACH AS 'Motor,Coach' XTOTINSPHAZ AS 'Total,Insp.,With,Hazmat' XINSP_CHRGLD AS 'Insp.,with,Charges,laid' XINSP_PLTRMV AS 'Insp.,with,Plates,Removed' XOOSINSP_CHRGLD AS 'OOS Insp.,with,Charges,laid' XOOSINSP_PLTRMV AS 'OOS Insp., with , Plates,Removed' X1AXNUM NOPRINT AREA NOPRINT BY XDUMMYSORT NOPRINT BY XREGION AS 'Region' BY INSPLEVEL AS 'Level' BY XAXLEGRP AS 'Axle,Groups' -* ON XREGION PAGE-BREAK -*ON XDISTRICT PAGE-BREAK -*------------------------------------------------------------------------------------------------------------------------- -* REGION CALCULATIONS REQUIRED -*------------------------------------------------------------------------------------------------------------------------- ON XREGION RECAP XREG_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XREG_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XREG_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XREG_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XREG_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XREG_PCT_XTOTINSPHAZ/P8.2% = ( XTOTINSPHAZ / XCNT_INSP) * 100; XREG_AVG_XOOSVIO/P6.2C = ( TOTALOOSVIO / XCNT_OOSINSP ); XREG_AVG_VIO/P6.2C = ( TOTALVIO / XCNT_INSP ); XREG_AVGAXL/P6.2C = ( X1AXNUM/XCNT_INSP ); ON XREGION SUBFOOT "Total/Percentage: <+0> "<+0> Total Axles Inspected:<+0> Average OOS Violations/ OOS Inspection: <+0>"<+0> Average Axles/Inspection:<+0> Motor Coach:<+0> Average violations/Inspection: <+0>"<+0> Dangerous Goods:<+0> Percent of Inspections with Hazmat:<+0> -*------------------------------------------------------------- -* LEVEL SUBFOOTING CALCULATIONS -* ON INSPLEVEL RECAP XLVL_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XLVL_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XLVL_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; ON INSPLEVEL SUBFOOT "Sub Totals: <+0> -* -*------------------------------------------------------------------------------------------------------------------------- -* Grand totals -*------------------------------------------------------------------------------------------------------------------------- ON XDUMMYSORT RECAP XGRND_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XGRND_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XGRND_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XGRND_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XGRND_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XGRND_PCT_XTOTINSPHAZ/P8.2% = ( XTOTINSPHAZ / XCNT_INSP) * 100; XGRND_AVG_XOOSVIO/P8.2C = ( TOTALOOSVIO / XCNT_OOSINSP ); XGRND_AVG_VIO/P8.2C = ( TOTALVIO / XCNT_INSP ); XGRND_AVGAXL/P8.2C = ( X1AXNUM/XCNT_INSP ); ON XDUMMYSORT SUBFOOT "Provincial Total/Percentage: <+0><+0> "<+0> Total Axles Inspected:<+0> Average OOS Violations/ OOS Inspection: <+0>"<+0> Average Axles/Inspection:<+0> Motor Coach:<+0> Average violations/Inspection: <+0>"<+0> Dangerous Goods:<+0> Percent of Inspections with Hazmat:<+0> HEADING "SafetyNet Inspection System Ontario" "District Workload and Defect Summary" "From "As of " " "Provincial Report" FOOTING BOTTOM "Report ID: rdc020 / User ID: &MTO_USER / Date: &RUN_DATE / Time: &RUN_TIME / <100>Page: <105>-*------------------------------------------------------------- -* record selection -* WHERE XREGION NE 'Non-MTO' -* ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT PDF ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.180556, RIGHTMARGIN=0.180556, TOPMARGIN=0.180556, BOTTOMMARGIN=0.03122, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ TYPE=REPORT, FONT='ARIAL', SIZE=7, COLOR='NAVY', BACKCOLOR='NONE', STYLE=NORMAL, RIGHTGAP=0.125000, TOPGAP=0.013889, $ BOTTOMGAP=0.027778, $ TYPE=DATA, COLUMN=XREGION, SIZE=8, FOCEXEC=app/rdc020a(XREGION = N2 ADATE1='&ADATE1' ADATE2='&ADATE2' ), $ TYPE=TITLE, STYLE=BOLD, $ TYPE=TITLE, COLUMN=N1, SIZE=8, $ TYPE=TABHEADING, SIZE=12, STYLE=BOLD, $ TYPE=TABFOOTING, SIZE=12, STYLE=BOLD, $ TYPE=HEADING, BORDER=LIGHT, BORDER-COLOR='GRAY', SIZE=12, STYLE=BOLD, $ TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, FONT='TIMES NEW ROMAN', SIZE=20, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=2, OBJECT=TEXT, ITEM=1, FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=3, FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=4, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=4, OBJECT=TEXT, ITEM=1, FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=6, STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=7, STYLE=BOLD+ITALIC, $ TYPE=FOOTING, SIZE=7, STYLE=ITALIC, COLOR=GREY, $ TYPE=SUBHEAD, SIZE=10, STYLE=BOLD, $ TYPE=SUBFOOT, SIZE=8, $ TYPE=SUBFOOT, SIZE=8,BY=XDUMMYSORT,BACKCOLOR=RGB(245 245 245), $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N5', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N6', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=3,POSITION='XPCT_OOS', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=4,POSITION='N13', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=5,POSITION='N14', $ TYPE=SUBFOOT, LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=6,POSITION='N15', $ TYPE=SUBFOOT, LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=7,POSITION='N16', $ TYPE=SUBFOOT, LINE=2,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N3', $ TYPE=SUBFOOT, LINE=2,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N5', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, LINE=2,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT,LINE=2,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N15', $ TYPE=SUBFOOT, LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N3', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N5', JUSTIFY=RIGHT, $ $motor coach TYPE=SUBFOOT, LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N9', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N10', $ TYPE=SUBFOOT,LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=3,POSITION='N15', $ TYPE=SUBFOOT,LINE=4,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N9', $ TYPE=SUBFOOT, LINE=4,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N10', $ TYPE=SUBFOOT, LINE=4,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT,LINE=4,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N15', $ TYPE=SUBFOOT, BY=1, BORDER-TOP=OFF, BORDER-BOTTOM=HEAVY, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-BOTTOM-STYLE=DOUBLE, BORDER-BOTTOM-COLOR='GREY', BACKCOLOR=RGB(245 245 245), $ TYPE=SUBFOOT, BY=2, BORDER-TOP=OFF, BORDER-BOTTOM=HEAVY, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-BOTTOM-STYLE=DOUBLE, BORDER-BOTTOM-COLOR='GREY', BACKCOLOR=RGB(245 245 245), $region sort TYPE=SUBFOOT, BY=2, SIZE=8, $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=2,POSITION='N5', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=3,POSITION='N6', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=4,POSITION='N8', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=5,POSITION='N12', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=6,POSITION='N13', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=7,POSITION='N14', $ TYPE=SUBFOOT, BY=2, LINE=1,OBJECT=FIELD, ITEM=8,POSITION='N15', $ TYPE=SUBFOOT, BY=2, LINE=2,OBJECT=TEXT, ITEM=1,POSITION='N3', $ TYPE=SUBFOOT, BY=2, LINE=2,OBJECT=FIELD, ITEM=1,POSITION='N5', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, BY=2, LINE=2,OBJECT=TEXT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT, BY=2, LINE=2,OBJECT=FIELD, ITEM=2,POSITION='N15', $ TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=TEXT, ITEM=1,POSITION='N3', $ TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=FIELD, ITEM=1,POSITION='N5', $ $motor coach TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=TEXT, ITEM=4,POSITION= 'N9', $ TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=FIELD, ITEM=2,POSITION='N10', $ TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=TEXT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT, BY=2, LINE=3,OBJECT=FIELD, ITEM=3,POSITION='N15', $ TYPE=SUBFOOT, BY=2, LINE=4,OBJECT=TEXT, ITEM=1,POSITION='N9', $ TYPE=SUBFOOT, BY=2, LINE=4,OBJECT=FIELD, ITEM=1,POSITION='N10', $ TYPE=SUBFOOT, BY=2, LINE=4,OBJECT=TEXT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT, BY=2, LINE=4,OBJECT=FIELD, ITEM=2,POSITION='N15', $ $INSPECTION LEVEL TYPE=SUBFOOT, BY=3, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-COLOR=RGB(153 153 153), SIZE=7, $ $LEVEL TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=1, POSITION='N3', $count TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=2, POSITION='N5', $ TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=3, POSITION='N6', $OOS % TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=4, POSITION='XPCT_OOS', $ PLT RMVD $CHRG LD TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=5, POSITION=XINSP_CHRGLD, $ PLT RMVD TYPE=SUBFOOT, BY=3, LINE=1, OBJECT=FIELD, ITEM=6, POSITION=XINSP_PLTRMV, $ TYPE=SUBTOTAL, BACKCOLOR=RGB(210 210 210), $ TYPE=GRANDTOTAL, BACKCOLOR=RGB(210 210 210), STYLE=BOLD, $ ENDSTYLE END -RUN -ALLDONE -EXIT -END_NODATA -TYPE ********** NO DATA FOR FOR QUARTER ************* -EXIT YPE=SUBTOTAL, BACKCOLOR=RGB(210 210 210), $ TYPE=GRANDTOTAL, BACKCOLOR=RGB(210 210 210), STYLE=BOLD, $ ENDSTYLE END -RUN -ALLDONE -EXIT -END_NODATA -TYPE ********** NO DATA FOR FOR QUARTER ************* -EXIT CT, SIZE=8, $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=2,POSITION='N8', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=3,POSITION='N9', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=4,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=5,POSITION='N16', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=6,POSITION='N17', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=7,POSITION='N18', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=8,POSITION='N19', $-------------- TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=FIELD, ITEM=1,POSITION='N8', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=TEXT, ITEM=3,POSITION='N12', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=FIELD, ITEM=2,POSITION='N16', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=1,POSITION='N8', $ $motor coach TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=4,POSITION='N9', JUSTIFY=RIGHT, $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=2,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=3,POSITION='N16', $DANGEROUS GOODS TYPE=SUBFOOT,BY=XDISTRICT, LINE=4,OBJECT=TEXT, ITEM=1,POSITION='N9', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=4,OBJECT=FIELD, ITEM=1,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=4,OBJECT=TEXT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=4,OBJECT=FIELD, ITEM=2,POSITION='N16', $ $ $badge no sort =3 TYPE=SUBFOOT, BY=XOFFNAME, SIZE = 7, BORDER-BOTTOM=MEDIUM, BORDER-BOTTOM-STYLE=DOUBLE, BORDER-BOTTOM-COLOR=GREY, $no of inspections TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=2,POSITION='N8', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=3,POSITION='N9', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=4, POSITION=XPCT_OOS, $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=5,POSITION='N13', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=6,POSITION='N14', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2, OBJECT=FIELD, ITEM=7, POSITION='N16', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2, OBJECT=FIELD, ITEM=8,POSITION='N17', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=9,POSITION='N18', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=2,OBJECT=FIELD, ITEM=10,POSITION='N19', $ TYPE=SUBFOOT,BY=XOFFNAME, LINE=3,OBJECT=TEXT, ITEM=1,POSITION='N6', JUSTIFY=RIGHT, $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=3,OBJECT=FIELD, ITEM=1,POSITION='N8', $ TYPE=SUBFOOT, BY=XOFFNAME, LINE=4,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, BY=XOFFNAMEE, LINE=4,OBJECT=FIELD, ITEM=1,POSITION='N8', JUSTIFY=RIGHT, $ $INSPECTION LEVEL TYPE=SUBFOOT, BY=INSPLEVEL, BORDER-TOP=LIGHT, BORDER-BOTTOM=LIGHT, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-COLOR=GREY, SIZE=7, BACKCOLOR=RGB(245 245 245), $NAME TYPE=SUBFOOT, BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=1,POSITION='N5', JUSTIFY =RIGHT, $LEVEL TYPE=SUBFOOT,BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=2, POSITION='N6', $ CNT INSP TYPE=SUBFOOT, BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=3, POSITION='N8', $ TYPE=SUBFOOT, BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=4, POSITION=N9, $ TYPE=SUBFOOT, BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=5, POSITION=XPCT_OOS, $ ooS CHRG LD TYPE=SUBFOOT,BY=INSPLEVEL, LINE=1, OBJECT=FIELD, ITEM=6, POSITION='N16', $OOS PLT RMVD TYPE=SUBFOOT, BY=INSPLEVEL,LINE=1, OBJECT=FIELD, ITEM=7, POSITION='N17', $ $ GRAND TOTAL TYPE=SUBFOOT, BY=XDUMMYSORT, BORDER-TOP=OFF, BORDER-BOTTOM=HEAVY, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-BOTTOM-STYLE=DOUBLE, BORDER-BOTTOM-COLOR='GREY', BACKCOLOR=RGB(245 245 245), $region sort TYPE=SUBFOOT, SIZE=8,BY=XDUMMYSORT, $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N8', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N9', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=3,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=4,POSITION='N16', $ TYPE=SUBFOOT,LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=5,POSITION='N17', $ TYPE=SUBFOOT, LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=6,POSITION='N18', $ TYPE=SUBFOOT, LINE=1,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=7,POSITION='N19', $ TYPE=SUBFOOT, LINE=2,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, LINE=2,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N8', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, LINE=2,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT,LINE=2,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N16', $ TYPE=SUBFOOT, LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='N8', JUSTIFY=RIGHT, $ $motor coach TYPE=SUBFOOT, LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N9', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,LINE=3,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT, LINE=3,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=3,POSITION='N16', $ TYPE=SUBFOOT,LINE=4,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=1,POSITION='N9', $ TYPE=SUBFOOT, LINE=4,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=1,POSITION='XPCT_OOS', $ TYPE=SUBFOOT, LINE=4,OBJECT=TEXT,BY=XDUMMYSORT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT,LINE=4,OBJECT=FIELD,BY=XDUMMYSORT, ITEM=2,POSITION='N16', $ $ ENDSTYLE END -RUN -IF &LINES GT 0 GOTO REPORT_END; -* -NO_DATA -MRNOEDIT -INCLUDE MISI200 -* -REPORT_END
-*------------------------------------------------------------------------------ -* Client : Ontario - Ministry of Transportation -* Project : Road Side Data Capture -* Application : District Workload and Defect Summary r Report -* Module : rdc020a.fex -* Description : drill from rdc020.fex based on xregion -* Called By : WebFOCUS Business Intelligence Dashboard -* Date Developed: January 2005 -* Developed by : Tamra Colangelo, Information Builders -*------------------------------------------------------------------------------ -* Maintenance History -*------------------------------------------------------------------------------ -* Modified by : -* Date Modified: -* Reason : -* Mod. ID : -*------------------------------------------------------------------------------ -STEP0 SET LINES=9999 SET PAPER=9999 SET SPACES = 1 SET ASNAMES= ON -SET &RUN_DATE = &DATEMtrDYY; -SET &RUN_TIME = EDIT(HHMMSS('A8'),'99$:99$:99'); -*QUARTERS -DEFAULT &ADATE1 = '20050101'; -DEFAULT &ADATE2 = '20050131'; -SET &ADATETIME1 = &ADATE1 | ' 00:00:00'; -SET &ADATETIME2 = &ADATE2 | ' 23:59:59'; -SET &ADATE1TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE1, 'A17'), 'A17'); -SET &ADATE2TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE2, 'A17'), 'A17'); -SET &QTRBEG_DATE = &ADATE1 | ' 00:00:00'; -SET &QTREND_DATE = &ADATE2 | ' 23:59:59'; -****SET &QTRBEG_DATE = LCWORD(17,CHGDAT('YYMD', 'YYMD', &ADATE1, 'A17'), 'A17'); -****SET &QTREND_DATE = LCWORD(17,CHGDAT('YYMD', 'YYMD', &ADATE2, 'A17'), 'A17'); -* -STEP1 -* -*-------------------------------------------------------------------------------- -* set up AXLE GROUPING + MOTORCOACH + -* set up other counts for report -* pickup all corresponding rec form inspectin and opt_field tables -*-------------------------------------------------------------------------------- -AAA SET ALL=ON JOIN CLEAR * JOIN INSPID IN INSPECTION TO ALL INSPID IN INSP_OPT_FIELD AS J1 DEFINE FILE INSPECTION XVEHTYPE/A4 = IF INSPID EQ LAST INSPID THEN EDIT(OPTFIELDDATA,'9999') ELSE ' '; XAXLE1/I5C = POSIT(OPTFIELDDATA,30,'=',2,'I2') ; XAXLE2/A5 = IF INSPID EQ LAST INSPID THEN XAXLE2 ELSE SUBSTR(30,OPTFIELDDATA,XAXLE1,XAXLE1+2,4,XAXLE2); XAXNUM/A2 = IF INSPID EQ LAST INSPID THEN XAXNUM ELSE GETTOK(OPTFIELDDATA,30,-1,'=',2,XAXNUM); X1AXNUM/I9C = EDIT(XAXNUM); XAXLEGRP/A8 = IF XAXNUM EQ '2' AND XVEHTYPE EQ 'MC' OR 'VN' OR 'SP' OR 'PD' OR 'SB' OR 'BU' OR 'MT' THEN '02-BUS' ELSE DECODE XAXNUM('2' '2' '3' '3-4' '4' '3-4' '5' '5-7' '6' '5-7' '7' '5-7' ELSE '8+'); XMOTORCOACH/I9 = IF XVEHTYPE EQ 'MC' THEN 1 ELSE 0; END TABLE FILE INSPECTION SUM MAX.STATECENSUSNUM MAX.OPTFIELDDATA MAX.OPTFIELDID MAX.XAXLE1 MAX.XAXLE2 MAX.XAXNUM MAX.X1AXNUM MAX.XAXLEGRP MAX.XMOTORCOACH MAX.TOTALVIO MAX.TOTALOOSVIO MAX.TOTALHM MAX.INSPLOCATIONCODE COMPUTE -* to match with certifeid officers table later the 2 fields must be same format XINSPECTORCODE/A8 = INSPECTORCODE; BY INSPLEVEL BY INSPID BY RPTNUM WHERE INSPLEVEL EQ '1' OR '3' OR '4' OR '5' WHERE INSPSTARTDATE GE (DT(&QTRBEG_DATE.EVAL)) AND INSPENDDATE LE (DT(&QTREND_DATE.EVAL)); WHERE OPTFIELDID EQ 52 OR 7 OR 10 ON TABLE HOLD AS RDC030A FORMAT ALPHA END -*EXIT -RUN -*---------------------------------------------------------- -* check for 0 records -* -IF &LINES EQ 0 GOTO NO_DATA; -* -* -STEP2 -*-------------------------------------------------------------------------------- -* pick up only THE PLATES REMOVED AND CHARGES LAID (insp_opt_field table) -* - the INSP_violation(oos) table joined with the other tables causes multiplicative effect -* - using match to pick up all data in file1 and the matching rec form file2 (join produced only matching rec) -*-------------------------------------------------------------------------------- TABLE FILE INSPECTION PRINT OPTFIELDDATA OPTFIELDID BY INSPID WHERE ((OPTFIELDID GE 36 AND OPTFIELDID LE 50 OR 53) AND (OPTFIELDDATA EQ 'Y' )) OR ((OPTFIELDID EQ 2 OR 11 OR 12 OR 13 OR 5 OR 53) AND (OPTFIELDDATA EQ 'Y' OR 'N')) WHERE INSPLEVEL EQ '1' OR '3' OR '4' OR '5' WHERE INSPSTARTDATE GE (DT(&QTRBEG_DATE.EVAL)) AND INSPENDDATE LE (DT(&QTREND_DATE.EVAL)); ON TABLE HOLD AS RDC030X FORMAT ALPHA END -RUN -* SET ALL=ON MATCH FILE RDC030A SUM XAXLE2 X1AXNUM XAXLEGRP XMOTORCOACH TOTALVIO TOTALOOSVIO TOTALHM XINSPECTORCODE INSPLOCATIONCODE RPTNUM INSPLEVEL STATECENSUSNUM BY INSPID RUN FILE RDC030X PRINT OPTFIELDDATA OPTFIELDID BY INSPID AFTER MATCH HOLD AS RDC030B OLD END -RUN DEFINE FILE RDC030B XOOSINSP_CHRGLD/I9C = IF ( TOTALOOSVIO GT 0 ) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID GE 36 AND OPTFIELDID LE 50 ) OR (TOTALOOSVIO GT 0) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 5) THEN 1 ELSE 0; XOOSINSP_PLTRMV/I9C = IF (TOTALOOSVIO NE 0) AND (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 2 OR 11 OR 12 OR 13) THEN 1 ELSE 0; XINSP_CHRGLD/I9C = IF (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID GE 36 AND OPTFIELDID LE 50 ) OR (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 5) THEN 1 ELSE 0; XINSP_PLTRMV/I9C = IF (OPTFIELDDATA EQ 'Y') AND (OPTFIELDID EQ 2 OR 11 OR 12 OR 13) THEN 1 ELSE 0; XCNT_OOSINSP/I9C = IF (TOTALOOSVIO GT 0) THEN 1 ELSE 0; -* to ensure grandtotals appear at end XDUMMYSORT/A1 = ' '; END TABLE FILE RDC030B SUM CNT.DST.RPTNUM AS XCNTINSP MAX.XCNT_OOSINSP MAX.TOTALOOSVIO MAX.X1AXNUM XAXLEGRP OPTFIELDID OPTFIELDDATA MAX.XOOSINSP_CHRGLD MAX.XOOSINSP_PLTRMV MAX.XINSP_CHRGLD MAX.XINSP_PLTRMV MAX.XMOTORCOACH MAX.TOTALVIO MAX.TOTALHM XINSPECTORCODE INSPLOCATIONCODE COLUMN-TOTAL BY INSPLEVEL BY XAXLEGRP BY RPTNUM BY INSPID ON TABLE HOLD AS RDC030D END -RUN -*------------------------------------------ -* merge above file with officer names JOIN XINSPECTORCODE IN RDC030D TO INSPCODE IN CERTIFIED_OFFICERS AS JD TABLE FILE RDC030D PRINT XCNTINSP XCNT_OOSINSP X1AXNUM XAXLEGRP XMOTORCOACH TOTALVIO TOTALOOSVIO TOTALHM INSPLOCATIONCODE XOOSINSP_CHRGLD XOOSINSP_PLTRMV XINSP_CHRGLD XINSP_PLTRMV INSPCODE REGION AREA XREGION XDISTRICT COMPUTE XOFFLSTNAME/A150 = LASTNAME || (', '|FRSTNAME ); XOFFNAME/A150 = INSPCODE | (' '|LASTNAME)|| (', '|FRSTNAME ); LASTNAME BY INSPLEVEL BY XAXLEGRP ON TABLE HOLD AS RDC030F END -RUN -*------------------------------------------ -*----- Final report -*------------------------------------------ DEFINE FILE RDC030F XBDATE/I8YYMD = &ADATE1.EVAL ; XBEGDATE/MtRDYY = XBDATE; XEDATE/I8YYMD = &ADATE2.EVAL ; XENDDATE/MtRDYY = XEDATE; XCNT_OOSINSP/I9C = IF (TOTALOOSVIO EQ 0) THEN 0 ELSE 1; XTOTINSPHAZ/I9C = IF TOTALHM EQ 0 THEN 0 ELSE 1; -* to ensure grandtotals appear at end XDUMMYSORT/A1 = ' '; END TABLE FILE RDC030F SUM XCNTINSP AS 'No. of ,Inspections' XCNT_OOSINSP AS 'No. OOS,Inspections' -*--------------------------------------------------------- -* ASSUME xpct_oos to be the pct of OOS per total # of inspections -*--------------------------------------------------------- COMPUTE XCNT_INSP/I6C = XCNTINSP; NOPRINT COMPUTE XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNTINSP ) * 100; AS '%,OOS' TOTALOOSVIO AS 'Total OOS,Violations' TOTALVIO AS 'Total ,Violations' XMOTORCOACH AS 'Motor,Coach' XTOTINSPHAZ AS 'Total,Insp.,With,Hazmat' XINSP_CHRGLD AS 'Insp.,with,Charges,laid' XINSP_PLTRMV AS 'Insp.,with,Plates,Removed' XOOSINSP_CHRGLD AS 'OOS Insp.,with,Charges,laid' XOOSINSP_PLTRMV AS 'OOS Insp., with , Plates,Removed' X1AXNUM NOPRINT BY XDUMMYSORT NOPRINT BY XREGION NOPRINT BY XDISTRICT NOPRINT BY LASTNAME NOPRINT BY XOFFNAME AS 'Badge,No Name ' BY INSPLEVEL AS 'Level' BY XAXLEGRP AS 'Axle,Groups' ON XDISTRICT PAGE-BREAK -*------------------------------------------------------------------------------------------------------------------------- -* REGION CALCULATIONS REQUIRED -*------------------------------------------------------------------------------------------------------------------------- ON XREGION RECAP XREG_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XREG_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XREG_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XREG_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XREG_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XREG_PCT_XTOTINSPHAZ/P8.2% = ( XTOTINSPHAZ / XCNT_INSP) * 100; XREG_AVG_XOOSVIO/P6.2C = ( TOTALOOSVIO / XCNT_OOSINSP ); XREG_AVG_VIO/P6.2C = ( TOTALVIO / XCNT_INSP ); XREG_AVGAXL/P6.2C = ( X1AXNUM/XCNT_INSP ); ON XREGION SUBFOOT "Total/Percentage: <+0> "<+0> Total Axles Inspected:<+0> Average OOS Violations/ OOS Inspection: <+0>"<+0> Average Axles/Inspection:<+0> Motor Coach:<+0> Average violations/Inspection: <+0>"<+0> Dangerous Goods:<+0> Percent of Inspections with Hazmat:<+0> -*------------------------------------------------------------------------------------------------------------------------- -* DISTRICT SUBFOOTING CALCULATIONS -* ON XDISTRICT RECAP XDIST_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XDIST_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XDIST_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XDIST_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XDIST_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XDIST_PCT_XTOTINSPHAZ/P8.2% = ( XTOTINSPHAZ / XCNT_INSP ) * 100; XDIST_AVG_XOOSVIO/P6.2 = (TOTALOOSVIO / XCNT_OOSINSP) ; XDIST_AVG_VIO/P6.2C = (TOTALVIO / XCNT_INSP ) ; XDIST_AVGAXL/P6.2C = (X1AXNUM/XCNT_INSP); ON XDISTRICT SUBFOOT "Total/Percentage: <+0> "<+0> Total Axles Inspected: <+0> <+0> Average OOS Violations/ OOS Inspection:<+0>"<+0> Average Axles/Inspection:<+0> Motor Coach:<+0> Average violations/Inspection: <+0>"<+0> Dangerous Goods:<+0> Percent of Inspections with Hazmat: <+0>-*------------------------------------------------------------------------------------------------------------------------- -* INSPECTOR SUBFOOTING CALCULATIONS -* ON XOFFNAME RECAP XCHRGLD/I9 = XINSP_CHRGLD; XINSP_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XINSP_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP) * 100; XINSP_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XINSP_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XINSP_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XINSP_AVGAXL/P8.2C = (X1AXNUM/XCNT_INSP); ON XOFFNAME SUBFOOT " " "Total/Percentage: <+0>"<20 Total Axles Inspected : <+3>"<20 Average Axles/Inspected: <+3>" " -*------------------------------------------------------------- -* LEVEL SUBFOOTING CALCULATIONS -* ON INSPLEVEL RECAP XLVL_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XLVL_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XLVL_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; ON INSPLEVEL SUBFOOT "Sub Totals <+0> -* -*------------------------------------------------------------------------------------------------------------------------- -* Grand totals -*------------------------------------------------------------------------------------------------------------------------- ON XDUMMYSORT RECAP XGRND_XPCT_OOS/P8.2% = ( XCNT_OOSINSP / XCNT_INSP ) * 100; XGRND_PCT_CHRGLD/P8.2% = ( XINSP_CHRGLD / XCNT_INSP ) * 100; XGRND_PCT_PLTRMV/P8.2% = ( XINSP_PLTRMV / XCNT_INSP ) * 100; XGRND_PCT_XOOSCHRGLD/P8.2% = ( XOOSINSP_CHRGLD / XCNT_OOSINSP ) * 100; XGRND_PCT_XOOSPLTRMV/P8.2% = ( XOOSINSP_PLTRMV / XCNT_OOSINSP ) * 100; XGRND_PCT_XTOTINSPHAZ/P8.2% = ( XTOTINSPHAZ / XCNT_INSP) * 100; XGRND_AVG_XOOSVIO/P8.2C = ( TOTALOOSVIO / XCNT_OOSINSP ); XGRND_AVG_VIO/P8.2C = ( TOTALVIO / XCNT_INSP ); XGRND_AVGAXL/P8.2C = ( X1AXNUM/XCNT_INSP ); ON XDUMMYSORT SUBFOOT "Provincial Total/Percentage: <+0><+0> "<+0> Total Axles Inspected:<+0> Average OOS Violations/ OOS Inspection: <+0>"<+0> Average Axles/Inspection:<+0> Motor Coach:<+0> Average violations/Inspection: <+0>"<+0> Dangerous Goods:<+0> Percent of Inspections with Hazmat:<+0> HEADING "SafetyNet Inspection System Ontario" "District Workload and Defect Summary" "From " " "Region: <+0>"District: <+0>FOOTING BOTTOM "Report ID: rdc020 / User ID: &MTO_USER / Date: &RUN_DATE / Time: &RUN_TIME <100>Page: <105>-*------------------------------------------------------------- -* SELECTION CRITERIA -* WHERE XREGION EQ '&XREGION' -* ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE SET ONLINE-FMT PDF ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.180556, RIGHTMARGIN=0.180556, TOPMARGIN=0.180556, BOTTOMMARGIN=0.00122, SQUEEZE=ON, ORIENTATION=LANDSCAPE, $ TYPE=REPORT, FONT='ARIAL', SIZE=7, COLOR='NAVY', BACKCOLOR='NONE',STYLE=NORMAL, RIGHTGAP=0.125000, TOPGAP=0.013889, $ BOTTOMGAP=0.027778, $ TYPE=DATA, COLUMN=N1,SIZE=8, $ TYPE=TITLE,STYLE=BOLD, $ TYPE=TITLE,COLUMN=N1, SIZE=8, $ TYPE=TABHEADING, SIZE=12, STYLE=BOLD, $ TYPE=HEADING, BORDER=LIGHT, BORDER-COLOR='GRAY', SIZE=12,STYLE=BOLD, $ TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, FONT='TIMES NEW ROMAN', SIZE=20, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=2,OBJECT=TEXT, ITEM=1, FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=3,FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, JUSTIFY=CENTER, $ TYPE=HEADING, LINE=4,JUSTIFY=CENTER, $ TYPE=HEADING, LINE=4,OBJECT=TEXT, ITEM=1, FONT='ARIAL', SIZE=11, COLOR=RGB(0 0 129), STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=5,STYLE=BOLD+ITALIC, $ TYPE=HEADING, LINE=6,STYLE=BOLD+ITALIC, $ TYPE=FOOTING, LINE=1, SIZE=6, STYLE=ITALIC, COLOR=GREY, $ TYPE=SUBHEAD, SIZE=10, STYLE=BOLD, $ TYPE=SUBFOOT, SIZE=8, $ TYPE=SUBFOOT, BY=XREGION, BORDER-TOP=MEDIUM, BORDER-BOTTOM=HEAVY, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-BOTTOM-STYLE=DOUBLE, BORDER-BOTTOM-COLOR='GREY', BACKCOLOR=RGB(245 245 245), $region sort TYPE=SUBFOOT,BY=XREGION, SIZE=8, $ TYPE=SUBFOOT, BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=2,POSITION='N8', $ TYPE=SUBFOOT,BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=3,POSITION='N9', JUSTIFY=RIGHT, $ TYPE=SUBFOOT, BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=4,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=5,POSITION='N16', $ TYPE=SUBFOOT, BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=6,POSITION='N17', $ TYPE=SUBFOOT, BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=7,POSITION='N18', $ TYPE=SUBFOOT,BY=XREGION, LINE=1,OBJECT=FIELD, ITEM=8,POSITION='N19', $ TYPE=SUBFOOT,BY=XREGION, LINE=2,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT,BY=XREGION, LINE=2,OBJECT=FIELD, ITEM=1,POSITION='N8', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, BY=XREGION, LINE=2,OBJECT=TEXT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT, BY=XREGION, LINE=2,OBJECT=FIELD, ITEM=2,POSITION='N16', $ TYPE=SUBFOOT,BY=XREGION, LINE=3,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT,BY=XREGION, LINE=3,OBJECT=FIELD, ITEM=1,POSITION='N8', JUSTIFY=RIGHT, $ $motor coach TYPE=SUBFOOT, BY=XREGION, LINE=3,OBJECT=TEXT, ITEM=4,POSITION='N9', $ TYPE=SUBFOOT, BY=XREGION, LINE=3,OBJECT=FIELD, ITEM=2,POSITION=XPCT_OOS, $ TYPE=SUBFOOT, BY=XREGION, LINE=3,OBJECT=TEXT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT,BY=XREGION, LINE=3,OBJECT=FIELD, ITEM=3,POSITION='N16', $ TYPE=SUBFOOT, BY=XREGION, LINE=4,OBJECT=TEXT, ITEM=1,POSITION='N9', $ TYPE=SUBFOOT, BY=XREGION, LINE=4,OBJECT=FIELD, ITEM=1,POSITION=XPCT_OOS, $ TYPE=SUBFOOT, BY=XREGION, LINE=4,OBJECT=TEXT, ITEM=4,POSITION='N12', $ TYPE=SUBFOOT,BY=XREGION, LINE=4,OBJECT=FIELD, ITEM=2,POSITION='N16', $ TYPE=SUBFOOT, BY=XDISTRICT, SIZE=7, BORDER-TOP=MEDIUM, BORDER-LEFT=OFF, BORDER-RIGHT=OFF, BORDER-COLOR=GREY, BACKCOLOR=RGB(245 245 245), $ $district sort TYPE=SUBFOOT, BY=XDISTRICT, SIZE=8, $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=2,POSITION='N8', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=3,POSITION='N9', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=4,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=5,POSITION='N16', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=6,POSITION='N17', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=7,POSITION='N18', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=1,OBJECT=FIELD, ITEM=8,POSITION='N19', $-------------- TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=FIELD, ITEM=1,POSITION='N8', $ $average OOS violations/OOS inspections TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=TEXT, ITEM=3,POSITION='N12', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=2,OBJECT=FIELD, ITEM=2,POSITION='N16', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=1,POSITION='N6', $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=1,POSITION='N8', $ $motor coach TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=4,POSITION='N9', JUSTIFY=RIGHT, $ TYPE=SUBFOOT, BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=2,POSITION=XPCT_OOS, $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=TEXT, ITEM=6,POSITION='N12', $ TYPE=SUBFOOT,BY=XDISTRICT, LINE=3,OBJECT=FIELD, ITEM=3,POSITION='N16', $DANGE
Adrian, I don't have MRE here so I can't simulate opening a 5.3.2 html page in 7.6.5, but I wonder if the problem is with the syntax of the html, in the following lines the values are not in double-quotes - that could be the problem:
<INPUT type=hidden value=rdclikv6/rdclikv6.htm name ="IBIMR_domain">
<INPUT type=hidden value=MR_RUN_FEX name ="IBIMR_action">
<INPUT type=hidden value=MR_STD_REPORT name ="IBIMR_sub_action">
<INPUT type=hidden value=app/rdc020.fex name ="IBIMR_fex">
<INPUT type=hidden value=app/rdc020.fex name ="IBIF_ex">
<INPUT type=hidden value=#rdcqs8brb713 name ="IBIMR_folder">
<INPUT type=hidden value=17:09:38 name ="IBIMR_random">
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
Between your two releases there were quite a few changes to the way that the onload scripts run. Looking at your code it can easily be seen that it's from 5.3 because the ibirls reference is not suffixed with a 2 - ibirls2. This module (appeared in 7.n) does a lot of the processing and is backward compatible (or should be!) - I occasionally slip back to ibirls because of functionality that I do not require.
Another thing of note from your code is that is has been stripped of a fair amount as there are a few modules that I would expect to be in there. You also obviously use your own calendar functions as well and therefore I would suggest that your code is not straight layout painter.
If you have the option just use the version from 5.3.2 and see how you go - it should function OK without modification, most if not all of mine do.
AS for the error, have you converted / moved all of your MRE folders and have you checked that the HTML references are still the same (go to MRE in DS and right click the domain, slect properties then do the same for the sub folders).
T
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
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Hi, Yes, I put in double quotes for the value= parms but it didn't work. Gave the same error message in the TEST environment. Then I checked all the domain and folder references and they look correct. The html and fex work fine in the DEV environment even last Fri. Even the drill downs work on the pdf doc. I will keep checking to see what I am missing. Thank you.
Hi Francis, Actually, that's what I did. Because when I tried to use the fex code to generate the html I couldn't do it. Even when I used the "Edit in Associated tool" it still came up with the Report Painter Tool. Thus, I right clicked and created a new html. Then in the body I could insert the old html code (a line in the body said so so that's what I did) and that's how I came up with the new html code. That is the code that keeps telling me it couldn't find the IBIMR_folder value but it is there, value is corect and referenced correctly. The someone came along and used a -TYPE IBIMR_folder at the beginning of the html code and I ran the code after exiting and it couldn't find the value of the folder as well. There are no error messages at all about not being able to find any javascripts so I assume the javascripts are fine. I checked the existence of the javascripts and they are there. Will try other ideas. Thank you.
Adrian, I'm suggesting actually rebuilding from scratch - not copy-pasting from the old version. As Tony mentions, he doesn't see certain lines he was expecting to in the old code - perhaps some code was removed but is required in the new version.
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
Hi Francis, I created the html from scratch in the Html Layout Painter. One big difference is that the old html uses a FORM and I don't. I was told in a course that we should avoid using it. However, I need a lot of javascripts to customize it. For e.g. the Calendar date control type that I use only lets me use a date in YYMD format. The old html page uses drop down lists for each of the Month, Day and Year fields. Do you know where I can find some javascripts that I can put into my V766 Html? BTW here is the new V766 html code. Thanks.
I have never used Layout Painter to generate the HTML page, not have I created an HTML launch page without a form, so I'm sorry I can't be of much help.
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
I only suggested the cgi possibility, since we are going through that, I didn't look through te volumes of code.
You said you had been warned off HTML forms, but perhaps that was Frames, not Forms. Frames are deprecated, but forms are necessary for any interactivity as they contain the controls and hidden variables that WF uses.
<INPUT type=hidden value=rdclikv6/rdclikv6.htm name ="IBIMR_domain">
<INPUT type=hidden value=MR_RUN_FEX name ="IBIMR_action">
<INPUT type=hidden value=MR_STD_REPORT name ="IBIMR_sub_action">
<INPUT type=hidden value=app/rdc020.fex name ="IBIMR_fex">
<INPUT type=hidden value=app/rdc020.fex name ="IBIF_ex">
<INPUT type=hidden value=#rdcqs8brb713 name ="IBIMR_folder">
<INPUT type=hidden value=17:09:38 name ="IBIMR_random">
Adrian,
I see that you code is enhanced with various local JS modules and a css link, so I guess that you have edited via the code tab as well?
In the above quoted code I would expect to see ID as well as NAME attributes. Try adding them to each line using the same value as for the NAME attribute and see if that is your problem.