AnsweredAssumed Answered

No records match the request

Question asked by hava on Aug 6, 2012
Latest reply on Aug 6, 2012 by hava

Hi

I am newbie with filemaker. I am trying to set search function but something wrong and it returns No records match the request even if it is present there. Here is code

 

public function get_row($table, $search='')

{

$layout_object = $this->fm->getLayout($table);

if (FileMaker::isError($layout_object)) {

return array();

}

 

$request = $this->fm->newFindCommand($table);

if ($search)

{

$request->addFindCriterion($search['key'], 'hh@kkk.nn'); // hardcoded but that value copied from FM database

}

$result = $request->execute();

if (FileMaker::isError($result)) {

echo $result->getErrorString();

}

//.....Result: No records match the request

 

}

 

what I am doing wrong?

Thks

Outcomes