AnsweredAssumed Answered

Custom symbols: how to add items to display errors

Question asked by Roger Palmen on Nov 30, 2017
Latest reply on Feb 20, 2020 by Sasanka

I have built a few custom symbols that use the WebAPI to retrieve more information. However, that information can be incomplete or missing due to functional or technical reasons. Typically i see those in the PI WebAPI returns (e.g. a 404 access denied), or i derive that in code (missing an attribute i need). Anyhow, i now have some error that prevents me from building the visualisation in my symbol.


I could send these errors to the console log, but that leaves the user in the dark. I could add some message to the symbol indicating there was an issue. But i would prefer to do that in the same way as other symbols: add an error message to the display errors (the exclamation mark in the top right corner).


Or making a long question short: how can i add a message to the display error list?