Sub LoadPivot()
page.PauseDelayed(2000) ' if loading the pivot takes more than 2 seconds, show the animation, else don't
Dim pivot As ABMPivotTable = page.Component("pivot")
pivot.SetDocument("../pivots/OneTwo_Export2020.csv","Jaar", "Project naam", "Prijs,Aantal,Persoon code,Project code,Activiteit code")
pivot.Refresh
End Sub
Sub pivot_Loaded(Success As Boolean)
Log("loaded: " & Success)
page.resume ' remove the animation, if present
If Success = False Then
myToastId = myToastId + 1
page.ShowToast("toast" & myToastId, "toastred", page.XTR("1134","There was an error loading the data in the pivot!"), 5000,False)
End If
End Sub