Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filemaker Field not Found

Tags:

php

filemaker

We ( have ) to use filemaker for a customer but we get a field not found error when adding the request.

This is the code we're using which is serving the $_POST values. (I know that I'm using mass assignment but this is currently in a testing phase)

$newRequest = $fm->newAddCommand('REGISTRATIE', $_POST);
$return = $newRequest->execute();

When we print the results of $return we get the following error without further information.

enter image description here Any idea what might be wrong?

Full Error log

http://pastebin.com/eqYHdDdT

like image 418
Miguel Stevens Avatar asked Apr 24 '15 09:04

Miguel Stevens


2 Answers

Web Publishing in FileMaker this way is dependent on layouts. In your example, the layout you are referencing is named "REGISTRATIE" so all the fields must exist on that layout and be accessible.

If that layout is complicated, consider creating a dedicated web accessible layout with only the fields you need to access and/or return.

like image 135
SoliantMike Avatar answered Nov 09 '22 08:11

SoliantMike


Adding to what has already been said, general best practice with the Filemaker PHP API is to have a completely separate set of Layouts for API interaction.

like image 42
James Gill Avatar answered Nov 09 '22 07:11

James Gill