I read on the online documentation about the available variables. It was not clearly documented how they can be used. made some tries like these.
var s=""; s += point.name; s += ": "; s += value; s += point.getTextRenderer().getSuffix(); s += " = "; s += renderedText; return s;
it prints out like this "Temperature: 21.375°C = 21,4°C"
Are these variables supposed to be used like this? :) It seems easiest to figure out the interfaces/methods on different objects by digging around the source codes. Would be great to have some list/tree/doc about the different objects.(maybe some html help/pages generated automatically from sources)
I have been thinking to make a small alarm panel on a graphical view, with selected events related to the view. I was looking for the event objects and trying to find out how I could get grab on the string which is printed on event list. Again diving into sources and ended up to this try and it does not work like supposed. And the next hop is missing :(
var s="" s +=events.get(0).message.key; return s;
(I found out by trying and the error messages gave hint the "events" is a list type of object) The message is object type of LocalizableMessage.
On the sources one essential file is missing and it seems to be used all around: "import com.serotonin.web.i18n.LocalizableMessage;"
Please tell where to find this?
Any hints how to make the alarm list?