Try this <column> <name>Foobar</name> <content> <attribute>0x0</attribute> <expression>value().toString() + “ °C”</expression> </content> </column>
The docs have a nice example for this, too. Regards, Jan Von: Jon Magnus Dullerud [mailto:[email protected]] Gesendet: Dienstag, 22. Januar 2013 15:13 An: spectrum Betreff: [spectrum] Custom IconLabel Hi. I have modelled a new tempsensor in Spectrum, now I want to display the currrent temp value on the iconlabel, so far so good. I have managed to display the temperature value, now I want to add ºC behind the actual value. Look at the xml below, in this case i get only ºC on the icon label, how do I get "OneClick" to show both the attribute value and the message? Best Regards Jon Magnus Dullerud Norwegian Defence <?xml version="1.0" encoding="UTF-8"?> <!-- CA Technologies, Inc. One CA Plaza Islandia, NY 11749 USA Copyright (c) 2012 CA Technologies, Inc. All rights reserved. IN NO EVENT SHALL CA TECHNOLOGIES INCORPORATED BE LIABLE FOR ANY INCIDENTAL, INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING BUT NOT LIMITED TO LOST PROFITS) ARISING OUT OF OR RELATED TO THIS SOFTWARE, EVEN IF CA TECHNOLOGIES INCORPORATED HAS BEEN ADVISED OF, KNOWN, OR SHOULD HAVE KNOWN, THE POSSIBILITY OF SUCH DAMAGES. --> <!-- --> <column id="column-current-temperature-config" xmlns ="http://www.aprisma.com<http://www.aprisma.com/>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.aprisma.com<http://www.aprisma.com/> ../../common/schema/column-config.xsd"> <name>Temp</name> <content> <attribute>0x51e0004</attribute><message>°C</message> </content> </column> * --To unsubscribe from spectrum, send email to [email protected]<mailto:[email protected]> with the body: unsubscribe spectrum [email protected] --- To unsubscribe from spectrum, send email to [email protected] with the body: unsubscribe spectrum [email protected]
