I'm having a problem that there must be a way to solve but I cannot figure it out. I'm doing a simple request: SUM, BY, ACROSS, as follows:
TABLE FILE MASTERFILE SUM CNT.ACCT BY TRAN_CODE ACROSS MONTH END
The output looks basically like a spreadsheet, with tran codes going down the side and the months across the top with the actual numbers populating the rows and columns. I want to be able to drill down into the report and see the details of each each tran code and month. For example, if the summary report says that 5 transaction with a code of 0001 occurred in Jan, I want to be able to click on the 5 and get the detail in another report. I can pass the appropriate tran code as a parameter but am having trouble passing the month. How can I make this work?!
Yes I am using ACROSSCOLUMN but it seems to be passing a blank value to the report...
Stephen A
April 18, 2007, 02:57 PM
Alan B
Stephen
Just tried it with:
TABLE FILE CAR
SUM CNT.LENGTH
BY SEATS
ACROSS COUNTRY
.
.
TYPE=DATA,
ACROSSCOLUMN=N1,
FOCEXEC=fexname(COUNTRY=A1 SEATS=N1),
$
.
.
and that seems fine.
Can you have a look at the 'view source' and confirm that you have something like: ..&IBIF_ex=fexname&CLICKED_ON=&MONTH=01&TRAN_CODE=0001... to check if the URL is formed correctly.This message has been edited. Last edited by: Alan B,
Alan. WF 7.705/8.007
April 18, 2007, 03:00 PM
Francis Mariani
TABLE FILE CAR SUM CNT.SALES ACROSS COUNTRY BY SEATS ON TABLE SET STYLE * TYPE=DATA, ACROSSCOLUMN=CNT.SALES,FOCEXEC=XTEST1(XSEATS=SEATS XCOUNTRY=COUNTRY ), $ ENDSTYLE END
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
April 18, 2007, 03:50 PM
saltrogge
Something goofy is going on with this. When I look at the source behind the report it doesn't seem to be passing the month correctly. This is what it looks like:
Make sure you are referencing the correct BY and ACROSS fields.
One FOCUS quirk: if you specify an incomplete field-name (the first few characters of the field-name, e.g. SEA for SEATS, FOCUS will use the first field in the file that matches SEA, so, if you have SEATS_ONE and SEATS_TWO, it will use SEATS_ONE - verify that the field name MONTH in the style-sheet drill-down is the correct one.
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
April 18, 2007, 04:07 PM
Alan B
quote:
ex=IMPTXDET&CLICKED_ON=&MONTH=&TC=0014®=015
Something is at the back of my mind here to do with quotes in the values that the drill down is picking up. Won't be able to follow up as out for a few days.
Alan. WF 7.705/8.007
April 18, 2007, 04:31 PM
saltrogge
Here's a little more detail on this situation. I am joining together two FOCUS database files, the REGION field is in the from file, the TC field is in the to file, and the month field is a defined field based on a field on the to file. Any thoughts?
Stephen
April 18, 2007, 04:36 PM
Francis Mariani
That should be OK. Is the fex too long to post here?
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
April 19, 2007, 08:54 AM
saltrogge
Here's the fex:
-* File imsumam.fex JOIN IMSUMAMH.SEG01.ACCT IN IMSUMAMH TO MULTIPLE IMSUMATH.SEG01.ACCT IN IMSUMATH AS J0 END SET COUNTWIDTH=ON SET WEBVIEWER=ON -DEFAULT &LAD=01012007; -DEFAULT &EOD=03302007; -DEFAULT &FILEDATE=03302007; DEFINE FILE IMSUMAMH LAD/MDYY=&LAD; FILEDATE/MDYY=&FILEDATE; EOD/MDYY=&EOD; TC_MONTH/M=DTPOST; END TABLE FILE IMSUMAMH SUM 'CNT.IMSUMATH.SEG01.TC' AS '' BY 'IMSUMAMH.SEG01.REGION' BY 'IMSUMATH.SEG01.TC' AS 'TC' ACROSS 'IMSUMATH.SEG01.TC_MONTH' AS '' ON IMSUMAMH.SEG01.REGION SUBTOTAL AS '*TOTAL REGION' ON IMSUMAMH.SEG01.REGION PAGE-BREAK ON TABLE PAGE-BREAK AND SUBHEAD "Department: First Commonwealth Audit Department" "Application: IMPACS" "Report Name: &FOCFOCEXEC " "Run Date: <+0> <+0> <+0>&DATEMDYY <+0> " "Pages: " " "Report Purpose: This report summarizes all IMPACS transactions between " " "Options Used:" " Filedate: " Last Audit Dt: " End Audit Dt: " " HEADING "First Commonwealth Audit Department - &FOCFOCEXEC" "Page " " FOOTING " " "Scope: All IMPACS transactions between LAD and EOD, all status included" "Sort: By Region, by TC, across Month" "Comments: See lead page" ON TABLE PAGE-BREAK AND SUBFOOT "End of Report - &FOCFOCEXEC" "Contact IT Audit with questions" WHERE ((DTPOST GE LAD) AND (DTPOST LE EOD)); WHERE RECORDLIMIT EQ 1000 ON TABLE SET PAGE-NUM OFF ON TABLE COLUMN-TOTAL AS 'TOTAL' ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, RIGHTMARGIN=0.250000, TOPMARGIN=0.250000, BOTTOMMARGIN=0.250000, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT, GRAPHCOLOR='WHITE', $ TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=10, COLOR='BLACK', BACKCOLOR='NONE', STYLE=NORMAL, $ TYPE=DATA, COLUMN=N2, FOCEXEC=IMPTXDET(TC=N2 THEREG=N1 LAD='&LAD' EOD='&EOD' FILEDATE='&FILEDATE'), $ TYPE=DATA, ACROSSCOLUMN=N1, FOCEXEC=IMPTXDET(MONTH=A1 TC=N2 THEREG=N1), $ TYPE=TABHEADING, LINE=13, OBJECT=FIELD, ITEM=2, FONT='TIMES NEW ROMAN', $ ENDSTYLE END
April 19, 2007, 09:45 AM
saltrogge
I figured out what is causing the problem but I have no idea why this causing the problem. Whenever I take out the page-break on the report header the problem is resolved. Any idea why this might be?
Stephen
April 19, 2007, 10:22 AM
Francis Mariani
I can't explain why PAGE-BREAK causes the problem, but
" End Audit Dt: " "
is wrong, if that's the way it's really coded, so is
"Page " "
. I did not go through your code with a fine-toothed comb (there's someone else that appears to be good at that!)
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