This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Combobox selection  RSS feed

 
Nandini Sriram
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
When I use a combobox for the origin and destination, I need to include all those places that are listed in the db.db file. But they are like 'LAX' or 'BOM'. Should I include full names like 'Denver' for 'DEN' or just the 3-letter word as given?
The users are not going to be familiar with the 3-letter codes, right?
Thanks
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nandini,
As for the customers, you have no secondary table you may reference to (as with a SQL foreign key). So, presenting to the user the (unique) raw values you may find in the database is the only "choice" you have.
Cheers,
Phil.
 
Nandini Sriram
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur reply Phillipe.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!