Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am creating a custom visual in powerBi service. But Facing problem when trying to redirect on click of button or even on the click of anchor link.
Error which I am getting when trying to redirect using javascript-
Blocked opening 'www.google.com' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.
Description About the visual:-
I have three dropdown in my custom visual whose values i have to supply as query parameters with a url. So, that it can interact with my webservice and create the pdf or ppt.
But i can unable to open this link in seperate tab by using javascript or even from anchor link.
I can share the code if you want.
Please help its urgent . Thanks in advance.
Solved! Go to Solution.
Hello @amitsangal78,
Power BI Custom Visuals API 1.7 doesn't allow to open any external urls due to security risks.
This feature will be included into API 1.9.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I suppose that API 1.9 will be released by end of this year (we don't have a clear ETA at lest for now).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
API 1.9.0 has been released recently.
This version introduces Launch URL API that allows custom visuals to open external URLs.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Please let me know if this is possible in power Bi or not. I am stuck very badly init.
Hello @amitsangal78,
Power BI Custom Visuals API 1.7 doesn't allow to open any external urls due to security risks.
This feature will be included into API 1.9.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I suppose that API 1.9 will be released by end of this year (we don't have a clear ETA at lest for now).
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
API 1.9.0 has been released recently.
This version introduces Launch URL API that allows custom visuals to open external URLs.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hey the url for 'Launch URL API' is not valid. Can you give me an updated url or tell me how to enable 'allow-popups' permission so I can open a new window from the sandbox. Thanks
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
17 | |
11 | |
5 | |
4 | |
3 |