Getting a record count with SData
Copy this code and paste it in your HTML
var service
= new SDataService
("http://localhost/sdata/slx/dynamic/-/",
"admin",
""); var request
= new SDataResourceCollectionRequest
(service
) {
ResourceKind = "contacts",
Count = 0
};
var entry = request.Read();
var total = entry.GetOpenSearchTotalResults();
Report this snippet
Comments
Subscribe to comments