XWidgetSoft Forum https://bbs.xwidget.com/ |
|
Access to core tag data values https://bbs.xwidget.com/viewtopic.php?f=7&t=1949 |
Page 1 of 1 |
Author: | meme [ August 4th, 2012, 1:16 am ] |
Post subject: | Access to core tag data values |
Hi How can I get core tag data values, so I can use them in code Examples How can I read the value of the "(netmonitor)%NetAllTotalM" tag ? How can I reset or clear the value ? Thank you for any help |
Author: | Tony [ August 5th, 2012, 5:19 am ] |
Post subject: | Re: Access to core tag data values |
Hi meme, you can use core's function "get" to get tag data values etc: alert( datetimecore1.get("%day") ); this code will alert the datetimecore1's tag "%day" data value And , you also can uses the "cmd" function of core to call core's action etc: shortcutcore1.cmd(null , "!OpenFile"); this code will call the action "!OpenFile" of shortcurecore1 |
Author: | meme [ August 5th, 2012, 7:19 pm ] |
Post subject: | Re: Access to core tag data values |
Thank you Tony Your assistance is greatly appreciated. Regards Meme |
Author: | pepe [ March 22nd, 2013, 1:29 am ] |
Post subject: | Re: Access to core tag data values |
Many thanks, but I still don't understand how to reset the value in "netmonitorcore1(%NetAllTotalM)". I would like to have a small button in my widget that clears the value, so netcoremonitor1 starts from "0" again. I could manage to set the text to "0" but after a second it jumps back to the previous value. Anyone knows how to do it properly? I'm thankful for any little help. |
Author: | pepe [ March 22nd, 2013, 3:18 am ] |
Post subject: | Re: Access to core tag data values |
Found it by myself. I was thinking and trying in too complicated ways using scripting/object functions etc. It's simply !Clear (in "normal" functions). Sorry. |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |