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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Change the language dynamically in power bi client javascript

I'm trying to find a way to change the language of my pbi report Dynamically.

Apparently, report.updateSettings is not working for localeSettings.

So I tried to reinstantiate a new report in the place of the current one, I did what's suggested in the docs; meaning to remove all the object dependancies towards the dom using:  this.powerbi.reset(embedContainer);

 but I get the following error in the console:  

 

core.js?09c9:1671 ERROR Error: target window is not provided. You must either provide the target window explicitly as argument to request, or specify default target window when constructing instance of this class.
at HttpPostMessage.send (powerbi.js?7599:5593)
at HttpPostMessage.post (powerbi.js?7599:5551)
at Report.Embed.frontLoadSendConfig (powerbi.js?7599:877)
at HTMLDivElement.eval (powerbi.js?7599:845)
at ZoneDelegate.invokeTask (zone.js?d135:421)
at Object.onInvokeTask (core.js?09c9:3816)
at ZoneDelegate.invokeTask (zone.js?d135:420)
at Zone.runTask (zone.js?d135:188)
at ZoneTask.invokeTask [as invoke] (zone.js?d135:496)
at invokeTask (zone.js?d135:1540)

 

 

any help please ?!

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.