DX NetOps

  • 1.  Looking for xml file in oneclick

    Posted Jun 30, 2017 05:02 PM

    Hi All,

    Can someone tell me where XML file is located that controls the list display columns for the Locator, Contents, Results list view. I need to add a column to the view.

     

     

    TIA



  • 2.  Re: Looking for xml file in oneclick
    Best Answer

    Broadcom Employee
    Posted Jun 30, 2017 05:28 PM

    Hi Tia,

     

    I use the table-searchresults-config.xml to add custom columns to the Locator Search Results. As a best practice, you do not want to modify the default file located in $SPECROOT/tomcat/webapps/spectrum/WEB-INF/topo/config directory. Instead you want to create a table-searchresults-config.xml in $SPECROOT/custom/topo/config. This will preserve your custom columns during an upgrade of Spectrum.

     

    For example:

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Adding custom columns to the Locator Search Results table to display
    Global Collection memberships and Security String settings
    -->

    <table id="table-searchresults-config"
           idref="table-searchresults-config">
        <column-list>

            <column idref="column-securitystring-config">
               <hidden-by-default>false</hidden-by-default>
            </column>

            <column>
                <name>Global Collection</name>
                <content>
                     <attribute>0x12adb</attribute>
                </content>
                <hidden-by-default>true</hidden-by-default>
             </column>
       </column-list>  

    </table>

     

    I believe you can also use the table-model-config.xml, which is used for the Topology List Tab, since the two are linked.

    Thank you,

    Brad