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.
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.
ShravanThis message has been edited. Last edited by: Kerry,
7.7.03, Windows 7, SQL Server 2005
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008
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.
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, 2008
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, 2007
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.