VirtualDataset for accessing i.e. tObjectList or tArray of Records

Hi guys,

do we have a component or functionality in TMS for creating a Custom Dataset for accessing tobjectlist, tArray of Records or other informations from a Dataset?

Wouldn't that be TAureliusDataset? Is there something in it you miss regarding what you asked for?

So i missed something. I'm not aware of tAureliusDataset - will check this now. Thanks Wagner.

Is there a demo how to bind tAureliusDataset to a tObjectList or a tArray of Records?
I don't want to create something like a MemoryTable where i load the Table with data. It should access the tObjectlist or the tArray in realtime so we can connect it in simpliest way to a dbgrid as an example to edit / view data.

Sure, you just use AureliusDataset.SetSourceList(MyObjectList) and it should work.

I suggest you look at the docs first:

https://doc.tmssoftware.com/biz/aurelius/guide/taureliusdataset.html

Your example is very good, but I encountered an issue due to the structure of my data. My list is structured as follows:

mydata = record
  name: string;
  value: variant;
end;

mydataROW = record
  fields: tarray<mydata>;
end;

myObject = class
  records: tarray<mydataROW>;
end;

This example simplifies my actual, more complex structure. I do not have any static fields or properties; instead, my structure resembles the one above.

Is there a getter or setter event in tAureliusDataset that allows us to create the records and the fields based on the given structure?

Unfortunately records are not supported by TAureliusDataset. Only objects (class instances).

The example was only to show how the connection between those "Objects" is. the records could be also classes

TAureliusDataset works well with list of objects (TList), but arrays are not supported.

What if we change the declarations as follows:

mydataFIELDS = class
  name: string;
  value: variant;
end;

mydataROW = class
  fields: tlist<mydataFIELDS>;
end;

myObject = class
  records: tlist<mydataROW>;
end;

Can we use this with tAureliusDataset?

You should, yes. I also suggest you just try it.