Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all, I'm trying embed report on my Website. But sometimes iframe stucks on loading sometimes is working.
Below is my config :
var configR_desktop = { type: 'report', tokenType: models.TokenType.Embed, accessToken: TokenReport, embedUrl: UrlReport, id: embedReportdId, pageName: 'ReportSection', settings: { filterPaneEnabled: false, navContentPaneEnabled: false, localeSettings: { language: "en" }, background: models.BackgroundType.Transparent } };
And I need to refresh the website until embedded report working,
Everybody knows What's wrong with that? I would appreciate.:)
Solved! Go to Solution.
I fixed this problem. It's async problem.
In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network.
Hi @bboy81905,
1. If it's possible the token expires, how did you get token?
2. Were there any error messages in the browser console?
Your config looks good.
Best Regards,
Dale
Thank for your reply @v-jiascu-msft
I fixed this problem. It's async problem.
In this case, Web got token from the server using socket.io. But sometimes Web cannot get Token immediately to set config because of a slow network.
That's great. Thanks for sharing.
Best Regards,
Dale
Hi -
We're also trying to achieve the embed using JavaScript but somehow it is not working.
Can you please share your full JavaScript code with config? Didn't it require to generate a new token when it expires?
Much appreciated.
Thank you
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |