[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2014-04-18
2
Medium Priority
?
1,545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Peter Harris earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

650 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