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] Changing the Order of tabs when using BYTOC

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Changing the Order of tabs when using BYTOC
 Login/Join
 
Silver Member
posted
Hi,

I am trying to create a report in EXL2K to display the values from different countries in different Tabs..

TABLE FILE CAR
PRINT
CAR
SALES
BY COUNTRY NOPRINT
BY SEATS NOPRINT
ON TABLE PCHOLD FORMAT EXL2K BYTOC
END

but I am trying to reorder these tabs according to the SEATS

Is there any way I can do that.

Thanks in Advance,
pvparuc

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


Release: Webfocus 7.6.11
OS/Platform: Windows
Output: HTML, EXL2K
 
Posts: 32 | Registered: October 29, 2010Report This Post
Virtuoso
posted Hide Post
I used SALES instead of SEATS because a COUNTRY can have more than one number of SEATS and Excel will not allow duplicate tab names. I also sorted SALES highest to lowest so the COUNTRY with the highest SALES appears first in the spreadsheet. By appending blanks to the front of the COUNTRY name based on the size of total SALES, I was able to trick WebFOCUS into sorting the countries by SALES for the BYTOC. The blanks in front of the COUNTRY names are compressed and disappear when displayed as spreadsheet tab names.

SET ASNAMES = ON
SET HOLDLIST = PRINTONLY
-*
TABLE FILE CAR
 SUM
  SALES AS 'COUNTRY_SALES'
 BY COUNTRY
 PRINT
  CAR
  SALES
 BY COUNTRY
 ON TABLE HOLD AS HOLD1
END
-*
TABLE FILE HOLD1
 PRINT
  CAR
  SALES
  COMPUTE BLANKS/A10V  = IF (COUNTRY_SALES EQ LAST COUNTRY_SALES) THEN LAST BLANKS ELSE (' ' | LAST BLANKS);
  COMPUTE SORT_KEY/A15 = BLANKS | COUNTRY ;
 BY HIGHEST COUNTRY_SALES
 ON TABLE HOLD AS HOLD2
END
-*
TABLE FILE HOLD2
 PRINT
  CAR
  SALES/I9C
 BY HIGHEST SORT_KEY NOPRINT
 ON SORT_KEY SUBTOTAL
 ON TABLE NOTOTAL
 ON TABLE PCHOLD FORMAT EXL2K BYTOC
END


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Silver Member
posted Hide Post
Hi Dan,

Thanks for the reply, Didnt have a chance to look at it over the weekend...
I will try it and let you know if it works for me...

[Update]
Thanks Dan, It worked fine.

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


Release: Webfocus 7.6.11
OS/Platform: Windows
Output: HTML, EXL2K
 
Posts: 32 | Registered: October 29, 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     [SOLVED] Changing the Order of tabs when using BYTOC

Copyright © 1996-2020 Information Builders