Does PI Coresight and/or PI Vision have the ability to support embedded windows in a non-development environment?
If you want to embed a PI Vision/Coresight display within an existing webpage, you can bring in the display as an iFrame. Depending on your version, you may need to edit the <httpProtocol> section of the web.config to allow the frame:
<add name="X-Frame-Options" value="ALLOW" />
If you want to embed another webpage into an existing display, you could create a custom symbol. We have custom symbol available on GitHub to do just that.
To use it or not in a non-dev environment would be a decision that needs to be made internally, as this is not a native PI Vision feature.
Note: The web.config file to edit is located on the server that hosts the PI Vision site in the %PIHOME64\PIVision directory.
Is this still supported? I have tried getting this to work but keep getting errors in Chrome due to "ALLOW-FROM" option not being supported.
"ALLOW-FROM" option not being supported.
How about the following syntax in the <HttpProtocol> section of Vision's web.config file located at %PIHOME64%\PIVision:
<add name="X-Frame-Options" value="ALLOW-FROM uri" />
Where uri is the web address of the site intended to frame the Vision display. This is from the Mozilla Developer site (X-Frame-Options - HTTP | MDN).
I have multiple instances of internal sites I want to list, so I don't think the single URI will work for me...I did get it to work in IE using :
<add name="Content-Security-Policy" value="default-src '*';" /> however this does not work for Chrome
Note that Chrome ignores the ALLOW-FROM in the header.
I have create my custom widget too. I have an iframe and it loading an URL dinamically via angular ng-src and it works!!
I realised that when I save a display with my custom symbol, while using Internet Explorer, when I return into PiVision Home and try to load "myDisplay", the iFrame does not load the content of the URL. Can you please give me some advice?
I have a client that is interested in embedding live video with your custom widget, but the github link returns a 404 error. Would repost the active link in the comment section please?
The extensibility samples are undergoing internal review so unfortunately we can't provide them right now. Please see the note below, taken from the following page: GitHub - osisoft/PI-Vision-Custom-Symbols.
"The PI Vision extensibility samples that were previously hosted in this repository are currently unavailable, as they are undergoing internal review.
Please reference the PI Vision 2017 R2 SP1 Extensibility Guide for guidance on building custom symbols in PI Vision."
If you are stuck somewhere specific or have questions, please let us know here or through a Tech Support case so that we can help.
Retrieving data ...