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     [SOLVED / Sharing] Rearrange Columns (SEQUENCE)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED / Sharing] Rearrange Columns (SEQUENCE)
 Login/Join
 
Expert
posted
Let's say that I want to rearrange the DCOST and RCOST columns in the following code via a "rearrange" command in the stylesheet. What is that command? Note that this is only a sample. I know that I can reverse the field names in the TABLE FILE request. But, this is just to illustrate a point. I know that there is a "rearrange" command, probably by some other name/syntax, but it's out there somewhere... So, would someone please be kind enogh to remind me what it is?
TABLE FILE CAR
SUM DCOST RCOST BY COUNTRY BY CAR BY MODEL
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$
ENDSTYLE
END

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Your own answer Here


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
You Rock Tom... I knew it was out the somewhere... But, I couldn't remember the keyword... I was stuck on something like arrange or order...


Cool Thanks Again Tom and anyone else who was in line to reply to this...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Brain-Freeze seems to happen more often as we age!!!
Welcome...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Eeker That's a big part of it...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Consider the following code
SET PAGE = OFF
TABLE FILE CAR
PRINT COMPUTE PROFIT/D12 = RCOST-DCOST; COUNTRY CAR MODEL DCOST RCOST  WHERE COUNTRY EQ 'ENGLAND'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT,$
TYPE=REPORT, COLUMN=PROFIT, COLOR=RED,$
TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$
ENDSTYLE
END
TABLE FILE CAR
PRINT COMPUTE PROFIT/D12 = RCOST-DCOST; COUNTRY CAR MODEL DCOST RCOST  WHERE COUNTRY EQ 'ENGLAND'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT,$
TYPE=REPORT, COLUMN=PROFIT, COLOR=RED, SEQUENCE=4,$
TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$
ENDSTYLE
END
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
And again...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Virtuoso
posted Hide Post
Alright... What about SUM fields used in an ACROSS...?

The SEQUENCE style rule attribute does not work with ACROSS and OVER columns unfortunately.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Platinum Member
posted Hide Post
quote:
SET PAGE = OFF
TABLE FILE CAR
PRINT COMPUTE PROFIT/D12 = RCOST-DCOST; COUNTRY CAR MODEL DCOST RCOST WHERE COUNTRY EQ 'ENGLAND'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT,$
TYPE=REPORT, COLUMN=PROFIT, COLOR=RED,$
TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$
ENDSTYLE
END
TABLE FILE CAR
PRINT COMPUTE PROFIT/D12 = RCOST-DCOST; COUNTRY CAR MODEL DCOST RCOST WHERE COUNTRY EQ 'ENGLAND'
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
GRID=OFF, BORDER=LIGHT,$
TYPE=REPORT, COLUMN=PROFIT, COLOR=RED, SEQUENCE=4,$
TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$
ENDSTYLE
END


Also, the following code doesn't wok.

TYPE=DATA, COLUMN=DCOST, COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST, COLOR=GREEN,$


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Expert
posted Hide Post
RCOST and DCOST are mentioned more than once in the request, therefore the style declaration requires qualification:
TYPE=DATA, COLUMN=DCOST(2), COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST(2), COLOR=GREEN,$
or
TYPE=DATA, COLUMN=DCOST(*), COLOR=BLUE,$
TYPE=DATA, COLUMN=RCOST(*), COLOR=GREEN,$


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     [SOLVED / Sharing] Rearrange Columns (SEQUENCE)

Copyright © 1996-2020 Information Builders