Newbies iiiryan Posted May 8, 2015 Newbies Posted May 8, 2015 Hello! I'm attempting to display a portal field. $find = $fm->newFindCommand('PHP_Client_Live_Container_All'); $find->addFindCriterion('All_Timesheet_Number', $tsn); $find->addFindCriterion('Job ID', $jid); $findResult = $find->execute(); $timesheet = $findResult->getFirstRecord(); $relatedSet = $timesheet->getRelatedSet('OnlineTS'); if (!FileMaker::iserror ($relatedSet)) { foreach ($relatedSet as $relatedRow) { $clientName = $relatedRow->getField('OnlinteTS::Client_Full_Name'); echo $clientName; }} Upon looking at our database, I find that the record stored in $timesheet is on a table related to OnlineTS through another table. I am assuming this can pose problems for getRelatedSet(). Up until now I've just been doing a separate findCommdand to access the portal data. I'm sure there is something I'm missing here. I'd appreciate if anyone would be able to help me out. Thank you.
Recommended Posts
This topic is 3779 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