Username Password
Bookmark and Share
View All Tickets
Select lists in Thingy randomized  (#12355)

Select (drop-down) lists in Thingy appear to have their items randomized. When select lists are long, as is the case when linking between two Things with more than a handful of records, this makes Thingy effectively unusable because it is too difficult to scan long, un-sorted lists for the desired.

(This is why I have labeled this as Critical as opposed to Minor -- it prevents users from doing anything but the most rudimentary linking between Things.)

I have found the problem to exist in at least two different situations. One is the above-mentioned select lists used to link records to other Things. The second is when defining a fixed list of options for a field in a Thing. As the result of another bug ( I began switching from the "piped" version of defining key/value pairs to the hash ref alternate format. (As noted in the previous bug, mentions two ways to define key/value pairs for Thingy, though the Thingy edit hoverhelp only mentions the pipe method.) Using the hash ref syntax in these cases causes the parsing errors mentioned in the bug report to stop appearing in my logfiles, but it had the downside of the select lists (and other list-type inputs) now becoming randomized.

The problem appears to be that hash refs being passed to WebGUI::Form::List are not being tied to maintain order by WebGUI::Thingy.

Additionally, the list of options queried in links-to-other-Things appear to not have any sorting when queried from the database. The order appears to be that in which the data were entered. One solution might be to sort based on the search sort setting for that Thing, but really, if you are setting up a select list, alphabetizing the list (option text, rather than values) makes the most sense.

For the other case of select lists with defined values, it's probably best to retain the original value in which the Thingy editor defined them.

4/19/2012 5:30 pm
FYI, this was originally listed as an RFE, but I argue that it's really a bug because it is a strong disincentive for people from using Thingy. I've actually resorted various JavaScript solutions to fix this client-side. (sorting select lists after bring rendered or replacing them with auto-suggest text fields).
Ticket Status Pending  
Submitted ByTrex 
Date Submitted2012-04-19 
Assigned To unassigned  
Date Assigned2022-07-07 
Assigned By 
Severity Critical (mostly not working)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version  
Ticket History
10:26 PM
Ticket created Trex
© 2022 Plain Black Corporation | All Rights Reserved