IndexedDB

Hello TMS Team,
Is there a detailed description of how to use IndexedDB?

Can the indexedDB components be used in a data module or only in the main form?

if the properties of the TWebIndexedsDBClientDataset are set in WebDataModuleCreate, the active index is not recognised

Example:
// Setup permanent indexes
idx_DEB.AddIDBIndex('Byfeld', 'feld',false);
idx_DEB.AddIDBIndex('Byid', 'id',false);
idx_DEB.IDBActiveIndex := 'Byfeld';
idx_DEB.IDBIndexDescending := false;

idx_DEB.FieldDefs.Clear;
// add key field
idx_DEB.FieldDefs.Add('id',ftInteger, 0, true, 3);
// make it a hidden column
idx_DEB.FieldDefs.Items[0].Attributes := idx_DEB.FieldDefs.Items[0].Attributes + [faHiddenCol];
// add normal fields
idx_DEB.FieldDefs.Add('field',ftString);
idx_DEB.FieldDefs.Add('show',ftBoolean);
idx_DEB.FieldDefs.Add('tcn',ftString);
idx_DEB.FieldDefs.Add('ecn',ftString);

thank you

Klaus

http://www.tmssoftware.biz/download/manuals/TMSWEBCoreDevGuide.pdf

There is a section of IndexedDB starting at page 594 or if you prefer HTML format:

https://download.tmssoftware.com/doc/tmswebcore/components/tindexeddbclientdataset/