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] Disable Sort in List Box

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Disable Sort in List Box
 Login/Join
 
Platinum Member
posted
Is there any way to disable the Sort Ascending/Descending when populating a List Box?

I am building a front end process and I want to use a list box which populates with the Column Titles on a DB2 table instead of the data so that the end user can select the columns they wish to print.

Problem: When the box populates it defaults ascending which is no good. I need the selections in the box to populate in the same order they are populated on the DB2 table.

We are using DevStudio 7.6.4

Thanks
Jeremy

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


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 2010Report This Post
Gold member
posted Hide Post
Try something like that:

DEFINE FILE CAR
SORTNUM/I3 = DECODE COUNTRY (
'JAPAN' 1
'ITALY' 2

'FRANCE' 3
'ENGLAND' 4
ELSE 99 );
END
TABLE FILE CAR
SUM
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY SORTNUM
BY COUNTRY
BY CAR
BY MODEL
END


WebFOCUS 7.6, 7.7
Windows, All Output formats
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Report This Post
Expert
posted Hide Post
Use a procedure to populate the control with code such as -
TABLE FILE SYSCOLUM
  SUM FST.NAME
   BY COLNO NOPRINT
   BY NAME
WHERE TBNAME EQ 'car'
ON TABLE PCHOLD FORMAT XML
END

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
How about eliminating the BY all together?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Thanks for the reply's and MichaelBalle, looks like I will have to go with your code. We have done this in the past but we built it all in a .txt file and used that to populate the box, didn't know we could do it in a define.

Still this will not be easy seeing how there are more than 80 columns to this report. The end use loves for the data to run from left to eternity. Smiler

I will try this out. Thanks again.


WebFOCUS 8105m
Windows, All Outputs
 
Posts: 156 | Registered: August 23, 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     [CLOSED] Disable Sort in List Box

Copyright © 1996-2020 Information Builders