I know, using getData() method in after filter hook, we can get the filtered data, but In my scenario, We are saving the filter condition stack in the db and we are making state as dirty to save the filter condition stack.
In the above case, we need to access external service methods, we achieved by below syntax.
// Able to access class/service methods and objects.
afterFilter: (conditionsStack) => {
console.log('filter config stack', conditionsStack);
this.updateFilterConfig(conditionsStack);
}
// We cannot access class/service methods or objects only HandsOntable Properties and Methods we could access
afterFilter: function (conditionsStack) {
console.log('filter config stack', conditionsStack);
this.updateFilterConfig(conditionsStack);
}
So, You might understand my problem, we are using first approach and unable to access the method this.getData().
Can you please help us on this scenario?
Thanks
Prabu Kuppusamy