[Pas2js] Post in TSQLDBRestDataset

Michael Van Canneyt michael at freepascal.org
Mon Apr 12 18:26:42 CEST 2021

On Mon, 12 Apr 2021, Gabriele Cappelletto via Pas2js wrote:

> I can't solve the problem. How do I declare the primary key to solve the 
> problem below. I tried like this but I don't solve
> .Fields.FindByFieldName('ISO').Options := [foInKey];
> How should I do?

Where do you do this ?

You must do this in the server, after the ExposeDatabase statement.

If you have defined primary keys on the server database fields, they should
be picked up by the server. If you didn't then you must define them
manually for every table...


More information about the Pas2js mailing list