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     sorting values in a listbox?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
sorting values in a listbox?
 Login/Join
 
Master
posted
I have a list of a few hundred customers in a list box. Is there any way to put these customers in alphabetical order in a listbox?

Thanks!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
Yes. I'm sure there's some javascript to do it, (i'm not a javascript person) but you can always run a procedure that sorts them alphabetically before holding them for your list box control. Lots of examples available in the forum


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
You don't indicate the source of the customer list you want to show in the listbox. I'm presuming you have a file/table somewhere that contains that.

Consider running a TABLE FILE ... against your Customer Master file to select the customers you need and hold that selection in a *.htm file. Precede the query with a FILEDEF pointing to a place in your FOCUS path. Include BY {customer-name-field} to sort them as you wish and an ON TABLE HOLD AS {filedef-name} to write the *.htm in the appointed place. Each row in the file must have the customer-name text you want preceded with an html 'select' tag consisting of the LT character, the word 'SELECT' and the GT character.

In your HTML/launch page, reference the content of the select box with !{name-of-held-file} which will cause the select box to be populated from the output of the afore mentioned query.

For this to work the launch page must be displayed by WF using a *.fex containing HTMLPAGE {name-of-launch-page-containing '!...'}.

If you need details, I can post example fex.


WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.
 
Posts: 154 | Location: NY | Registered: October 27, 2005Report This Post
Guru
posted Hide Post
I agree with cburtt, I have some launch forms where I use the dynamic list boxes using a procedure (.fex) and create a TABLE FILE for that list
CREATE A FEX CALLED "CUSTOMERLIST.FEX"
DEFINE FILE TABLE1
CUST/A120=CUSTOMERNAME|' : '| CUSTOMERID;
END
TABLE FILE TABLE1
SUM CUST AS 'CUSTLIST'
BY CUSTOMERID
ON TABLE PCHOLD FORMAT XML
END

And here's the


Hope it helps

-P


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Guru
posted Hide Post
heres the select tag for htm

"SELECT language=javascript id=listbox6 style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; Z-INDEX: 24; LEFT: 30px; WIDTH: 450px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 120px; HEIGHT: 360px" tabIndex=23 onchange=listbox6_onchange(this) size=3 name=CMISRPTS sourcetype="typeFex" ibiapp_app="cmisreports" ibic_server="EDASERVE" datatype="1" datafield displayfield datasource="CUSTOMERLIST.FEX">

CHANGE THE " TO < > ACCORDINGLY
THANKS


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report 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     sorting values in a listbox?

Copyright © 1996-2020 Information Builders