S Shane119 Member Licensed User Longtime User May 9, 2011 #1 Hi everyone I'm getting there writing my 1st proggie, slowly but getting there. I was wondering if there is a control/library that is similar to a spinner, but has a second hidden column? What I'm trying to do is have a drop down with a list of consultants, but have thier ID number accessable when selected. I can do this the long way of re-looking up their name in an sqlite db and return the ID number, but would be nice if I could just access it straight from the spinner. Thank you in advance of any help you can give.
Hi everyone I'm getting there writing my 1st proggie, slowly but getting there. I was wondering if there is a control/library that is similar to a spinner, but has a second hidden column? What I'm trying to do is have a drop down with a list of consultants, but have thier ID number accessable when selected. I can do this the long way of re-looking up their name in an sqlite db and return the ID number, but would be nice if I could just access it straight from the spinner. Thank you in advance of any help you can give.
agraham Expert Licensed User Longtime User May 9, 2011 #2 Keep the pairs of consultants and ID numbers in a Map and just look up the ID using the consultant name as the key. Upvote 0
Keep the pairs of consultants and ID numbers in a Map and just look up the ID using the consultant name as the key.
S Shane119 Member Licensed User Longtime User May 9, 2011 #3 Thanks for the quick reply agraham... I'll give this a try... I'm starting to enjoy this project Upvote 0