DX NetOps

 View Only
  • 1.  Custom Column in Spectrum One Click

    Posted Jan 22, 2015 10:31 AM

    I want to see when a Global Collection was created.  I found the attribute and created a custom .xml file and the column appears in the Content Pane right where I want it however the date is not formatted.  How can I format the date?  I cannot find the appropriate .xml code to allow me to put it in a date format.  Below is a screen shot of my results and the code I used.

     

    <table idref="table-globalcollections-list-config">

      <column-list>

          <column>

              <name>Creation Time</name>

                  <content>

                      <attribute>0x11b41</attribute>

                  </content>

              </column>

      </column-list>

    </table>

    GC creation time.png



  • 2.  Re: Custom Column in Spectrum One Click
    Best Answer

    Posted Jan 22, 2015 11:35 AM

    I found it and will share below.

     

    <table idref="table-globalcollections-list-config">

           <column-list>

                <column>

                     <name>Creation Time</name>

                          <content>

                               <attribute>0x11b41</attribute>

                               <renderer>

                               com.aprisma.spectrum.app.util.render.DateRenderer

                               </renderer>

                          </content>

                     <header-template idref="headertemplate-singlerownonsortable-config"/>

                     <cell-template>

                          <format><![CDATA[

                          <td width="80%" nowrap>{0}</td>

                          ]]></format>

                     </cell-template>

                     <swing-cell-template>

                          <text>

                               <renderer>

                               com.aprisma.spectrum.app.util.render.CommentedTextRenderer

                               </renderer>

                          </text>

                     </swing-cell-template>

                </column>

           </column-list>

    </table>

     

    GC creation time soution.png