Document Links

A document link leads to a specific file existing locally in a repository on the server. A document link can be to one specified file using path or to various files using path column. When using path, you are hard-coding the file name. When using path column, you are retrieving the file name from a cBase. This latter option requires planning and prep work around the document library and creation of the cBase with the path column data.

Here is an Closedexample of a file link in DiveTab.

Example of a file link column.

Here is the Closedfile opened in DiveTab.

Example of following the link for a file column.

NOTE: The file can be any of the supported types.

Here is Closedcode for the page, which uses a path to a single file.

  report-page { 
    title "Linking" 
    cplan "/cplans/basic_101.cplan" 
    dimension "Resp SalesPerson" 
    
    text column = "Cost" 
    text column = "Net Sales"
    text "Doc" { 
      link { 
        document { 
          repository "documents" 
          path "DiveTab-data-sheet-021218.pdf" 
        } 
      } 
    } 
  } 

IMPORTANT: The repository name is case-sensitive.

You can use specific links for each dimension value by using a path column.

Here is an example of the ClosedcPlan in ProDiver where the data for the path column is defined in a column called Doc Link.

Example of the Doc Link column in ProDiver.

Here is an example of a report page Closeddocument link that uses a path column.

Example of a page using a path column.

Here is how the Closedcode appears in DiveTab.

  report-page { 
    title "Linking 2" 
    cplan "/cplans/basic_103.cplan" 
    dimension "Corporate Brand" 
    
    text column = "Cases" 
    text column = "Net Sales"
    text "Doc Link" { 
      link { 
        document { 
          repository "Brand Info" 
          path column = "Doc Link" 
        } 
      } 
    } 
  }