Iframe Embed in Mendix Studio Pro

0
  I am trying to embed below Iframe Element <iframe src="http://localhost:3000/d-solo/ffa0lqog0kw74e/new-dashboard?orgId=1&from=1768287097905&to=1768297897905&timezone=browser&panelId=1&__feature.dashboardSceneSolo" width="450" height="200" frameborder="0"></iframe>
asked
3 answers
1

Hi Rahul,

 

It looks like you have double quotes in your URL. Remove those, so the URL attribute just has the following.

'http://localhost:3000/d-solo/ffa0lqog0kw74e/new-dashboard?orgId=1&from=1768287097905&to=1768297897905&timezone=browser&panelId=1&__feature.dashboardSceneSolo'

You only need the single quote for a String in a Mendix application.

 

Update: Looking at your comments about it not working, I would check if the application you are embedding allows itself to be used in an iframe. Check the X-Frame-Options HTTP header being sent from the site you are embedding. You can also check the console on your web browser. There should be an error message there saying what has gone wrong.

 

I hope this helps. Good luck!

answered
2

In your screenshot, the iframe URL property is set as an expression, but it is wrapped in quotes like a static string. When Mendix evaluates it, the result becomes empty/invalid, which causes the 400 error.

What to do:

  • In the iframe widget, set Source = URL

  • Click Edit next to URL

  • Remove the quotes and make sure the expression evaluates to a valid string

    (or simply paste the full URL directly without using an expression)

 

answered
0

image.pngimage.png

 

see these are the output screenshots

answered