AnsweredAssumed Answered

PHP FileMaker Compound Find Error

Question asked by ArturoIacobelli on Mar 3, 2016
Latest reply on Mar 3, 2016 by ArturoIacobelli

I believe I found an error in this compound find command.

 

$compoundFind = $fm->newCompoundFindCommand('PHPListings');

  $findCommand = array();

  $left1 = 450;

  for($counter = 0; $counter < ($arraypermissionscount + 1); $counter++)

  {

      $findCommand[] = $fm->newFindCommand('PHPListings');

      $findCommand[$counter]->addFindCriterion('Type', '=='. 'Agreement');

      $findCommand[$counter]->addFindCriterion('DocumentLevelNoSpaces', '='. $arraypermissions[$counter]);

      if(isset($searchparameter))

      {

           $findCommand[$counter]->addFindCriterion('PHPSearch', $searchparameter);

      }

      $compoundFind->add(($counter + 1), $findCommand[$counter]);

  }

  $result = $compoundFind->execute();

 

I get this back on my web browser.

 

PHP Notice: Undefined property: FileMaker_Command_Find_Implementation::$_omit in C:\Program Files\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\FileMaker\Implementation\Command\CompoundFindImpl.php on line 54

Outcomes