Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Surely there's a way to do this!

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Surely there's a way to do this!
 Login/Join
 
Member
posted
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?!

Stephen A
 
Posts: 18 | Registered: June 17, 2004Report This Post
Virtuoso
posted Hide Post
Stephen

Are you using ACROSSCOLUMN for the drill down?
TYPE=DATA,
ACROSSCOLUMN=N1,
FOCEXEC=fexname(MONTH=A1,TRAN_CODE=N1),
$

which should work okay.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Yes I am using ACROSSCOLUMN but it seems to be passing a blank value to the report...

Stephen A
 
Posts: 18 | Registered: June 17, 2004Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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:

ex=IMPTXDET&CLICKED_ON=&MONTH=&TC=0014&THEREGION=015

Any thoughts?

Stephen A

This message has been edited. Last edited by: saltrogge,
 
Posts: 18 | Registered: June 17, 2004Report This Post
Expert
posted Hide Post
My example works correctly:

http://ocdt70070610:8080/ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&IBIC_server=EDASERVE&IBIF_ex=XTEST1&CLICKED_ON=&XSEATS=4&XCOUNTRY=JAPAN


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
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
 
Posts: 18 | Registered: June 17, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
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
 
Posts: 18 | Registered: June 17, 2004Report This Post
Member
posted Hide Post
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
 
Posts: 18 | Registered: June 17, 2004Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Surely there's a way to do this!

Copyright © 1996-2020 Information Builders