on 02-15-2006 12:45 AM
Hi ,
I have this piece of codes in my Java iViews :
<hbj:dropdownListBox id="SUPERIOR_ID_NEW">
<% for (int i = 1; i <= ISR.getAdditionalDataLength("SUPERIOR_KEY"); i++) { %>
<hbj:listBoxItem key='<%= ISR.getAdditionalData("SUPERIOR_KEY",i) %>'
value='<%= ISR.getAdditionalData("SUPERIOR_LABEL",i) %>'
selected='<%= ISR.getSelected("SUPERIOR_ID_NEW","SUPERIOR_KEY",i) %>'
/>
<% } %>
</hbj:dropdownListBox>
It is showing a list of username in a drop down list.
Can I sort this HTMLB dropdownlist?
How do you do it? I have searched the HTMLB documentation but it does not tells you how to sort the list items in a drop down list.
Any help would be greatly appreciated.
Thanks.
Regards,
Mike Lee
Hi,
You can find solution in this thread..
/thread/16767 [original link is broken]
Let us know is you find difficulties.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try adding the values in ISR into Vector object. Sort the vector using Collections.sort() method. Add the sorted values in vector into the dropdownlistbox.
Hope this helps.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.