#1 Yesterday 09:17:02

DonAlfredo
Member
Registered: 2023-10-31
Posts: 19

Map to Fieldbits

Hello Ab,

I am using the TRttiMap to map between a CollectionItem and a TOrm. Works well.
However, sometimes I need to use the Fieldbits to update only certain TOrm fields, base on the CollectionItem fieldnames.
Feature request.
Be able to use a Map to get the bits for TOrm from Item fields.
Something like function FieldBitsFromRttiMap(const aObjectFieldsCsv: RawUtf8; const aMapfromObjectToOrm:TRttiMap; var OrmBits: TFieldBits)
I hope you will be able to implement or accept a pull for this, if I am able to do this myself.

Thanks.

Offline

Board footer

Powered by FluxBB