Solved

FileMaker: GetNthRecord related field of a related row in a portal

Posted on 2014-04-18
2
1,355 Views
Last Modified: 2014-04-18
Hi Experts,

So I'm having a little issue retrieving the value of a related field of a related row in a portal.

I have 3 tables with the following relationships:

people
person_id, name, address_id

addresses
address_id, address, state_id

states
state_id, state_name

I have a layout based on the people table with a portal based on the addresses table that shows all addresses for one person.

I'm trying to get state_name of the nth portal row in one of my scripts:

GetNthRecord ( states::state_name; $rownum )

but it doesn't work. I'm getting nothing. If I do:

GetNthRecord ( addresses::address; $rownum )

it works.

Any suggestions?

Thanks
0
Comment
Question by:rmartes
2 Comments
 
LVL 5

Accepted Solution

by:
Peter Harris earned 500 total points
ID: 40009885
One option:
In Addresses table create a calculated field (say called c_state_name) that holds states::state_name (based on a relationship between Addresses and States by state_id.

Make sure this is working, then you can use:
GetNthRecord ( addresses::c_state_name; $rownum )
0
 

Author Closing Comment

by:rmartes
ID: 40009935
Perfect!
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FileMaker Pro Reporting on relational database 4 456
FilemakerPro 10 archiveing 2 44
Adding a portal to a layout using existing fields 2 67
send mail from Filemaker Pro 10 4 104
Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question