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.

Featured Replies

Hi! I hope I'm posting this in the right place, and that it isn't TOO simple a question. I'm still a newbie, and am working on a pretty straightforward contact management database in FM Pro 11. Thanks in advance for your help!

 

I need to attach files to quite a few contacts, so I've made a Files tab and added six container fields (and can add more as needed). My problem: I don't know how to add a tiny field next to the tab that shows how many files exist for that contact. I imagine that I'd need to create a function that checks to see which container fields have files, and adds them up. How do I do that?

 

(Also, if there's a better way to attach files to a contact, do let me know. I'm just doing it this way because I thought it was the only way.)

 

 

Solved by doughemi

Go to solution
  • Solution

Make a separate table for Files.  Each record contains an ID number field (with auto-entered serial number) and the container field.

 

Create a join table between Contacts and Files named ContactFiles.  Each record contains a field for ContactID, FileID, and other information (such as date, etc) relating to that one contact and that one file.  Relate that table to Contacts by Contact::ID =  ContactFiles::ContactID and ContactFiles::FileID = Files::ID.

 

Now, if you want to display the files related to a contact, place a portal to Files on your Contacts Files tab.  To display a count, create a calculation field on a layout based on Contacts: RelatedFilesCount = Count(Files; ID)

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.