Hello
I have an issue on my PCF control that is attached to a view.
I have a data-set called 'gridDataSet'. When the 'updateView' method initially loads, the 'context.parameters.gridDataSet.sortedRecordIds' array contains multiple guids and this is the correct result.
Once I search for a value or add a filter, the 'context.parameters.gridDataSet.sortedRecordIds' array always returns 0 guids. Even If I then clear my search value and remove all filters, the 'context.parameters.gridDataSet.sortedRecordIds' array again returns 0 guids even though 1000s of record Guids should be returned. The 'context.parameters.gridDataSet.paging.hasNextPage' returns false and the 'context.parameters.gridDataSet.paging.totalResultCount' contains a number > 0 if the results are less than the page size.
Other views on the same table work correctly and return results, it's just my PCF Controls view that returns 0 values when it's modified. If I remove the PCF control and then modify the filter, values are returned. My PCF control was working until I published all customisations so I'm not sure if something outside the PCF control is configured incorrectly or not.
Update View method
updateView = function (context) {
var _this = this;
if (!context.parameters.gridDataSet.loading) {
if (context.parameters.gridDataSet.paging != null && context.parameters.gridDataSet.paging.hasNextPage == true) {
context.parameters.gridDataSet.paging.setPageSize(5000);
context.parameters.gridDataSet.paging.loadNextPage();
}
else {
//Results on initial Load before I change the filter
//context.parameters.gridDataSet.sortedRecordIds contains 17800 guids
//context.parameters.gridDataSet.records is a populated object
//Results on after filter is changed or I search a value that should have > 0 results
//context.parameters.gridDataSet.sortedRecordIds contains 0 guids
//context.parameters.gridDataSet.records is a null object {}
}
}
}
Thanks in advance,
Demi