cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nikitarathi Frequent Visitor
Frequent Visitor

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
TedPattison
Advisor

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.