Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relationship question

Featured Replies

Hello,

I have a relationship problem, I have been playing around with it but just can´t get it to work.

I have 3 tables contacts, clients and jobs. As a client can have more than one employee, I store the employee details (name, telephone numbers) in the contacts table and have a relationship set up through an id number. This info is viewed through a portal on the client table. The client table also hold the company details (name, address), this all works fine.

What I am trying to do is on the jobs table, I have a drop down list, which is a value list holding the id number and company name, when you select the company name it automatically fills in the address from the clients table. I have this working by setting upa relationship through id number to company name. But I can´t get the second bit working which is I want a second drop down list,in the jobs table, called contact name which looksup from contacts, only the people from that company you have previously chosen, and when selected fills in the telephone details in other fields.

I just can´t work out how to set this relationship up, it´s a bit above me, any help would be greatly appreciated.

Thanks

  • Author

Hello,

Thanks for your help and taking time out to make the example, this is just what I am looking for, and a slightly different approach to how I was thinking. One thing I want to do is have telephone numbers stored as well as client name, I have added it to the portal and to the jobs and contacts table, but when you select the contact name from the drop down list it only inputs the first number, do I have to set up another relationship?

I have attached the updated file, thanks for your help I am finding this really difficult.

CondValueList_Copy.zip

  • Author

Thankyou, that is exactly what I was trying to do, I knew there would be a simple answer.

Thanks again for taking time out to help

James

  • Author

Hello again,

As usual I have solved one problem only to create another. The solution from the earlier post works fantastically but the problem I have is that on the company name drop down I need the field to be an auto complete field due to the fact that the list is very long. The problem is the field is not giving me the option, I think because it is linked by id.

I have tried all the ways I can think of with no luck. Does anyone know if this is possible or do I need a re think?

Thanks

James

  • Author

Hi Comment,

Thanks for the reply it was much appreciated. Going through these replies has helped me to get a much better understanding of relationships, which I am finding quite difficult.

Thanks again

James

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.