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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
sorting on total
 Login/Join
 
Silver Member
posted
When we run the below code , the report output is sorted on Country.But I want them to be sorted on the highest seat total.
When I tried using BY HIGHEST SEATS,follwoing error is thrown

THE SETS OF SORT PHRASES ARE INCONSISTENT

Can any one help me on this?

DEFINE FILE CAR
P_SEATS/D6.2S = SEATS;
END
-*
TABLE FILE CAR
SUM
SEATS
PCT.P_SEATS AS 'PCT.'
BY COUNTRY
-*BY HIGHEST SEATS
SUM
SEATS
BY COUNTRY
BY CAR
ACROSS MODEL
ON COUNTRY SUBFOOT
" "
ON TABLE COLUMN-TOTALS SEATS PCT.P_SEATS
END


Thanks & Regards,
Sridevi
Webfocus 7.6.5 | Windows |
HTML
 
Posts: 36 | Location: India | Registered: October 06, 2005Report This Post
<Special-K>
posted
Error FOC020

In a multiverb request the sort fields must include the sort fields of the previous sort
 
Report This Post
Silver Member
posted Hide Post
Your BY fields in the first table requests must be a subset of the second request. so whichever BY field exists in the first request needs to be included.
This should work for you!
DEFINE FILE CAR
P_SEATS/D6.2S = SEATS;
END
-*
TABLE FILE CAR
SUM
SEATS
PCT.P_SEATS AS 'PCT.'
BY HIGHEST TOTAL SEATS NOPRINT
BY COUNTRY
SUM
SEATS
BY HIGHEST TOTAL SEATS NOPRINT
BY COUNTRY
BY CAR
ACROSS MODEL
ON COUNTRY SUBFOOT
" "
ON TABLE COLUMN-TOTALS SEATS PCT.P_SEATS
END
 
Posts: 38 | Location: India | Registered: May 18, 2005Report This Post
Silver Member
posted Hide Post
Thanks a lot Venu. Your code worked out.

I would like to know if images can be included in Excel report.

I tried this sample code from the help file,but only when the report format is in HTML , the image is displayed . When I change the report format to EXL2K the image is not displayed.

SET COMPOUND=CLOSE
TABLE FILE SHORT
SUM BALANCE AS 'Balance'
BY CONTINENT AS 'Continent'
BY REGION AS 'Region'
HEADING
"Balance by Region"
" "
ON TABLE SET STYLE *

TYPE=DATA, BACKCOLOR=( BY=B2 'SILVER' 'WHITE' ), $
TYPE=HEADING, SIZE=14, STYLE=BOLD, $
TYPE=REPORT, IMAGE=BALGR1.gif, POSITION=(4 6), SIZE=(4 2.5), $
ENDSTYLE
ON TABLE PCHOLD FORMAT EXL2K
END


Thanks & Regards,
Sridevi
Webfocus 7.6.5 | Windows |
HTML
 
Posts: 36 | Location: India | Registered: October 06, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders