Skip to content

You can't update certain fields - you have to update all at once. #19

@mrchimp

Description

@mrchimp

Hello! Me again!

If I run an edit command (or a commit on an existing record) and don't set all required fields, I get a FileMakerValidationException with code 0:

FileMakerValidationException in Command.php line 155:
Field name is required
Field code is required
Field category is required

The same thing happens if I do:

$edit = $fm->newEditCommand('SomeLayout', $record_id, ['foo' => 'bar'];
$result = $edit->execute();

...or ...

$rec = $fm->getRecordById('SomeLayout', 6);
$rec->setField('foo', 'bar');
$result = $rec->commit();

The FileMaker API docs don't really specify whether this should work or not but if it doesn't it means a bunch of extra code for each update. Any ideas?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions