Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.

reportfileloaded Event

Answered
Matthias asked on August 28, 2024

Hello,

 

I'm a bit confused about the reportfileloaded-Event. It is present in the API-reference ( https://www.flexmonster.com/api/reportfileloaded/ ), but absent from the Event-List on the left. Also it was removed from the ng-flexmonster component ( https://github.com/flexmonster/ng-flexmonster/commit/089213e9e741c098d60a043a3e34d71b811c7cb8 ).

Why was it removed from ng-flexmonster? Is the event deprecated?

If it is deprecated: are there alternatives?

If it isn't deprecated: could the EventEmitter be re-added to ng-flexmonster and ngx-flexmonster?

 

Kind regards,

Matthias

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster August 29, 2024

Hello, Matthias!

Thank you for your question.

We have removed this event since the reportcomplete event partially duplicates it. This event is triggered after all the data is loaded and the component is rendered with data, indicating the readiness to perform any operations with Flexmonster. We recommend using the reportcomplete event since it is universally applicable for loading a report from the file system and URL or when it is defined within the component's code.

Please let us know if using the reportcomplete event would work for you.

Best Regards,
Maksym

Public
Matthias August 29, 2024

Hello,

 

Thanks for your reply.

After some adjustments to our code, using the reportcomplete event does work. We have some custom data injected into the saved reports that needed to be handled when loading. But it is only present for files, not for the initial inline JSON data, which led to errors.

 

Kind regards,

Matthias

Public
Maksym Diachenko Maksym Diachenko Flexmonster August 30, 2024

Hello, Matthias!

Thank you for your reply.
We are glad to hear that using the reportcomplete event works for you.
Please let us know if other questions arise.

Best Regards,
Maksym

Please login or Register to Submit Answer