Hi,
I'm filtering a list/library control with
let myFilter = '<Eq><FieldRef Name="UserId" /><Value Type="Text">' + myUserId + '</Value></Eq>'
fd.control('mySPDataTable').filter=myFilter
Based on the filtered value, I want to draw a graph with my function
drawChartFromList("myChart", "Data", 17))
However, without the delay, the graph has the "old" values. Probably because the filter is not (fully) applied before the drawChartFromList started...
If I introduce a short delay, everything works fine-:
let myFilter = '<Eq><FieldRef Name="UserId" /><Value Type="Text">' + myUserId + '</Value></Eq>'
fd.control('mySPDataTable').filter=myFilter
delay(200).then(() => drawChartFromList("myChart", "Data", 17));
so my question is: how can I check if the filter is fully applied?
Kind regards,
Bart Plessers