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.

one parent record for portal

Featured Replies

I have a self-joined file with a portal on one of the layouts.

I want to see only one record of the 'parent' with all related records in the portal. For example, if the the portal is for addresses in a particular state, I want only one screen for that state and all the matching records to be in the portal. At the moment, if I had say 100 records for a state, I have 100 records all with the same portal in them.

Sorry if this question is a little dumb.

FileMaker Version: 6

Platform: Windows XP

Glenn->

I'm not sure I'm interpreting your question properly, but here goes: I think you want the portal to show all records that match a value in the currently displayed record. If that's the case, the relationship used by the portal can simply match the field with that value to itself.

In your state example, the self-join relationship would match the state field to the state field. So any address in a given state that is displayed on the layout will list all addresses for that state in the portal.

Is this what you wanted?

  • Author

Thanks Sam, sorry my question was clumsily worded - a confused state of mind too late at night.

Let's say I have 600 records, within each record is an address including the geographical State. Let's say all the addresses are in one of only 6 States. Say 100 records for each. What I am hoping to achieve is a layout somehow sorted by State, so that I only have six records in the set - one for each State, each with the matching 100 records in the portal.

Is this possible to achieve? Do I need a portal within a portal? Perhaps I might need a new file - something I was trying to avoid. Unfortunately my brain is doing circles here.

Hi,

Here's on method even though this would need some settings and scripting.

1) Create a SelfRelationship with the State field at both sides

2) Create a calculation cReturnOne = Case(ID=SelfJoin:ID,ID,"")

Drop this field in one empty layout (only this field)

3) Create a layout with the State field on it and a portal based on the SelfJoin, which I think would hold the contacts fields. Let's call it "State Report Layout".

4) Add a global gStatesID (text)

5) Create a Relationship "UniqueStates"gStates::ID

6) A script

Show All Records

Go To Layout[Empty with cReturnOne field]

Copy All Records

Go To Layout[Any with gStatesID]

Paste[select-gStatesID]

Go To Related Records[uniqueStates-show only]

Go To Layout[state Report Layout]

Even though it seems tedious, you should get your list appearing in less than a few seconds.

Your second idea, "the portal in a portal" would work as well, but you'd have one record only, not 6 of them in a found set.

HTH

FileMaker Version: 6

Platform: Mac OS 9

  • Author

Thanks Ugo, I'll give it a go!

  • 3 months later...

This is my problem too.... but I am using FMPro7. I am very computer illiterate so need easy to understand instructions.

I have set up the relationship - one table with all information in it and the other with only the related info (in my case, Company Name). I have a layout with a portal which links to the staff within the company, but have to manually enter the company name in order for the staff list to be seen.

(1) How can this be done automatically when I add a new record in the main table

(2) Is it possible for no duplicates of the company name to appear as per Glenn C's request

Here's hoping someone out there likes me and will help....

As nobody seemed able to help me on this, I've decided to do away with the portal and create a script that does this for me. Much easier....

all u have to do is to create a relationship between the 2 tables, and check the option "allow creation...." in the child table that u want the data auto-entered.

then when u create a portal, simply take out the field that's related, or if u still want to see it there, leave it.

that should do the job... i work on this sort of layout all the time. let me know if it still doesnt work.

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.