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

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

Recommended Posts

  • Newbies
Posted

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.

This topic is 3487 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.