How to create Tdatasetfields in Tfdmemtable at runtime

Asked

Viewed 1,332 times

2

With Clientdataset it was possible to bring a Tdatasetfield field with another data structure (another table) internally. This was done automatically by Tdatasetprovider.

I’m migrating to Firedac and Tfdmemtable, but unfortunately it doesn’t seem to have this same facility as Clientdataset (although it has support for this field). And I need him to sustain this structure because I have mapping based on that.

Someone would know how to create this Tdatasetfield at runtime?

  • You can do it with Fdmemtable by using . Data, with it you have the facility to copy the entire structure (Fields) of a dataset (Fdmemtable/Tfdquery) with the information that is loaded in the dataset, to another Fdmemtable structure, or you also have the alternative of using . Clonecursor that also copies the structure (Fields) and the data with the choice of parameter to copy the events of a dataset.

  • I’m sorry, but your answer does not answer the proposed question. More than copying the data to Fdmemtable, I need to copy the entire Master/Detail relation, as is done in Clientdataset, when the Datasetprovider is connected to two Queries in a master-detail relation. As this [apparently] is not possible, I thought about doing it manually. However, I cannot create Tdatasetfield.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.