Filemaker Field not Found
Asked Answered
H

2

6

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

Herdic answered 24/4, 2015 at 9:22 Comment(5)
What's the name of the field?Ehtelehud
Please post the error log instead of an image.Descent
We have no idea.. This is the only error we're getting back ,it's a big form.. over 25 fieldsHerdic
pastebin.com/eqYHdDdT this is the full error logHerdic
@Notflip If you make a loop and prefix the field names with your table name and a double colon, would that work? E.g.: tabel::naamEhtelehud
K
6

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.

Kutenai answered 24/4, 2015 at 12:15 Comment(0)
S
2

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.

Selangor answered 29/4, 2015 at 2:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.