127
Views
1
Comments
Embedding grafana dashboard in an iframe in outsystems Reactive web app
Application Type
Reactive

Embedding grafana dashboard in my web app, using Iframe widget

which is embedding the URL in an iframe- 

after putting the credentials it shows the login is successful is redirecting me to same page again

however when I incorporate this url in link widget it works absolutely fine and opens the link in new tab.

2022-09-04 15-01-10
JayPea

@Malvika Singh 

Not sure I fully understand the issue but I do know the target = "_blank" sometimes doesn't work on buttons but does work on links.

A way around it on buttons is to use some Javascript  lick this....


In the javascript you build out the url and pass in any get variables as input parameters and concatenate the URL string. You prefix the string with window.open and place the URL within it. This will cause the URL to open in a new window.

e.g.

window.open('https://www.google.com' + $parameters.YOURINPUTPARAMETER + ',' + 'blank')

The , + blank at the end is important and needs to be included but you can add as many input parameters and concats as you like until the url is correct.

To add an input parameter to you JS you go here, right click on parameters and add them.


I hope this helps, apologies if I misunderstood the requirement.

Have a good =D

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.