Newbies cjoyce Posted September 18, 2008 Newbies Posted September 18, 2008 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?
aldipalo Posted September 18, 2008 Posted September 18, 2008 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 cjoyce Posted September 18, 2008 Author Newbies Posted September 18, 2008 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.
Baloo Posted September 23, 2008 Posted September 23, 2008 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.
Recommended Posts
This topic is 6164 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 accountSign in
Already have an account? Sign in here.
Sign In Now