How to disable word wrap in Alarms tab Events column in CA Spectrum OneClick

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

DESCRIPTION: When displaying the Event column in the Alarm tab of CA Spectrum OneClick, sometimes the event has several lines of data which causes the column to take up most of the view.  This tech doc will show you how to disable the word wrap in the Alarms tab Event column in Spectrum OneClick. 

 

SOLUTION: The word wrap for the Events column in the Alarms tab of Spectrum OneClick can be removed by doing the following one the OneClick system as the user that owns the OneClick installation:

  1. Copy the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/alarm/config/alarm-table-config.xml and column-alarmevent-config.xml files to the $SPECROOT/custom/alarm/config directory
  2. Copy the $SPECROOT/custom/alarm/config/column-alarmevent-config.xml file to column-alarmevent-nowarp-config.xml
  3. Edit the $SPECROOT/custom/alarm/config/column-alarmevent-config.xml file. Change "<name>com.aprisma.spectrum.app.alarm.client.render.EventColumn</name>" to read "<name>Event Wrap</name>".
  4. Edit the $SPECROOT/custom/alarm/config/column-alarmevent-nowarp-config.xml file. Change "<name>com.aprisma.spectrum.app.alarm.client.render.EventColumn</name>" to read "<name>Event No-Wrap</name>". Comment out the "<renderer-class>" tag so it looks like the following:

<!--

    <renderer-class>

      com.aprisma.spectrum.app.swing.table.render.TextAreaCellRenderer

      <param name="html">true</param>

    </renderer-class>

-->

 

5. Edit the $SPECROOT/custom/alarm/config/alarm-table-config.xml file. Add the following highlighted <column> tag above the column tag for the for the out of the box column-alarmevent-config:

 

<column idref="column-alarmevent-nowarp-config">

  <hidden-by-default>true</hidden-by-default>

  <default-width>200</default-width>

</column>

 

<column idref="column-alarmevent-config">

  <hidden-by-default>true</hidden-by-default>

  <default-width>200</default-width>

</column>

 

6. Log out and then log back into OneClick.

 

You will now have available two Event column choices. One for a wrapped Event column and one for a no wrapped Event column. Both are hidden by default.

column-choices.png

The following is an example of how the two different Event columns display the same event information:

Event_columns.png