webClientDataSet addIndexDef

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?

We see this is missing in the pas2js RTL, so we'll contact the pas2js team to inquiry if it possible to add this in the future.

Okay then I will look for another solution. Thank you for your response