cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Re: Phased Embedding API with Preload error

Hi,

 

Ok Thank you. I have one more doubt, what should I use instead of powerbi.embedNew()?

We are using embed.New() for Replacing the current embedded report with new one on same page.

Highlighted
Microsoft
Microsoft

Re: Phased Embedding API with Preload error

To add a new embedded object into a div that already contains a exisitng embedded object, i have been using this code.

 

 

powerbi.reset(embedContainer);
powerbi.embed(embedContainer, config);

Add I looked at the Power BI JavaScript API today, I noticed there is a new method on root powerbi object named 

addOrOverwriteEmbed. I have not used that, but I am curious as to whether that can be used in this scenario as well.

 

Highlighted
Frequent Visitor

Re: Phased Embedding API with Preload error

I'm getting the same issues as everyone else. One thing I noticed in your code is that you use the baseUrl at "https://embedded.... not https://api as the docs suggest. Can you explain this? However even when I altered my url to "embedded" it still didn't work.

Highlighted
New Member

Re: Phased Embedding API with Preload error

Hi,

 

According to the example, event handler of powerbi.preload( config) is not getting fired. Is there any solution to it?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Kudoed Authors