Long story short:
I am trying to set a node's label based on info in some other properties on the same node.
I want the node label to be an "app name", which is retrieved by sending an "app ID" to a REST API on a server (whose hostname, port and TLS client cert) is kept in a "server" config node).
The docs hint that labels might not be evaluated often enough to allow for example a message event handler (
node.on('input',) to change the label... or?
I have also tried solving things from the property editor.
Placing a button there, and then from within the button's click event handler get the needed info (=appName) from the REST API, and finally placing the app name in the regular node name text box in the property editor. Problem there is that it doesn't seem possible to access a config object from within the button click event handler. At least I failed..
That would be a nice workflow though: The user enters an appId in the property editor, clicks a button next to the appId edit box, and the appName is automatically inserted into the node's Name field.
Possible or is there something fundamental preventing it?