FMP PHP API Related Records Portal Issue

Discussion created by danjamins on Nov 20, 2015



I'm having an issue that I can't figure out how to resolve with the PHP API for FM14.


I have a web app I'm building that pulls from a layout in my FM14 database, it pulls a customer record and then pulls related invoice records from a portal on the layout. This works fine.


The issue that I found is when a customer without any related records in the portal logs in, they get the following error:


"Related set [table name] not present."


Obviously not all customers will have invoices until they order. Is there a way I can fix this to allow them to login to the page and submit orders if they don't have an invoice related record?


Thank you,