Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
I want a custom dialog box to display when a user clicks on an element within a visual.
I found the following page:
The page describes how to build a date picker dialog. In the new class, there are two import statements that I get an error on:
The first error I encountered was that powerbi was not defined, but I fixed that by including the "import powerbi from "powerbi-visuals-api" before the lines above.
It looks like DialogConstructor Options is not a named member, nor is DialogAction.
Have there been changes that stopped this from working? Has it been moved somewhere else?
Thanks,
William
Solved! Go to Solution.
Hi @WZorn,
I haven't personally used this functionality yet to assist in detail, but which version of powerbi-visuals-api is in your visual's package.json?
These interfaces are added in 3.7.0, so if this is older then you'll need to update this version, e.g. npm i powerbi-visuals-api@3.7.0 or @latest
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @WZorn,
I haven't personally used this functionality yet to assist in detail, but which version of powerbi-visuals-api is in your visual's package.json?
These interfaces are added in 3.7.0, so if this is older then you'll need to update this version, e.g. npm i powerbi-visuals-api@3.7.0 or @latest
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Well, that's a step in the right direction. I can see what's happening now.
When I run npm i powerbi-visuals-api@latest it installs version 3.8.2, but as soon as I execute pbiviz start, it reverts to 2.6.0.
AH. The pbiviz.json still had the earlier version of the api referenced.
The line:
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
11 | |
2 | |
2 | |
2 | |
2 |
User | Count |
---|---|
13 | |
12 | |
7 | |
5 | |
4 |