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] Report Painter Sorting by the TOTAL Column.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Report Painter Sorting by the TOTAL Column.
 Login/Join
 
Member
posted
Thanks to IBI support and everyone help. I got what I need but 1 thing on aesthetics can I sort by the total column that it generates. Here is my code. I've tried a few different by statements but because how I grouped it it will show each detail of other. I was wondering if I could just order by the TOTAL column painter generated. THANKs


SET NODATA = 0.00
SET NULL = ON
SET ORIENTATION = LANDSCAPE
SET EMPTYREPORT = ON
DEFINE FILE BBC_REPORTING
SLINES/A6 MISSING ON=
IF SLINE EQ 'BBCC' THEN SLINE ELSE
IF SLINE EQ 'SBMR' THEN SLINE ELSE
IF SLINE EQ 'IDMC' THEN SLINE ELSE
IF SLINE EQ 'WCXE' THEN SLINE ELSE
IF SLINE EQ 'TBSE' THEN SLINE ELSE 'OTHER';

END
TABLE FILE BBC_REPORTING
SUM
BBC_REPORTING.BBC_REPORTING.MTONS
BY BBC_REPORTING.BBC_REPORTING.SLINES NOPRINT
BY BBC_REPORTING.BBC_REPORTING.COMPANY

ACROSS LOWEST BBC_REPORTING.BBC_REPORTING.SLINES COLUMNS 'BBCC' OR 'SBMR' OR 'IDMC' OR 'WCXE' OR 'TBSE' OR 'OTHER'
ON TABLE SUBHEAD
"US Export Company Ranking Report - Houston "
ON TABLE SUBFOOT
"Report Run On <+0>&DATEMDYY <+0> Cargo Type: NonContainerized "
WHERE ( BBC_REPORTING.BBC_REPORTING.USPORT EQ 'HOUSTON' ) AND ( BBC_REPORTING.BBC_REPORTING.COUNTRY EQ 'ECUADOR' );
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE ROW-TOTAL AS 'TOTAL'
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
TYPE=DATA,
COLUMN=ROWTOTAL(1),
JUSTIFY=LEFT,
$
TYPE=DATA,
COLUMN=N3,
JUSTIFY=LEFT,
$
TYPE=DATA,
ACROSSCOLUMN=N1,
JUSTIFY=LEFT,
$
TYPE=TABHEADING,
LINE=1,
JUSTIFY=LEFT,
$
TYPE=ACROSSVALUE,
ACROSS=1,
BACKCOLOR='WHITE',
JUSTIFY=LEFT,
$
TYPE=REPORT,
IMAGE=bbc-chartering.gif,
SIZE=(2.291667 1.000000),
$
TYPE=REPORT,
COLUMN=N2,
WRAP=6.000000,
$
ENDSTYLE
END

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: January 25, 2013Report This Post
Expert
posted Hide Post
How about this train of thought:
DEFINE FILE (whatever)
MyCompany/A64 = DECODE CompanyName (THIS1 Company1 ...  ELSE 'Bogus Company') ;
CompanySort/I1 = IF MyCompany EQ 'Bogus Company' THEN 1 ELSE 0 ; 
END
TABLE FILE (whatever)
PRINT fields ...
BY CompanySort NOPRINT
BY MyCompany PAGE-BREAK
-* Style Stuff...
END
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Guru
posted Hide Post
I don't see a reason to hold the format as SQLMSS. When you do a hold format SQLMSS a sql table is created.
Just use a regular hold file. You could use format XFOCUS if you need a specific format.
  
TABLE FILE CAR
PRINT
  CAR
BY COUNTRY
ON TABLE HOLD AS H1 
END
-RUN

TABLE FILE CAR
PRINT
  DEALER_COST
BY COUNTRY
ON TABLE HOLD AS H2 
END
-RUN


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Member
posted Hide Post
Thanks for everyones input I updated this thread. Can I sort by the TOTAL column that report painter generated?


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 3 | Registered: January 25, 2013Report 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] Report Painter Sorting by the TOTAL Column.

Copyright © 1996-2020 Information Builders