Hi there - I'm working on implementing worksheets for multiple tables.
I really like the functionality for AutoCompleteWorksheetEditor (as
described here -
http://code.google.com/p/jmesa/wiki/AutoCompleteWorksheetEditor),
especially the example that shows how to restrict the returned values
for a field based upon the value in the previous column. I have many
data structures that follow this pattern of a child list dependent
upon a parent list.
Some issues:
1) In the listing above, the SingleValueWorksheetEditor extends
WorksheetEditor. I assume that ithis should be corrected to
SingleValueWorksheetEditor, yes?
2) I actually don't want the displayed name of the autocomplete, but
its ID. For example, one of the data dependencies I have for two
linked fields is country:state/province. I want the user to search and
see the country by name, and have the state/province autocomplete be
populated by country, but I want to lookup the state(s) in that
country by its three letter country code, and persist those codes to
the database. Similarly, I don't want to save "StateName", I want to
save "SN."
Before I discovered that Jmesa's autocomplete possessed the dependent/
linked data functionality, I was exploring how to achieve this by
chaining selects using DroplistWorksheetEditor. Now that I've found
AutoCompleteWorksheetEditor, which seems more elegant, I think it
should use it instead, but I'd like to add the ability to retrieve
name/value pairs, rather than a single value. Any tips/advice for
making this work?
3) In general, it seems like there is a lot of cool stuff on the Jmesa
site and in the discussion groups, but can be hard to find, and
sometimes it is difficult to tell which is the latest version of some
code/patches/enhancements. For example, I found a version of
DroplistWorksheetEditor in the discussion groups that seems to work
better than the one that was bundled in the jar. Is this a "known
issue"? Is there anything we as a community can do to help alleviate
this?
Thanks!