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 or portal???

Featured Replies

not quite sure about this one..... I am trying to have data in one file(File : (that will change occasionally, yet be necessary for each record in another file(File A)). I am not sure whether I should utilize a relationship or a portal as this is not something I have used before. Here is what I am trying to do: I need a school name, address, and policy # in file B(child) to be used in File A(Parent). There are similar fields in each file. any thoughts....

If I'm understanding you correctly, and I'm not sure that I am.

In File A, create a relationship to File B. Then create a portal in A and use the relationship to view the fields that you want to view.

Be sure the fields used meet the requirements of a relationship. For more information, consult the manual or the Online Help available in FileMaker when it is open. The Online help is really helpful, just type Relationship in the Index window.

HTH

Lee

Hmmn... Whether or not a portal is required depends on whether there will ever be more than one record from file B which relates to any given record in file A.

If each record in A has only one corresponding B record, then rather than using a portal (which lists a series of related records), you could simply place fields from B directly onto the layout in A and the correct B data will be sourced and displayed via the A-B relationship. wink.gif

I know this, but he asked about the portal!

Why are you always dancing on my toes?

Lee Smith Wrote:

I know this, but he asked about the portal!

I daresay you do, Lee, but wenzelj may not, and that, FWIW, is the point.

Lee Smith Wrote:

Why are you always dancing on my toes?

Truly, I have no interest in your toes. smile.gif

  • Author

When I create the relationship and enter the information all I get in the file where the info is supposed to be is "Name Insured Sec::Name School" or similar for each field in the record. None of the info comes out right.

what am i doing wrong here?

Try attaching a zipped sample of your file, so we can look at it.

  • Author

here it is. pword user. the part with the relationship is between policy holder info on students and the record in the school file. any other questions please ask....

Did you change the name of either file? All of the relationships in students show <File Missing>. I do notice, however, that you have relationships defined for most of the address and phone fields. Is there a reason for this? You should only need one relationship to match the ID between the two records (in this case I would assume it's Policy Number). Then you can show all data in the related record using Policy Relationship::somefield. I don't see anywhere in the file where you're using the related data though.

  • Author

I did this quickly at the end of work. I'll redo it and try it again later.

  • Author

I got the whole relationship thing figured out. But one more question. I have to have the related field filled in for this to work. Is this customary or could it have to do with a script that I run to fill the other fields associated with the file?

Thanks

Most often one would use a portal to the related file with 'Allow creation of related records' selected in the relationship, so that the relationship is connected automatically when someone makes a new entry. However, you can also do this with a one-to-one relationship. Just put your related fields on the layout, make sure a policy number has been entered, and then enter your data. Since the 'Allow creation of related records' is activated, a new related record will be created if it doesn't already exist. See attached for example.

pc.zip

  • Author

Here is a sample file of what I have been working with. Everything seems alright, just still trying to figure out the whole situation with having to enter the "policy number" before activating the other information in the relationship.

I have a script set up on the Medical Policy Layout under "school insurance" that enters the information, yet this only happens when the policy number is already enter. Is there anyway to hit the button, activating the script and have all the information entered without having to enter the policy number prior.

hope this is a little more clear now.

students.zip

Notice in my attachment above that there are no fields in the main file that are in the second file, except for the relationship's key field. In general, any data that is specific to the second file doesn't need to be in the first. You can remove all the insurance specific fields in the main file that are duplicates of those in the second, and simply use the related fields on your layout.

No script should be necessary. Once you have the key fields (policy numbers) for the relationship entered, just enter the data in the related fields.

  • Author

Part of the problem lies within the fact that this relationship can exist for two different situations. One is for Primary and one for Secondary. It is not going to be necessarily one or the other. What I am trying to say is it differs depending upon the record.

Not a problem at all. You have two different relationships, so each will be attached to a different record in the School Insurance Information file. Just use the same fields, but different relationships. For example, change the Name Insurance Co Prim field to be Ins Prim::Name Insurance Company and Name Insurance Co Sec to Ins Sec::Name Insurance Company, on the Policy Info layout. Repeat for the address, city, state, phone, etc. fields. When you enter a Contract Number for the primary, a new record will be created. When enter a Contract Number for the secondary, a new record will also be created. And each set of data (primary or secondary) will be linked to the correct School Insurance Information record.

As long as you can't have one person's primary policy number be the same as someone else's secondary policy number, you should be fine.

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.