#1 2021-12-06 11:11:51

tbo
Member
Registered: 2015-04-20
Posts: 338

TOrmTableDataSet and calculated fields

Is there a possibility to create calculated fields in a TOrmTableDataSet via source code? Or is there an alternative to calculated fields here?
I have the DB fields FirstName and LastName. But I want to display a string "LastName, FirstName".

With best regards
Thomas

Offline

#2 2021-12-06 13:49:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,337
Website

Re: TOrmTableDataSet and calculated fields

No, there are no such possibility.

The best way is to define a SOA endpoint which returns the expected value for the application, then fill a mORMot TDataSet from the returned JSON.

Offline

Board footer

Powered by FluxBB