Thanks for the example. It's working, but only when the item is NOT subscribed (=used on the screen). I checked to documenation again, and implemented the solution below.
// get properties of item
const im = shmi.visuals.session.ItemManager
let item = im.getItem("SInt")
if (item) {
let prop = item.getProperties()
console.log(JSON.stringify(prop, null, 2))
} else {
console.log("getProperties failed")
}
One question is not answered: Is it possible to write/change the attributes at runtime (with shmi functions, not via API functions).
... View more