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.

Advice regarding container table

Featured Replies

I'm looking for advice regarding strategies for storing photos/scans within my database. Currently, I'm of the mindset that I would prefer to have a single 'container table' that is used throughout the database where needed. This table would have a few identifiers, which autofill based on where (as in from which layout, or where on the layout) the container is populated. Then, there would be a single layout where all photos/scans could be browsed/filtered/etc based upon those identifiers. 

First question, is this design good practice or should I reconsider my approach? Please note that for my purposes a container is not always necessary for every record (i.e. some records will have photos attached to them, and many others will not), and some records will need multiple containers (a record can have more than one photo attached to it). 

Second, in the case this is good practice, are there any examples available on how to best implement it?

I really appreciate your time, please let me know if further clarification of my question is necessary. 

  • Author

Thanks bcooney for the advice, I'll have a look at this option! Hadn't thought about backups, so having the external file seems a really good solution. Will still need to figure out how to make it work with my layouts so that the appropriate identifiers will populate whenever a photo is added. 

Thanks!

Not sure what you mean by identifiers. Perhaps you mean the foreign key? Since this table ( maybe in its own file) , can relate to many entities, perhaps add ParentEntityId and EntityTypeId?

If you use UUIDs, it is highly unlikely that any parent from across all entities that relate to your container would have the same uuid. 

EntityType table would have a row for each possible parent entity. For example, “Invoice” is entitytype 1. We typically don’t use uuids on a lookup table. 

Hi Eli,

Whether you store your containers externally or internally in the file, you can have several tables share that Container file.  Any information you include in in an auto-enter can be transferred to the Container table when you insert the photo or file into the container (please see attached).

Hi Barbara!  Nice to see you again!

Added:  If you are really worried about duplicates, you can include the table in each Parent table.  Create an unstored calculation and include it in the relationship instead but most feel that isn't necessary.

 

DataWithContainers.fmp12

Edited by LaRetta

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.