[Pas2js] Post in TSQLDBRestDataset
Gabriele Cappelletto
cappelletto at inwind.it
Mon Apr 12 17:33:19 CEST 2021
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?
Thank you
Il 12/04/21 12:00, Gabriele Cappelletto via Pas2js ha scritto:
> 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
> _______________________________________________
> Pas2js maillist - Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
More information about the Pas2js
mailing list