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     [CLOSED] Multiple totals after a date range selection.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Multiple totals after a date range selection.
 Login/Join
 
Member
posted
I'm sure this is easy for someone, but I'm having trouble and could use a simple chunch of sample code.

I am passing a table, selecting a date range using filters, and want to tally various quantities for a one line report. I seem to recall I can create a table first, then run queries against that table all within one FEX. Does this sound doable?

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


WebFOCUS Version: 7703
Windows, all output
 
Posts: 16 | Registered: August 18, 2011Report This Post
Guru
posted Hide Post
ewinery,

This request is a bit vague and I can't remember if there are two or four chunches in one chuck. Just kidding. Here is a sample report that I think might be what your talking about. If you're using DevStudio, you can drop this in the console and run it. It's a simple report based on the GGSALES datasource that ships with WebFOCUS and it uses a date range filter.

Hope this helps.

  TABLE FILE GGSALES
SUM 
     'GGSALES.SALES01.BUDDOLLARS'
     'GGSALES.SALES01.DOLLARS'
     'GGSALES.SALES01.BUDUNITS'
BY 'GGSALES.SALES01.REGION'
BY 'GGSALES.SALES01.ST'
BY 'GGSALES.SALES01.CITY'
BY 'GGSALES.SALES01.DATE'
HEADING
""
FOOTING
""
WHERE ( GGSALES.SALES01.DATE GE 19960101 ) AND ( GGSALES.SALES01.DATE LE 19960131 );
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=FOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Master
posted Hide Post
This is terribly doable. As Don says, the request is vague, but you sort of imply that you want to assemble some data and subsequently create a one-line summary. Don's does that for already existing data.

You may have to create a HOLD file ahead of time by running one or more TABLE FILE (or MATCH FILE) requests (to assemble the data) and then run a report right after that for your one-line summary.

Doing this all within one FEX is perfectly normal procedure. You could separate out each stage as a separate FEX and then have a final FEX with a bunch of -INCLUDE statements but I think that's overkill here.

As just about every post on here indicates, the GUI does not replace hand-coding - specially when there are perhaps multiple steps involved.


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report 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     [CLOSED] Multiple totals after a date range selection.

Copyright © 1996-2020 Information Builders