Can I somehow edit display to add some symbols by code in PI Vision ?
Ex. A button which add new Value to Display
If someone will be interested in the same question: "how to add any symbol by code". I find the answer during work. It is possibe to do using displayProvider and function:
addSymbol(symbolOrTypeName, x, y, dataSources, config)
Thanks all for your help
Thanks for posting on PI Square and welcome to the community.
Can you provide us with a product. We have many Visualization Products that can display values. Please let us know and we'll see if we can find an appropriate solution for you.
Sorry that I do not provide enough information, I thought that category and tags will be ok.
This question is about PI Vision software.
Yes, it is possible.
See here for an exemple: PI-Vision-Custom-Symbols/tutorials/simplevalue at master · osisoft/PI-Vision-Custom-Symbols · GitHub
There is also some online courses here: Customizing PI Vision with Extensibility
Yea, I see this tutorials, but the idea not in creation custom symbols. Idea is add any symbol (custom or standard) to display using code, not PI Vision drag & drop functions.
The usuall case look like this: we select asset, then attribute and the drug it to display. My needs is to avoid this process. And some how add it by my self. Edit some display file(if it is exists)or create custom symbols which will do it for me.
I don't know if it's possible.
Keep in mind, I'm not an expert in PiVision so I don't know if it's really possible or not, but coding a webpage is how I'll resolve your problem.
I would either have a look at the PiVision sourcecode .js files to find out how a symbol is added, or just open the PI Vision page, In Developer tools look at the Event Listeners on the various elements, and find out which calls are made.
Retrieving data ...