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.

Trying to create another table instance as a filter

Featured Replies

Hi, trying to build a simple client tracking DB here...

The relationship I have is fairly simple:

A company can have many employees

An employee can be assigned to zero or more roles within the company.

By "role" here I mean something like "primary contact", "billing contact", "technical manager" etc.

I have the following tables:

Cust_Company (Company level record)

Cust_Company_Entity (Company employee level record)

Cust_Entity_Role (List of roles that an employee can be assigned)

Cust_Entity_Role_Join (The join table for linking a company employee to any given role)

Now, I have an overall company view, which has some portals to various child data sets, like projects, employees etc for a given company. I want to have a couple of seperate fields on this form showing the Primary Contact name and phone numbers (name and phone number are stored in the client employee record).

I think I need a portal here, showing a single record which is the Cust_Company_Entity who is defined in the Cust_Entity_Role_Join table with the entity's FK Company_ID field matching the company PK Company_Field and the Cust_Entity_Role_Join record's FK Role_Type field matchin the PK field of Cust_Entity_Role where the role is "Primary Contact"... not sure how to do this correctly though. Table instances? A calc field?

I tried making a 2nd table instance of the Cust_Entity_Role_Join table and relating it directly to the Cust_Comapny table in the relationship graph (I added a calculation lookup field to Cust_Entity_Role_Join to get the company_id), but I'm not getting any data and I think the approach is wrong...

Could someone please advise on a "correct" way to do this? I'm sure dynamicly filtered subsets are staple on this platform. Would really appreciate any help.

Thanks,

Nick

Edited by Guest

Good guess. A calculation field, result text, Storage, [x] Do not store (important unless you want to bloat your file). The calculation is "Primary Contact" (that's all).

A table occurrence (TO) relationship, from Company TO to another instance of the Role-Join table, based on the CompanyID AND the above field, to the CompanyID and Role will match only the primary contact (you do have only 1?).

The name (phone, etc.) will show from one more step along the path, to another instance of the Employee table. These related fields do not need to be in a portal really, since there's only 1 match.

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.