Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
pbiembeded
Regular Visitor

Export JSON data in to CSV format on button click Of Custom Visual

Thanks for the help in advance.

I have 2 questions :

 

1.  How one can export JSON data into excel or csv from custom visual on Javascript button click event ?

I want to export JSON data into CSV file from Custom Visual on Javascript button click event. My data size could go upto 100MB. Please let me knwo if you have any sugeestions.

2. How I can fix below exception?

I tried export to excel using windows.open on button click, but I am getting below exception: 

Block windows.open  in new window  because the request was made in sandbox frame whoes "allowed-popups" permissions is not set.

Please let me knwo if anyone knows how to fix this exception.

Total I have 2 things.

1 REPLY 1
dm-p
Super User
Super User

Hi @pbiembeded,

Your error is basically that - visuals run in a sandboxed iframe and are not permitted to export data. The only permission currently set is allow-scripts.

It is unlikely that MS will change this, but you can always make a feature request in the GitHub repo for the SDK. There is already one for something similar that you could probably add your voice to.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors