I receive lists generated by SQL queries that need to be made available as menuitems.
“A” could be COLORS where 1 is red, 2 is blue.
“B” could be CAR MODEL where 1 is Chevrolet, 2 is Ford, etc.
I would like to condense them down to this:
A 1, 2
B 1, 2, 3, 4, 5
C 1, 2, 3
A-C represent menu items in a contextual menu. The numbers next to them in the list above would pop out from each letter item in the pop-up as sub-items.
Constructing the actual menus shouldn’t be a problem, but I have been spinning my wheels trying to figure out how to get this pared down in a usable format.
My first instinct was to use a dictionary, but I cannot figure it out.