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] Sort by "Display Field" instead of "Value Field"

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Sort by "Display Field" instead of "Value Field"
 Login/Join
 
Gold member
posted
Hello everybody,

My question is about the fields in HTML page. When I data bind a parameter field(for example: drop down ) dynamically to a data source, I noticed that the values in the drop down are sorted by Value Field instead of Display Field. Is there any way to make the WebFOCUS to sort those values according to Display Field, instead of Value Field ?

Thank you very much.

Shravan

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


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Guru
posted Hide Post
Same answer as the other one today.... user your own procedure to populate the HTML controls and then you'll be able to display whatever you'd like however you'd like.


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report This Post
Virtuoso
posted Hide Post
Yes....

Can you post some code to explain what you mean!




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Gold member
posted Hide Post
Frank,

I have a parameter(combo box) Country on the HTML form. I linked that to country.mas data source (not procedure) dynamically. country.mas is getting its data from a table in our SQL Server 2005 database. country.mas has two fields CountryId , CountryName . CountryId is tied to Value Field, where as CountryName is tied to Display Field of my Country combobox in the HTML form. I send CountryId to a SQL Server stored procedure as parameter. I populate CountryName in the HTML form. What's happening here is, WebFOCUS is populating Country combo box sorted by Country Codes , instead of Country Names. I want it to populate the combo box sorted by Country Name .

Country - Code
----------------------------
Canada - 4
Denmark - 2
England - 5
France - 3
Greece - 1

The order in which WF is populating the combo box is Greece, Denmark, France, Canada, England. (ordered by Country Codes 1,2 3 4 5)

The order I want is Canada, Denmark, England, France, Greece.


Thanks.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
ChannyS gave you the answer you need. The GUI tools provide a "quick and dirty" way to populate your boxes. They provide NO additional functionality for manipulating the order, appearance or any other property of values in the box (other than the possibility of adding an ALL value). You can create your own procedure which manipulates things to you exact need and then reference that procedure rather than just relying on a straight data read. File layout, format, and all you need to know to do this is in the documentation.
There are also numerous posts with examples on the forum of creating content for you drop-down controls.


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
Expert
posted Hide Post
For future reference, you can do this from the HTML Layout Painter in 7.6.5.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Ginny,

Currently I am using 7.6.5.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
quote:
Setting the Display Value for a Dynamic List
How to:
Set the Display Value for a Dynamic List Using the Variable Editor
When using a Dynamic Accept list, you may select a value to be displayed as a parameter.
A dynamic list retrieves values from a specified data source when the request is run. The
display value can be different from the return value by using the Values for Displayed Field
option in the Variable Editor.
Note: Setting the display value for a dynamic list is only applicable if you are using a data
source that contains both a code and description field.
For more information on the Variable Editor, see the Creating Reports With the Report Painter
chapter in Creating Reports With Graphical Tools.


This is on page 30 of the Summary of New Features for 765. There is more detailed information after that paragraph. I've done it and it works well.

Or you can use a procedure as stated above.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Sorry guys,

I forgot to post what I did to solve my problem. I used procedures(.fex files) to populate my fields (instead of data sources [.mas files]).

Thank you all.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report 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] Sort by "Display Field" instead of "Value Field"

Copyright © 1996-2020 Information Builders