[Pas2js] Post in TSQLDBRestDataset

Gabriele Cappelletto cappelletto at inwind.it
Mon Apr 12 12:00:30 CEST 2021


Sorry but it says "{
    "fMessage": "No key field"
} "
I have to do other checks sorry.


Il 12/04/21 11:47, Gabriele Cappelletto via Pas2js ha scritto:
> Good morning,
> i can't modify a TSQLDBRestDataset, ie it seems that the post method 
> is not sending to the server
>
> Server side I put:
>
> FDisp.ExposeDatabase(TIBConnectionDef.TypeName,'localhost','/var/tmpGabry/testrest.fdb','SYSDBA','masterkey',Nil, 
>
>            [foFilter,foInInsert,foInUpdate,foOrderByDesc]);
>
>
> Client side I put:   FData is TSQLDBRestDataset
>
>
>   FData.Post;
>   FData.ApplyUpdates;
>
>   instead I didn't call any method in TSQLDBRestConnection
>
>
> What did I forget to do?
>
> Thanx
>
>
>
>
>
> _______________________________________________
> Pas2js maillist  -  Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js


More information about the Pas2js mailing list