Page 1 of 1
How to show the text 'value' of a text object in a monitor
Posted: 01 Feb 2016 18:16
by Gass n Klang
Hey guys,
I've got a textbox and a monitor in a different container that I want to show the text of the textbox. Is that possible?
Re: How to show the text 'value' of a text object in a monit
Posted: 02 Feb 2016 07:00
by MrCorba
The text of the Text object is an attribute called content. So if you set the monitor value to getattribute(Text,'content'), everytime you change the text value the monitor is automatically updated.
Cheers!
Re: How to show the text 'value' of a text object in a monit
Posted: 02 Feb 2016 09:08
by Gass n Klang
perfect thanks. I tried the getattribute (Text, 'text').No surprise it didnt work.But how about the different container? If my "Text" Is in container1 and "Monitor" is in container2?
I've got a "Monitor" in several containers so how can I show lemur which one I want it to show
Re: How to show the text 'value' of a text object in a monit
Posted: 02 Feb 2016 10:52
by MrCorba
You can put any number of containers and interfaces in the prefix. So if you want Text in container one: getattribute(Container1.Text,'content'). If it's on another interface in two containers you can do: getattribute(Interface1.Container1.Container2.Text,'content') etc.
Re: How to show the text 'value' of a text object in a monit
Posted: 04 Feb 2016 17:10
by Gass n Klang
thanks!