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] Reording Aggregate Columns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Reording Aggregate Columns
 Login/Join
 
Member
posted
I'm working with a large data set that will be using various aggregate functions in WF. One of the requirements is reordering the natural listing of columns given user input -- putting a SUM field as the fourth column and three BY columns before it, etc.

What are my options for doing this other than a HOLD file?

Thanks,

AG

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


WebFOCUS 7.7.01 - Windows 7 - IE8
 
Posts: 6 | Registered: March 16, 2011Report This Post
Expert
posted Hide Post
Look at the SEQUENCE WebFOCUS Stylesheet option.

Creating Reports With WebFOCUS Language > Laying Out the Report Page > Arranging Columns on a Page > Changing Column Order

"You can change the order in which vertical sort (BY) columns are displayed in a report. This feature does not apply to horizontal sort (ACROSS) rows or stacked (OVER) columns."

This syntax applies to PDF, PS, HTML, and EXL2K reports.
[TYPE=REPORT,] COLUMN=identifier, SEQUENCE=sequence, $


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
Francis,

Thank you! That's exactly what I was looking for.

Would my only other option for doing this outside of SS Formatting be using a HOLD table? It's very likely that the end users will want this output in virtually every format available - having a solution that is independent of a particular output type would be therefore be the most robust approach.

Thanks again,


AG


WebFOCUS 7.7.01 - Windows 7 - IE8
 
Posts: 6 | Registered: March 16, 2011Report This Post
Expert
posted Hide Post
Yes, I'd say that a HOLD file is probably the only other method.


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
Since you're not re-ordering the data but just the order of the columns, you could do something like
SUM &SEQUENCE1 &SEQUENCE2 &SEQUENCE3 &SEQUENCE4
BY FIELD1 NOPRINT
BY FIELD2 NOPRINT
BY FIELD3 NOPRINT
BY FIELD4 NOPRINT
where the &SEQUENCEx variables are the fields as the user selected them. They should be the same as the FIELDx fields, only in another order.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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] Reording Aggregate Columns

Copyright © 1996-2020 Information Builders