Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power BI Visual API; update method not called when changing tabs #519

Open
NoMathMan opened this issue Aug 20, 2024 · 0 comments
Open

Power BI Visual API; update method not called when changing tabs #519

NoMathMan opened this issue Aug 20, 2024 · 0 comments

Comments

@NoMathMan
Copy link

When report is opened for a first time, custom visual utilizing Visual API calls Constructor and Update method. However, when changing to another tab returning to original tab, Visual API calls the Constructor of a custom visual, but not the Update method. What is recommended approach to call Update method when changing tabs, or is this not intended behavior? This problem is severe, because not calling Update while instantiating a visual via Constructor method does not expose any properties of that VisualUpdateOptions type has, most importantly the dataViews. The dataViews play critical role in our visual to make attached logic in event listeners’ handlers to work properly.

We implemented workaround to call host’s fetchMoreData method, which works in PowerBI App Service, but not in Power BI Desktop. And I believe this may not be correct, because when switching tabs data updates for normal visuals either way. This explicit call then introduces another call, possibly degrading performance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant