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     How to sort display value of combobox on HTML form

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to sort display value of combobox on HTML form
 Login/Join
 
Member
posted
I have a report for which user inputs data through HTML page. This HTML file is generated through HTML layout Tool. On HTML page I am showing input comboboxes and its values are generating through '.mas' file.

Here is control's code in HTML file:

<select id=ITEM2 name="W_ID" elementname="combobox2" elementtype="combobox" labelid caption="combobox" operation="NONE" ibiformat datatype="1" addalloption="0" dynamicdisplayvalue="ALL" inchainindex="-1" cacheruntimedata="0" displayfield="W_NAME" datafield="W_ID" numofrecords="-1" sourcetype="typeMaster" datasource="WMASTER.mas" datafieldtype="integer">

here W_ID is INTEGER and W_NAME is Character value of it. I am displaying W_NAME and on selection W_ID value is passed to fex file.

My question is that combobox is dispalying data order by W_ID, while I want it to sort by W_NAME. Is there any way to do this, or which property to edit for this master file? I am viewing mater file through web Console.

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



WebFOCUS Versions using 7.1; Platform: Windows XP; Output Format: PDF.
 
Posts: 16 | Registered: September 07, 2007Report This Post
Virtuoso
posted Hide Post
I believe as long as you are generating values from the file definition you get the order they are in. You might try using a procedure to populate the combo box which has it sorted in the order you want.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
I tried to edit the order of fields in WMASTER.mas file in text mode, but it still showing value sorted by W_ID.

Is it possible that i can use procedure in HTML file itself or if not, then how can i modify master file to sort by W_NAME field?



WebFOCUS Versions using 7.1; Platform: Windows XP; Output Format: PDF.
 
Posts: 16 | Registered: September 07, 2007Report This Post
Expert
posted Hide Post
Abhi,

Leah has given you the best method of achieving this - use a procedure to populate the drop down and do not rely upon the data in the file being in the right sort order for you.

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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to sort display value of combobox on HTML form

Copyright © 1996-2020 Information Builders