We have integrated the Custom API with an Angular framework and we are looking into listening for the dataloaded and loadingdata events so we can apply some lifecycle behaviors. However, according to the respective documentations, it looks like these events are not triggered when the data source is the Custom API, is this correct?
olapstructureloaded, at least from our attempts, seems to get triggered as soon as the custom api makes the first fields/members request. Is this the correct behavior? We were looking for an event that gets triggered after the custom api has visualized the data, or at least finished all of its fields, members, and select requests to get the initial data. Is there an event with that sort of behavior?
Thank you for your response.
We are glad to hear that the
loadingolapstructure event works fine for you.
You are right, this event is triggered once when the structure was loaded.
According to your description, it seems the
reportcomplete event would suit your case. This event is triggered when all data was loaded successfully and the grid/chart was rendered.
We have prepared a JSFiddle showing when this event is triggered: https://jsfiddle.net/flexmonster/vnqpmae7/
Please let us know if this is what you are looking for.
Looking forward to your answer.
reportcomplete was exactly what we needed, thank you so much!