Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Embed Report Via Widget Editor

Eric F_
Tera Contributor

Is it possible to embed a report inside a widget similar to embedding a widget  inside a widget using $sp.getWidget and sp-wdget?

4 REPLIES 4

Raghav Sharma24
Giga Patron

There is an OOB report widget which can be used to add/view any report on portal

Eric F_
Tera Contributor

Thank you, Raghav. I guess I should explain a little more. In my custom widget, I'd like to be able to click on a button and have a report show inside a modal.

I know that I can call $sp.getWidget in the server script and pass a widget id and its options, then use sp-widget in the html to render the widget. So, wondering if that's the same approach to take for a report.

I think for report you need to use iframe and pass the report url, you can try this.

I dont think you can directly call the report

@Eric F. Please feel free to mark this answer as correct/helpful , if this helps.