Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Notepanel

The Table Excerpt and Table Excerpt Include macros CANNOT be used for output of multiple copies of one table on a page like the Include Page and Excerpt Include macros. These macros will not render a copy of the reference table in a different place of your page.These macros were designed to improve the performance and response of pages storing large tables. You can work with the original table without creating multiple copies of it for building several pivot tables or charts on its basis.

Panel
bgColorwhite
titleBGColor#f5f5f5
title


The macros are available in Confluence Server only.There are 3 facts that you should know about Table Excerpt and Table Excerpt Include

MacrosTable Excerpt and Table Excerpt Include macros allow you to work with the one source table for generating multiple pivot tables and charts on its basis. These macros do not

macros:

  1. The macros do not create a copy of

the same table on your page as you continue working with
  1. the

original
  1. table

as is.

You need to mark a table that you want to use as a source for building multiple pivot tables and charts in different places of your page. After this you can reference this table with the Table Excerpt Include macro.

Unlike the Include Page and Excerpt Include macros, the Table Excerpt Include macro will not render another copy of the table after the page saving. Please consider this while inserting the combination of these macros on your page.

  1. . The Table Excerpt macro creates a reference to the source table and the Table Excerpt Include macro inserts the reference into the other macros (within the same page only).

  2. The main objectives of using the macros are: 

    1. providing dynamic changing of pivot tables and charts when the source table changing;

    2. avoiding loss of productivity when working with large tables (compared to multiple copies of the table);

    3. comfort to operate in the edit mode, when there is only one large table with the small macros instead of multiple large tables
The Table Excerpt Include macro should be placed within the Pivot Table or Chart from Table macro. If you place the Table Excerpt Include macro on a page as is without wrapping it into the Pivot Table or Chart from Table macro, you will not get another copy of the original table. For rendering a copy of the same table use the Include Page or Excerpt Include macros
    1. .

Widget Connector
width432
urlhttp://youtube.com/watch?v=r-nLyUOUaLA
height243
 


And actually, why should I use these macros?




When you build multiple pivot tables and charts from table ➜ 

Multiple copies of a large source table cause reducing of processing speed ➜ 

Inserting the references to the source table with the Table Excerpt/Table Excerpt Include macros leads to continued productivity.

Image Added

Image Added

Image Added



Table of Contents
maxLevel1
indent20px




Using the Table Excerpt Macro

To add

Adding the Table Excerpt macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.
  3. Enter the unique identifier for the macro.
Click
  1. Click Insert.


Tip

You will be able to reference the marked table by inserting the Table Excerpt Include macro (on the same page only) and entering the specified unique name.


Tip

Speeding up macro entry with autocomplete:

 Type 

 type { and the beginning of the macro name 'Table Excerpt", to see a list of suggested macros. Select the Table Excerpt macro from the prompted results.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Image Removed


Adding a Table into the Table Excerpt Macro

  1. Copy (cut) a table.
  2. Paste the table into the Table Excerpt macro placeholder.

Image Removed

Configuring Parameters of the Table Excerpt Macro

  1. Select the macro placeholder.
  2. Click Edit.
  3. Enter a unique name for the current macro instance.
  4. Click Save.

You will be able to reference the marked table by inserting the Table Excerpt Include macro and entering the specified unique name. You can refer only to the Table Excerpt macros stored on the same page which the Table Excerpt Include macro is placed on.

Image Removed


Handy Carousel
delay1000
items0

Image AddedImage AddedImage AddedImage AddedImage Added






Using the Table Excerpt Include Macro

To add Adding the Table Excerpt Include macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.
  3. Enter the excerpt name of the macro.
  4. Select the "Show copy of the source table" checkbox in case you want to show a copy of a source table in the page view mode.
  5. Click Insert.


Tip

You can use the Table Excerpt Include macro without showing the source table within the Pivot Table macro and the Chart from Table macro because a pivot table and a chart can be built without displaying a source table. On the other hand if you want to use the Table Excerpt Include macro within the Table Filter macro you should select the "Show copy of the source table" checkbox because this macro requires a table for its correct work.


Tip

Speeding up macro entry with autocomplete:

 Type 

type { and the beginning of the macro name 'Table Excerpt Include', to see a list of suggested macros. Select the Table Excerpt Include macro from the prompted results.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Image Removed

Configuring Parameters of the Table Excerpt Include Macro

  1. Select the macro placeholder.
  2. Click Edit.
  3. Enter a unique name of the Table Excerpt macro for outputting a specific table on the page.
  4. Click Save.

Image Removed



Handy Carousel
delay1000
items0

Image AddedImage Added






Using the Same Table for Generating Multiple Charts

  1. Insert Insert  the Table Excerpt macro on the page.
  2. Place the table on the basis of which you want to build multiple charts or generate multiple pivot tables within the Table Excerpt macro.
  3. Enter the unique name for the Table Excerpt macro.
  4. Insert multiple instances of the Pivot Table and Chart from Table macrosand place the source table into the macro body according to the instructions above.
  5. Insert the Table Excerpt Include macro and entert the unique name of the Table Excerpt macro (to reference it).Place the Table Excerpt Include macro into the combination of according to the instructions above and place it into the Pivot Table and or Chart from Table macros or their combination.
  6. Adjust the parameters of the pivot tables and charts.
  7. Save the page.

As the result, you will receive multiple charts generated on the basis of the same data table.

View mode:

Image Added

Edit mode:

Image Added

Image Removed

Image Removed