How to convert sysUptime for use in Spectrum OneClick customizations?
Even if the table-model-config.xml file is modified so that the System Up Time attribute could be selected as a column, when a search is completed, the system Up time (0x230018) does not translate the number like it does in the Component Detail panel under Information tab | General Information | System Up Time.
Release: Any
Component: SPCOCK
To convert sysUptime for use in OneClick customizations
Use a renderer to do the conversion. Referencing the "OneClick Customization" section of the documentation, you find the SysUpTimeRenderer and use the expected standard syntax, for example:
<content> <attribute>0x10245</attribute> </content>
<swing-cell-template> <text>
<renderer>com.aprisma.spectrum.app.util.render.SysUpTimeRenderer</renderer> </text> </swing-cell-template>
However, you find this syntax does not work as you would expect. To make this work, use instead:
<content> <attribute>0x10245</attribute>
<renderer>com.aprisma.spectrum.app.util.render.SysUpTimeRenderer</renderer> </content>