rossko57
(Rossko57)
July 29, 2017, 9:24am
7
There is a way to set the value of the item.label string within a rule.
It doesn’t seem to be documented. It might be unsupported and go away in future releases.
I’ve found it!
Tex_Window_W10_GV_Bureau_Zijkant.label = "Last update on: " + Tex_Window_W10_GV_Bureau_Zijkant.lastUpdate.toDateTime.toString("dd-MM-yy hh:mm")
Behaviour is a bit quirky
Hi guys,
Thank you for sticking around. I understand .label is new and rather unknown.
Sorry I couldn’t test this sooner.
I tried this:
rule "Update label"
when
Item gRamen2 received update
then
Tex_Window_W10_GV_Bureau_Zijkant.label = "This should work"
logInfo ("test", "A. " + Tex_Window_W10_GV_Bureau_Zijkant.label.toString)
gRamen2.members.forEach[rm |
Tex_Window_W10_GV_Bureau_Zijkant.label = "Might work, might not"
logInfo ("test", "B. " + Tex_Window_W10_GV_Bureau_Zijkant.lab…