The CreatorCon Call for Content is officially open! Get started 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

RaghavSh
Kilo Patron

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


Raghav
MVP 2023
LinkedIn

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


Raghav
MVP 2023
LinkedIn

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


Raghav
MVP 2023
LinkedIn