Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Seems like this should be easy, but I can't figure out how to do it.

I have a layout and it has a portal to a related set. I want to perform a find that returns records that match a field in the related set.

For instance, I have a students table and an applications table that is linked to the students table. I have a layout displaying data from the students table with a portal to the applications data. How would I return the records from this layout that have have applications submitted in the last week?

Posted

Do you have the Application Date field in the portal?

If so, in the application date field enter:

09/15/2008...09/20/2008

If not, you need to add the field to the portal.

  • Newbies
Posted

Sorry didn't mention that I meant how would I do this via PHP using the FileMaker PHP API, not in the FileMaker Find interface.

Posted

Fist Off: You'll be a lot happier with your page load times if you make a new layout based on the assignments table and search it.

To answer your question: It's pretty much the same thing.


$fm = new Filemaker($database, $server, $user, $password);



$layout = "myLayout";

$findAllq = $fm->newFindCommand($layout);

$findAll->addFindCriterion("submission_date", "09/15/2008...09/20/2008");

$result = $findreq->execute();

use PHP's date() and strtotime functions to get/set the endpoints of your range.

This topic is 5896 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.