How to convert sysUptime for use in Spectrum OneClick customizations?

book

Article ID: 51482

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

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.

 

Environment

Release: Any
Component: SPCOCK

Resolution

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>