record count after query

Good afternnon to all,
after a simple query like, in a test web application

TXDataWebDataSet .Close;
TXDataWebDataSet .QueryString := '$filter=startswith(Descrizione, ''MAG'');
TXDataWebDataSet .Load;

I'm not able to get the total record count
I tried with

TXDataWebDataSet .Recordcount (*1)
or
'$filter=startswith(Descrizione, ''MAG'') + '$count' (*2)

but
(*1) reterun always 0
(*2) i get a long red error message into browser

The query works well because the webdbgrid is rigth filled.

Thank's for your help

Regards

Daniele

Hi to all,
solved with

TXDataWebDataSe.ServerRecordCount

in AfterOpen event and set ServerRecordCountMode to smInlineCount

Daniele

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.