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.

Related Search Limitation?

Featured Replies

  • Newbies

Hi all,

Is there a limit to FileMaker's API for PHP/CWP in terms of searches to related tables? It seems that I can search "1 relation deep", but I can't go "2 relations deep"

I have three tables: STUDENTS, ENROLLMENTS, and PROGRAMS. The first, STUDENTS, has a single->many relationship with ENROLLMENTS (since students enroll into subsequent semesters). ENROLLMENTS has a calculation field bringing in the Location of the Program to which the student is Enrolled with a single->single relationship to the PROGRAMS table. The field that I'm searching is a calculation "lookup" based on the ProgramID field that the ENROLLMENTS table holds and matches to a unique ProgramID in the PROGRAMS table.

I've tried it with and without the STUDENTS->ENROLLMENTS portal around the field STUDENTS->ENROLLMENTS::IN_PROGRAM_Location (no, I don't have arrows in the real names).

When I do a simple search in FileMaker for, let's say for New York, I get a number of results -- with or without the portal on the layout.

When I do the same search of the field STUDENTS->ENROLLMENTS::IN_Program_Location in my PHP script I get 0 results.

This is my code for the searches that don't return results:

$find->addFindCriterion("ENROLLMENTS::IN_Location", $_POST['location']);




Other searches to data fields in the ENROLLMENTS table (i.e. ENROLLMENTS::Status) are working correctly, but they do not include a calculation to another related field.





For example, this works:


$find->addFindCriterion("ENROLLMENTS::Status", $_POST['status']);

I'm thinking this is a limitation to the API/CWP, but if someone can answer me definitively, I'd be most thankful!

Thanks!

Gordie

Edited by Guest

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.