Hello Rob,
Have a look at p 101 of the OC customization guide (8.1 version):
Enumerated Attribute Renderer
Classname - com.aprisma.spectrum.app.util.render.EnumeratedAttrRenderer.
This renderer outputs an enumerated String for an attribute value. The renderer
obtains the
enumerations from the SPECTRUM database. You must specify the attribute ID via
the "attrID"
parameter. This renderer is most commonly preceded by an <attribute> element
with the same
attribute ID as the "attrID" parameter. The following sample XML renders the
enumerated value
for the Model_Class attribute (ID 0x11ee8):
<attribute>0x11ee8</attribute>
<renderer>
<param name="attrID">0x11ee8</param>
com.aprisma.spectrum.app.util.render.EnumeratedAttrRenderer
</renderer>
This works fine for most customization I did. You just need to replace the
0x11ee8 with the 0xfff00a88.
Hope that helps,
Rgds,
Jerome Papazian
CA
Sr Consultant, Technical Sales
Tel: +33-1-49-02-50-73
Mobile: +33-6-19-51-86-29
www.caexpo2009.fr <http://www.caexpo2009.fr> | Marquez votre agenda !
<http://www.caexpo2009.fr/files/CaExpo2009.ics>
P Avant de lancer vos impressions, pensez à l'environnement !
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, May 12, 2009 8:42 AM
To: spectrum
Subject: [spectrum] Oneclick customizations
Hi Oneclick customizers!
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.
/Rob
Roberth Edberg
Adaptive Systems Architect
SEB / Group IT
Web:
http://www.seb.se <http://www.seb.se/>
Systems Management
E-mail:
[email protected] <mailto:[email protected]>
Rissneleden 110
Voice:
+46 8 639 30 42
SE-106 40 Stockholm
Mobile:
+46 70 509 30 42
Fax:
+46 8 706 60 25
________________________________
- "Did you know that the first Matrix was designed to be a perfect human world,
where none suffered; where everyone would be happy. It was a disaster. No one
would accept the program. Entire crops were lost. Some believed that we lacked
the programming language to describe your perfect world, but I believe that as
a species, human beings define their reality through misery and suffering. So
the perfect world we dreamed, but your primitive cerebrum kept trying to wake
up from. Which is why The Matrix was redesigned to this...the peak of your
civilization."
/ Agent Smith {The Matrix}
* --To unsubscribe from spectrum, send email to [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]<<image001.jpg>>
<<image004.gif>>
<<image005.jpg>>
