Rob,
roberth.edb...@seb.se wrote on 12.05.2009 08:41:
>
> *MIB extract:*
>
> DESCRIPTION
> "Type of high availability node
> 0 - HA not running
> 1 - Active Node
> 2 - Passive Node"
> ::= { haService 2 }
>
> *Oneclick xml extract:*
>
> <column>
> <name>haServiceNodeType</name>
> <content>
> <attribute>0xfff00a88</attribute>
> </content>
> </column>
>
> The above onclick xml snip will display the returned digit (0,1 or 2),
> but I want to display "HA not running", "Active Node" och "Passive
> Node" instead. What is the easiest way todo this? I scanned the
> customization documentation but I didn't find any simple enumeration
> renderer.
>
<select>
<case>
<expression>
attrInt(0xfff00a88) == 0
</expression>
<yield>iHA not running</yield>
</case>
<case>
<expression>
attrInt(0xfff00a88) == 1
</expression>
<yield>Active Node</yield>
</case>
<case>
<expression>
attrInt(0xfff00a88) == 2
</expression>
<yield>Passive Node</yield>
</case>
<default>
Unknown Node
</default>
</select>
or
<column>
<content><attribute>0xfff00a88</attribute>
<renderer>
<param name="attrID">0xfff00a88</param>
com.aprisma.spectrum.app.util.render.EnumeratedAttrRenderer
</renderer>
</content>
</column>
but this will only work if the attribute is of type enum!
Thomas
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
---
To unsubscribe from spectrum, send email to lists...@unc.edu with the body:
unsubscribe spectrum arch...@mail-archive.com
begin:vcard
fn;quoted-printable:Thomas Kl=C3=B6ber
n;quoted-printable:Kl=C3=B6ber;Thomas
org:ICS GmbH
adr;quoted-printable:;;Leibnizpark 1;R=C3=B6srath;NRW;51503;Germany
email;internet:kloe...@ics.de
title:Dipl-Inform
tel;work:++49-2205-895558
tel;fax:++49-2205-895625
note:VoIP: 032221318672
x-mozilla-html:TRUE
url:www.ics.de
version:2.1
end:vcard