How to convert sysUptime for use in OneClick customizations?

Document ID : KB000051482
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

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.

Solution:

To convert sysUptime for use in OneClick customizations

Use a renderer to do the conversion. Referencing the OneClick Customization document, 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>