gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 16 forks source link

Unable to override portal record limit of 50 #54

Closed mmcdaniel-lsm closed 1 year ago

mmcdaniel-lsm commented 1 year ago

We have several layouts which utilize portals. We've discovered that are portal fields are only returning 50 records.

Reviewing the FileMaker Data API documentation this appears to be the default behavior if the parameter _limit.portal-name isn't set. https://help.claris.com/en/data-api-guide/content/get-range-of-records.html

Looking at the getRecords() function in FileMakerConnection.php, it doesn't appear like there is currently a way to set the limit on a portal field.

Smef commented 1 year ago

This has been added in version 1.1.0 and the documentation has been updated with limitPortal() and offsetPortal(). The portal() function has also been fixed/improved along with this.