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.

Relationships - I Think?

Featured Replies

Hello,

Just learning FM and what I am trying to do is within an order entry system pull client information from a separate database populating the information into the main order entry data base by selecting a client from a drop down list...am I explaining myself clearly?

any help would be greatly appreciated.

thx

G

I was just about to reply, then I saw you're using FMP 4 - I'm not even sure what that one has.

If you want to keep the client data in the other file, you need to create a relationship to it (on clientId, for example) that will let you display those related fields in this file. You can create a value list that shows all clients from that related file, and use it to setup your popup list.

  • Author

Thank you...I have done that and it works. But I don't think it is the correct way of doing what I want to accomplish.

Scenario: I have the main database whereby a relationship is set to match the customer and pull customer information over from another database.However,if the other database is for some reason not there the fields in the main database show as which I understand. My question is, how do I keep the fields populated without having the other database around?

Thank you

G

Well the data is never really "pulled" across from the other database in the sense your thinking...

Even while it's on your layout, the data is being displayed directly from the other file and when you save it, it is being saved back to the other Database (hence why you get when your file reference is missing)... None of the data is actually ever physically stored in your primary file.

  • Author

Is it possible to have the data physically stored in my primary file?

Thank you very much

G

  • Author

Which version and is it straight forward to do?

Thank you

G

Well... Prior to FileMaker 7, all tables had to be kept in separate files i.e. each file represented a table...

In FileMaker 7+ every file can have lots of tables...

However,if the other database is for some reason not there

A file is just a file. A Filemaker solution can have many files (in versions before 7, it practically had to have multiple files to be useful). A solution needs all its files in order to work. So you should eliminate, as much as as possible, any reasons for the 'other file' not to be there.

For example, you could put all your files in a 'Required Files' folder buried deep in the solution's folder, and access them through a shortcut. Or you could have your main file at the top level, with auxiliary files hiding in the folder.

  • Author

Sounds complicated...is there anyway to just copy and paste with the same result?

Thank you

G

I don't think I understand your problem. How will you copy from a file of clients, if it isn't there? But if it is, than a relationship will fetch the client info as soon as you select a client for the order - much simpler and neater than copy/paste.

  • Author

I have the relationship but going back to my scenario

"Scenario: I have the main database whereby a relationship is set to match the customer and pull customer information over from another database.However,if the other database is for some reason not there the fields in the main database show as which I understand. My question is, how do I keep the fields populated without having the other database around?"

Thank you

G

Why won't the other database be around though... that's what I think comment's questions were trying to work out...

If the main file is there, why cant your secondary file just be in the same folder as your main file?

To answer your question literally: define some fields in the 'main' database to hold this information, and make them lookup the required data from the customer file, using the relationship.

But any serious solution spans several files, and cannot work when some are missing. Even a basic ordering solution needs at least 4 files: Customers, Orders, OrderItems and Products. There is no "main" file to hold ALL of the information for the entire solution.

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.