Solved

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

Posted on 2014-04-18
2
1,411 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 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

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…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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