Click here to Skip to main content
15,919,434 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: general advice on starting to work with DB programming ? Pin
BillWoodruff14-Feb-15 11:28
professionalBillWoodruff14-Feb-15 11:28 
AnswerRe: general advice on starting to work with DB programming ? Pin
Jörgen Andersson12-Feb-15 21:43
professionalJörgen Andersson12-Feb-15 21:43 
GeneralRe: general advice on starting to work with DB programming ? Pin
BillWoodruff14-Feb-15 12:42
professionalBillWoodruff14-Feb-15 12:42 
GeneralRe: general advice on starting to work with DB programming ? Pin
Jörgen Andersson15-Feb-15 10:51
professionalJörgen Andersson15-Feb-15 10:51 
GeneralRe: general advice on starting to work with DB programming ? Pin
BillWoodruff15-Feb-15 22:25
professionalBillWoodruff15-Feb-15 22:25 
QuestionBetter language for complex GUI and input/output devices? Pin
ai_mc9-Feb-15 14:38
ai_mc9-Feb-15 14:38 
AnswerRe: Better language for complex GUI and input/output devices? Pin
Pete O'Hanlon9-Feb-15 19:54
mvePete O'Hanlon9-Feb-15 19:54 
QuestionLookups Table Design Problem Pin
Kevin Marois8-Feb-15 8:29
professionalKevin Marois8-Feb-15 8:29 
I have a table called Lookups. It's used mainly to populate ComboBoxes. There's a button next to it that opens an editor where the user can add, edit, and remove lookups. The table has a column called "LokupType".

Say for example the user enters 3 lookups called "Employee Type" and they are "Manager", "Driver", and "Dispatcher". The Employee screen has an Employee Type combo and editor button. and for employees the LookupType is "empytype", and that is hardcoded in the editor button's click routine. I can hard code it here because the code is in the Employee Screen.

In the Employee screen the employee is assigned a type from a combo loaded by a query that uses the LookupCode of "emptype". In other words, there's a query that returns only employee type lookup items.

So far so good.

Now here's the problem... In another screen I need to populate a list of only those employees who are Dispatchers.

Because the lookups can be removed, how can I know for sure which employees are Dispatchers?

In the past I used another column called SystemCode, and I would hard code in values such as:

LOOKUPTYPE   CAPTION       SYSTEMCODE
=========================================
emptype      Manager       empmanager
emptype      Driver        empdriver
emptype      Dispatcher    empdispatch


Because I had the system code, I could pull only those employees who are dispatchers. Now, the requirements call for ALL lookups to be editable and removable.... so there's no SystemCode.

I'm open to suggestion.
If it's not broken, fix it until it is

QuestionBetter language for email polling, C# or C++? Pin
Member 84569711-Feb-15 12:07
Member 84569711-Feb-15 12:07 
QuestionRe: Better language for email polling, C# or C++? Pin
Richard MacCutchan1-Feb-15 22:30
mveRichard MacCutchan1-Feb-15 22:30 
AnswerRe: Better language for email polling, C# or C++? Pin
Member 84569712-Feb-15 0:03
Member 84569712-Feb-15 0:03 
GeneralRe: Better language for email polling, C# or C++? Pin
Pete O'Hanlon2-Feb-15 0:19
mvePete O'Hanlon2-Feb-15 0:19 
GeneralRe: Better language for email polling, C# or C++? Pin
Richard MacCutchan2-Feb-15 0:31
mveRichard MacCutchan2-Feb-15 0:31 
QuestionHow do I load a UI based on a user specific role Pin
phyxian29-Jan-15 2:13
professionalphyxian29-Jan-15 2:13 
AnswerRe: How do I load a UI based on a user specific role Pin
Eddy Vluggen29-Jan-15 3:15
professionalEddy Vluggen29-Jan-15 3:15 
GeneralRe: How do I load a UI based on a user specific role Pin
phyxian29-Jan-15 14:27
professionalphyxian29-Jan-15 14:27 
GeneralRe: How do I load a UI based on a user specific role Pin
Richard MacCutchan29-Jan-15 23:02
mveRichard MacCutchan29-Jan-15 23:02 
GeneralRe: How do I load a UI based on a user specific role Pin
phyxian30-Jan-15 0:10
professionalphyxian30-Jan-15 0:10 
GeneralRe: How do I load a UI based on a user specific role Pin
Richard MacCutchan30-Jan-15 0:13
mveRichard MacCutchan30-Jan-15 0:13 
GeneralRe: How do I load a UI based on a user specific role Pin
Eddy Vluggen30-Jan-15 0:31
professionalEddy Vluggen30-Jan-15 0:31 
AnswerRe: How do I load a UI based on a user specific role Pin
BillWoodruff29-Jan-15 5:47
professionalBillWoodruff29-Jan-15 5:47 
AnswerRe: How do I load a UI based on a user specific role Pin
Mycroft Holmes30-Jan-15 13:34
professionalMycroft Holmes30-Jan-15 13:34 
AnswerRe: How do I load a UI based on a user specific role Pin
BillWoodruff31-Jan-15 18:34
professionalBillWoodruff31-Jan-15 18:34 
GeneralRe: How do I load a UI based on a user specific role Pin
CHill601-Feb-15 21:13
mveCHill601-Feb-15 21:13 
QuestionDesign question for a project in C# Pin
Malindor23-Jan-15 6:06
Malindor23-Jan-15 6:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.