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     Sort Column Value on Across

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Sort Column Value on Across
 Login/Join
 
Silver Member
posted
I am having trouble trying to sort my column values in a particular sequence. When I try, I end up losing the ACROSS. Can anyone help?

Thanks...


7.1.4
UNIX
Excel, PDF, HTML
 
Posts: 36 | Registered: April 09, 2008Report This Post
Virtuoso
posted Hide Post
If you give us a bit more information about the issue we can help. Are you able to create an example of the issue with the CAR file? Music


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Silver Member
posted Hide Post
I set up this sort field in the DEFINE:
SORTFIELD/I1=IF FIELD EQ 'A' THEN 0 ELSE
IF FIELD EQ 'B' THEN 1 ELSE
IF FIELD EQ 'C' THEN 2 ELSE
IF FIELD EQ 'C' THEN 3 ELSE
IF FIELD EQ 'D' THEN 4 ELSE
IF FIELD EQ 'E' THEN 5 ELSE
IF FIELD EQ 'F' THEN 6 ELSE
IF FIELD EQ 'G' THEN 7
ELSE 8;
And then I put this in my TABLE:
ACROSS XCOLUMN NOPRINT
BY SORTFIELD NOPRINT
BY XPAGE NOPRINT
BY XROW NOPRINT
ON XPAGE PAGE-BREAK
Without the "BY SORTFIELD NOPRINT", it displays 2 columns side by side. With the "BY SORTFIELD NOPRINT", it displays the first column fine but in the second column it adds 5 blank cells and then displays the field values.

Does this help?


7.1.4
UNIX
Excel, PDF, HTML
 
Posts: 36 | Registered: April 09, 2008Report This Post
Virtuoso
posted Hide Post
Are you using PRINT or SUM? Sounds as if you are using PRINT where SUM might be what you need.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Silver Member
posted Hide Post
Yes, I am using SUM.

Thanks...


7.1.4
UNIX
Excel, PDF, HTML
 
Posts: 36 | Registered: April 09, 2008Report This Post
Expert
posted Hide Post
Maybe it's just me, BUT, why are you trying to use ACROSS with NOPRINT??

Again, half the code gets half an answer...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
I am somewhat of a newbie to WebFocus. All I know is that when I use that syntax I get what I need which is the 2 columns of links without titles--that is what the customer wanted. Is there a better way of doing this?

Thanks...


7.1.4
UNIX
Excel, PDF, HTML
 
Posts: 36 | Registered: April 09, 2008Report This Post
Expert
posted Hide Post
ACROSS fieldname AS ''

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
slim,

I have no idea what the other code looks like, BUT, here is an example from CAR with 2 columns as links and no titles:

  
SET NODATA = ' '
TABLE FILE CAR
SUM
SALES AS ''
  COMPUTE FLAG/A1 = IF COUNTRY EQ 'JAPAN' AND SALES NE 0 THEN '1' ELSE
                    IF COUNTRY NE 'JAPAN' AND SALES NE 0 THEN '2' ELSE '3'; NOPRINT
BY COUNTRY AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=N2, URL=http://www.YAHOO.com,  WHEN=FLAG EQ '1',$
TYPE=DATA, COLUMN=N2, URL=http://www.GOOGLE.com, WHEN=FLAG EQ '2',$
TYPE=DATA, COLUMN=N2, URL=http://www.cnn.com, WHEN=FLAG EQ '3', COLOR=GREEN,$
TYPE=DATA, COLUMN=N1, URL=http://www.informationbuilders.com,  COLOR=FIREBRICK, WHEN=FLAG EQ '1', TARGET=_blank,$
TYPE=DATA, COLUMN=N1, URL=https://forums.informationbuilders.com/eve/forums,  COLOR=NAVY BLUE,WHEN=FLAG NE '1', TARGET=_blank,$
ENDSTYLE
END
-EXIT


Hope this helps, if it is what you are looking for...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
slim007,

I suspect the XROW is contributing to the extra blank cells. I assume XROW is a DEFINE field as well? XROW will be calculated for every record pulled from the database BEFORE the SUM is processed. Therefore, even though it looks like certain records should be added together, you are forcing them to be treated as individual records due to the BY XROW.

Take the NOPRINT off the BY XROW statement and you will probably see this to be the issue.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report 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     Sort Column Value on Across

Copyright © 1996-2020 Information Builders