PHP API - repeating fields
how do you reference repeating fields returned in a record via the PHP API
You use the following syntax:
where 1 is the repetition number you wish to target.
Now having a problem with writing/editing the repeating field. What is the best documentation source for these questions?
This does not work:
$FMEditCommand -> setField (('Grid_Location_Name', $x), "Test");
The syntax for setting a field and specifying the repetition number is similar to retrieving the field value. This is from the PHP API documentation which you can find in your FileMaker Server folder. On my Mac it's found at:
/Library/FileMaker Server/Documentation/PHP API Documentation/index.html
$record->setField('firstName', 'Andrew') , 2 ;
where 2 is the repetition number you wish to target.
Thanks Andrew - appreciate the fast response.
Retrieving data ...