I would like to add an index (in runtime) to a webClientDataSet and i am using the following code.
with cds.Indexes.AddIndexDef do begin
Name := 'datumINDEX';
Fields := 'Datum';
Options := [ixDescending];
end;
Unfortunately it doesn't work. In the VCL i use the following code:
with cds.Indexes.AddIndexDef do begin
Name := 'datumINDEX';
Fields := 'Datum';
Options := [ixDescending];
end;
cds.IndexName := 'datumINDEX';
but "cds.IndexName" does not exist in the web variant. How can I add the index to the webClientDataSet?