Sharepoint Lookup or Calculation

I have two WSS 3.0 lists: one called Issues and a second called Client Table.  In the Issues list, I have a column called Client which stores a company name like "Acme".  In the Client Table list, I have a column called Client and another with the associated Username.  Assuming a 1-to-1 relationship & without doing a lot of coding, is it possible to return the Username to a new column in the Issues list from the Client Table list based on the value of the Client column in the Issues list?  If so, how would I do this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Well, I tried this with content types and using site columns. This does not look possible using OOB site column functionality.

You can either go with the following approaches:
- Make the new column (where you need to pull the user from the Client Table list) and the clients column in the Issue list as lookup columns to pull the user from the Client Table list.
Modify the NewForm.aspx page in the Issue list to have custom javascript to automatically select the username when the user selects the Client from the drp down.

This looks like the simplest way to get this done. But it does require customization.

Another way will be add an event handler to the list.
The event handler should be using ItemAdded method of the SPItemEventReciever class

and in this method, you can add your functionality to collect the data from the Client Table list and match it with the one the user has filled.

You mentioned that there is 1-2 relationship, but using OOB columns, SharePoint is not that intelligent to detect it. Thus, custom event handler needs to be created to have that 1-1 relationship addressed.
You should create a new column in the Issues list called "User" that is hidden. Create a workflow (On Create) for the Issues list that will Set the Field (User) to [Client::Title WHERE Client::Title == Issues::Client]

The above pseudo-code will make sense in the workflow designer within SharePoint Designer.

All you have to do now is make sure the "User" column is displayed in the list view you want to show people. This is also assuming a 1-1 relationship. You will have to add additional workflow on the Client list if you want to keep the Issues list up to date or if you want to account for 1-many relationships.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.