Minimizing Large Text Strings

If your DiveTab project has a field that includes large amounts of text, the field can be formatted to hide a majority of the text until the user chooses to view it in full.

Here is an Closedexample of this format in use for the Message column.

Report page with note messages.

NOTE: Message is a dimension, with the dimension value being the message content.

You can point to the text for a Closedtooltip preview.

The note message tooltip preview.

You can also click the ellipses button, The ellipses icon for viewing or previewing the text., to Closedview the full text.

Content of a message used in a Report page.

Here is the example in the code for the column.

  text "Message" column = "note_message" { 
    large-text-display  
    width 300 
    link { 
      web-page column = "note_link" 
    } 
  } 

The large-text-display attribute indicates that the content is hidden.

In the page type block, use the row-height attribute to specify the number of rows that appear. The default number of rows is 1.

Here is an example of the Closedfull code block for the page.

  report-page id = "notes-report-page" { 
    title "Notes" 
    cplan "/cplans/notes.cplan" 
    row-height 2 
    dimension "Note ID" { 
      text column = "Note ID" { 
        link { 
          web-page column = "note_link" 
        } 
      } 
    } 
    
    quickview-set { 
      cplan "/cplans/notes.cplan" 
      dimension-quickview "Team" 
      dimension-quickview "Date" 
    } 
    
    text column = "Created On" 
    text "Author" column = "User" 
    text column = "Message" { 
      large-text-display 
      width 500 
    } 
    text column = "Time Spent (Hours)" 
    text column = "Activity" 
  }