Out of interest, what wider uses does it have beyond getting/setting values from global context? When the Change node becomes context aware, that's exactly what you'll be able to do with it, without having to introduce another node to the palette. The change nodes sole purpose is to get/set values. If you have other use cases in mind, it would be good to understand them.
In terms of the future if this node, the way it accesses the global context directly is not a supported api and may well break - part of the work around context is to provide an api that any node can use, rather than this direct access method.
The next release will not include these changes, but they are next on the list for the following release.
By all means, go with your node if it helps you. I'm just wary of promoting it as the way to do this given the imminent changes. We're the ones who have to support users who try this stuff out.
Nick
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julian,
And apologies from me also for snapping earlier. It was just putting it on a new thread made it look like an "announcement" rather than a "by the way my code is here" comment to the existing discussion. And having all the npm ready files in place made it look like a done deal.
Personally I think the template node could also make a case to have "direct access" to global, after all it is just a different kind of change node, and could make assembling web/data fragments much easier. (IMHO)
Anyway, apologies again.
PS. Trust me. Nick is as frustrated as the rest of us about the delays this i18n malarky is causing but hopefully there is light at the end of the tunnel.
--
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/YOs4F_Jcajo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
node.warn(context.global.temporary);Hi Patrick,
I don't believe Julian's node allows you to dynamically set the property name.
You can do this with a Function node:
context.global[msg.topic] = msg.payload;
return msg.payload;
Regards,
Nick
--