The Atlassian Extension Spaces have been migrated to http://plugins.atlassian.com. These pages are now deprecated and will soon be deleted.

Table Plugin

Description | Security | Common table based capabilities and parameters | Macros that include this support | Capabilities | Parameters | Advanced date sorting | Examples | Release history | Open Issues
Name Table Plugin
Vendor Bob Swift (Website)
Authors Bob Swift
Homepage http://confluence.atlassian.com/display/CONFEXT/Table+Plugin
Issue Management https://studio.plugins.atlassian.com/browse/TBL
Continuous Integration n/a
Categories Confluence Content
Most Recent Version 3.4.0
Availability confluence v2.5.2 to v3.1
State Stable
Support By: Bob Swift
License Freeware / Open Source (BSD)
Price Free
Release Docs
Java API Docs n/a
Download Source https://studio.plugins.atlassian.com/svn/TBL/trunk
Download JAR 695

Additions and corrections to above

JVM requirements Java 1.4 and above
Installation requirements Confluence Repository Client
Upload from Confluence's administration console.
Cannot be installed in /WEB-INF/lib

Description

A collection of macros dealing with enhanced table capability in Confluence.

Macros

  • CSV Macro - Convert comma separated (csv) and other delimited data into a Confluence table.
  • Table-plus macro - Adds column sorting and other attributes to wiki or other tables

Reviews and more information

Security

This url parameter on the csv macro can be restricted to trusted user by configuring security using the Macro Security Plugin.

Common table based capabilities and parameters

A number of macros that produce or modify tables share common capabilities. This page documents the behavior and parameters for these capabilities. A JavaScript enabled browser is required to enable these capabilities.

Macros that include this support

Capabilities

  • Column sorting - sort a column by clicking on column heading. Clicking again will reverse the order. Auto sorting before display
  • Row highlighting on mouse over - row is highlighted when mouse goes over any row element for non-heading rows
  • Column attributes - ability to set the display attributes (color, font) on a column basis
  • Auto numbering - ability to automatically add a leading column with the data row count.

Parameters

  • heading - Number of rows to be considered heading rows (default is 1 row). Specify heading=false or heading=0 to not show any heading lines. Heading rows do not participate in sorting.
  • footing - Number of rows to be considered footing rows (default is 0). Footing rows do not participate in sorting. An auto total row is automatically treated as a footing row.
  • enableSorting - Set enableSorting=false to prevent sorting
  • enableHighlighting - As the mouse moves over a table row, the row will be highlighted by default. Set enableHighlighting=false to stop this behavior. This parameter was formerly known as highlightRow which still works.
  • sortColumn - The table can be auto sorted before it is displayed by any valid column name or number provided by this parameter. No auto sorting will be done if this value is not provided or is invalid. A column number is a 1-based count of columns (excluding auto number column).
  • sortDescending - If sortDescending=true, the sort indicated by the sortColumn will be done in reverse order.
  • sortTip - Text that is used to provide user feedback with mouse is over a column heading that is sortable. Default text is: "Click to sort" followed by the column name if available.
  • sortIcon - Default is false to not show sort indicator icon. Set sortIcon=true to include a sort icon in the first heading row for sortable columns. An icon will show for the last column sorted indicating the direction the column was sorted.
  • highlightColor - Color of row when mouse is over a row element. See the notation guide or Web colors for how to specify.
  • autoNumber - If autoNumber=true, an additional column will be added that will count each data row.
  • autoNumberSort - If autoNumberSort=true, the auto number column will be sortable and will retain the original data row count even after row sorting.
  • autoTotal - If autoTotal=true, an additional row will be appended to the end of the table that will contain totals of all numeric columns.
  • autoNumberSort - If autoNumberSort=true, the auto number column will be sortable and will retain the original data row count even after row sorting.
  • columnTypes - By default, all columns are treated as strings for sorting purposes unless a more specific sort type is provided either by the macro logic or by this parameter. The parameter is a comma separated list of column type indicators to identify column types.
    • S - string
    • I - integer
    • F - float
    • C - currency or similar where it is a float value with pre or post characters
    • D - date in the browser date format. See advancedDate for more information.
    • X - exclude this column from user selectable sorting
    • H - hide the column
    • . or - or : or / - separated numbers, like phone numbers or TCP addresses. Valid values are multiple integer numbers separated by one of the separators indicated by the type.
  • columnAttributes - A comma separated list of values used to modify cell attributes for all cells in a column. The position in the comma separated list corresponds to the column that the values apply to. Each value is a double semi-colon list of attributeName=value pairs that will be applied to the column cells.
  • enableHeadingAttributes - By default, any column attributes provided will be applied to the all column rows including heading rows. Set enableHeadingAttributes=false to have the column attributes apply only to data rows.
  • id - Sets the table id for the table for use in macros (like the chart macro) to identify a specific table.

Advanced date sorting

The default date handling (using the D column type) provides support for the browser default date format. This may not
work properly for tables that have date format that are different than the default format set for individual browsers. More advanced and automatic capabilities are possible by installing a specific date handling library. Documentation and source for the library can be found at JavaScript Toolbox. Install the date.js file on your Confluence server in .../includes/js directory.

Once the date library is installed, the D column type will now match successfully on many different date formats. Alternatively, setting a column type of D followed by a valid date format. Note that date formats that contain a comma (,), must be enclosed in a double quote.

Date examples:

Column type Example date
DMM/dd/yyyy 01/08/2007
D"MMM d, yyyy" Jan 8, 2008
D Many popular date formats

Note that the date library is in English for date formats that include characters. It is possible to easily modify the date library for other languages before installing it on your server.

Examples

{table-plus:columnTypes=S,-,.|autoNumber=true|sortColumn=3
|columnAttributes=,,style="background:yellow; font-size:14pt;"}
|| Name || Phone || TCP ||
| John | 555-1234 | 192.168.1.10 |
| Mary | 555-2134 | 192.168.1.12 |
| Bob | 555-4527 | 192.168.1.9 |
{table-plus}

which renders as:

Name Phone TCP
John 555-1234 192.168.1.10
Mary 555-2134 192.168.1.12
Bob 555-4527 192.168.1.9

Release history

Version Date State License Price
Show description 3.4.0 (#8) 01 Jan 2009 Stable Freeware / Open Source (BSD) Free

Release Notes

{jiraissues:url=http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&pid=10149&fixfor=12033&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true&decorator=none|columns=key,priority,summary,updated,asignee,reporter,status|renderMode=static}

Show description 3.3.1 (#7) 15 Jul 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
{jiraissues:url=http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&pid=10149&fixfor=10610&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true&decorator=none|columns=key,priority,summary,updated,asignee,reporter,status|renderMode=static}

Contributors

  • Bob Swift — Contributor

Show description 3.3.0 (#6) 22 Jun 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
{jiraissues:url=http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&pid=10149&fixfor=10558&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true&decorator=none|columns=key,priority,summary,updated,asignee,reporter,status|renderMode=static}

Contributors

  • Bob Swift — Contributor

Show description 3.2.1 (#5) 25 Mar 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
{jiraissues:url=http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&pid=10149&fixfor=10402&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true&decorator=none|columns=key,priority,summary,updated,asignee,reporter,status|renderMode=static}

Contributors

  • Bob Swift — Contributor

Show description 3.2 (#4) 04 Mar 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
{jiraissues:url=http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&pid=10149&fixfor=10386&sorter/field=issuekey&sorter/order=DESC&tempMax=25&reset=true&decorator=none|columns=key,priority,summary,updated,asignee,reporter,status|renderMode=static}

Contributors

  • Bob Swift — Contributor

Show description 3.1 (#3) 08 Jan 2007 Stable Freeware / Open Source (BSD) Free

Contributors

  • Bob Swift — Contributor

Show description 3.0.1 (#2) 15 Oct 2006 Stable Freeware / Open Source (BSD) Free

Contributors

  • Bob Swift — Contributor

Show description 3.0 (#1) 24 Sep 2006 Prerelease Freeware / Open Source (BSD) Free

Contributors

  • Bob Swift — Contributor

* Previous versions were included in Scripting and External Content Macros

Open Issues

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 13, 2007

    Anna Si says:

    Hi Bob, et al, I am a novice. I installed the Table-Plus macro but I am getting ...

    Hi Bob, et al,
    I am a novice. I installed the Table-Plus macro but I am getting an "Unknown macro" error message. Could it be because I unknowningly installed it in the " /WEB-INF/lib". If yes, how could I fix it? Thank you very much in advance for your assistance!!

    1. Jan 13, 2007

      Bob Swift says:

      You are correct, it cannot be installed in WEB-INF. Stop the server, delete the...

      You are correct, it cannot be installed in WEB-INF. Stop the server, delete the plugin from /WEB-INF/lib. I suggest you start using the repository client as it simplifies things considerable for most plugins. If not that, then go to Administration->configuration->plugins and upload the plugin form there.

  2. Jan 13, 2007

    Anna Si says:

    Hi Bob, Thank you for the quick response! I did install it from the reposit...

    Hi Bob,

    Thank you for the quick response! I did install it from the repository client. I don't know why things went wrong. Thanks again.

  3. Feb 02, 2007

    Stephen Day says:

    Hi Bob, We've installed this plugin (v3.1), but it doesn't seem to be working. ...

    Hi Bob,

    We've installed this plugin (v3.1), but it doesn't seem to be working. When I paste in the example from above it just renders like before. None of the "Common table based capabilities and parameters" seem to work. Same thing for the sql macro.

    Something else also is strange. When I run the marco-list macro, the table-plus macro shows up twice, the only difference being that one has a "Common table capabilities" section while the other doesn't. Seems that the old version is still active?

    Steve

    1. Mar 25, 2007

      Bob Swift says:

      Must have missed this earlier. Remove it and install again. Make sure it is not...

      Must have missed this earlier. Remove it and install again. Make sure it is not in WEB-INF/lib/. Best to use repository client.

  4. Feb 28, 2007

    tyler rosmini says:

    Hi Bob - are there any plans to add support for column widths?

    Hi Bob - are there any plans to add support for column widths?

    1. Feb 28, 2007

      Guy Fraser says:

      Specify the width using the style parameter.

      Specify the width using the style parameter.

      1. Mar 06, 2007

        tyler rosmini says:

        Sorry but I'm new to the wiki markup - could you comment as to the notation?&nbs...

        Sorry but I'm new to the wiki markup - could you comment as to the notation?  Say I wanted a 3 column table where column1 = 20%, column2 = 30% and column3 = 50%? 

        Is this example markup correct?

        (table-plus:columnAttributes=style="width:20%",style="width:30%",style="width:50%"}
        || column1|| column2 || column3 ||
        {table-plus)

        Thank you very much for you help,

        Tyler

        1. Mar 06, 2007

          Bob Swift says:

          Yes, pretty much what you have: {table-plus:columnAttributes=style="width:20%",...

          Yes, pretty much what you have:

          {table-plus:columnAttributes=style="width:20%",style="width:30%",style="width:50%"}
          || column1|| column2 || column3 ||
          | a1 | a2 | a3 |
          {table-plus}
          
          column1 column2 column3
          a1 a2 a3
          1. Jul 14, 2008

            Joseph Nolte says:

            Shouldn't this be: {table-plus:columnAttributes=width=20%,width=30%,width=50%} ...

            Shouldn't this be:

            {table-plus:columnAttributes=width=20%,width=30%,width=50%}
            || column1|| column2 || column3 ||
            | a1 | a2 | a3 |
            {table-plus}
            
            column1 column2 column3
            a1 a2 a3
  5. Apr 11, 2007

    Keith Parks says:

    If I try to go through the repository client I get a message about a key org.swi...

    If I try to go through the repository client I get a message about a key org.swift.confluence.table not being installed. We're using (Version: 2.4.3 Build:#705 Mar 21, 2007). If I try to upload the jar that doesn't work either. I see it's only been tested up through 2.3.3. Any suggestions for getting this to work?

    Thanks.

    1. Apr 11, 2007

      Bob Swift says:

      I did a test 2.4.3 install last week and it seemed to be ok with respect to the ...

      I did a test 2.4.3 install last week and it seemed to be ok with respect to the table plugin. Ran into some other problem that prevented us from upgrading from 2.2.9.

  6. May 03, 2007

    Haider says:

    How can I span cells for a row? is it possible?

    How can I span cells for a row? is it possible?

    1. Oct 09, 2007

      paul says:

      Bob, is this possible with this plug in? If so, can you provide an example of a ...

      Bob, is this possible with this plug in? If so, can you provide an example of a table that has a row that spans multiple columns and a column that spans multiple rows. thanks!

      1. Oct 09, 2007

        Bob Swift says:

        No, this plugin does not help with that.

        No, this plugin does not help with that.

  7. Jun 28, 2007

    Marcus Heerdegen says:

    There seems to be a bug in the "autoNumberSort" option ... if I use "autoNu...

    There seems to be a bug in the "autoNumberSort" option ... if I use "autoNumber=true|autoNumberSort=true" and click on the header of the auto number column, the numbers are treated as strings and sorted in the order 1 10 11 ... 19 2 20 21 22 3 4 5 6 7 8 9

    1. Jul 15, 2007

      Bob Swift says:

      TBL-35 is fixed in 3.3.1. Thanks for reporting this.

      TBL-35 is fixed in 3.3.1. Thanks for reporting this.

  8. Aug 01, 2007

    gumshoes says:

    Has anyone had any luck with advanced date sorting and Firefox? I got it workin...

    Has anyone had any luck with advanced date sorting and Firefox? I got it working fine with IE 6 but it only works for some date formats in FF.
    For:

    {table-plus:columnTypes=S,S,I,S,F,S,S,Dyyyy-MM-dd HH:mm:ss,DNNN-yy|autoTotal=true}
    

    sorting works in IE but is completely wrong in FF.

    The following works in both.

    {table-plus:columnTypes=.,I,D"dd/MMM/yyyy:HH:mm:ss",D"dd/MMM/yyyy:HH:mm:ss"|autoTotal=true|columnAttributes=,style="background:#c0c0c0;",,|sortColumn=4|sortDescending=true}
    

    Quoting the date formats makes no difference.

    1. Oct 09, 2007

      Bob Swift says:

      Create an issue and include examples. Examples should include test data that sh...

      Create an issue and include examples. Examples should include test data that show the problem.

  9. Oct 24, 2007

    Naveen Malhotra says:

    I can't seem to combine datasources into one table.  I'm trying to combine ...

    I can't seem to combine datasources into one table.  I'm trying to combine two sql queries and a excel data source.  The header row for the individual outputs are the same.  Should this work if I have these three individual data sources bounded by ?

    1. Oct 24, 2007

      Bob Swift says:

      The table macro doesn't do that and I don't know any other means for doing that....

      The table macro doesn't do that and I don't know any other means for doing that. You are welcome to write an issue that allows multiple tables to be combined into one.

    2. Oct 24, 2007

      Philipp Klauser says:

      Well, I did some sort of this thing: Making a sql-statment by placing {sql:datas...

      Well, I did some sort of this thing: Making a sql-statment by placing {sql:datasource....|output=wiki}my sql-statement1 {sql} and now: including another {sql:datasource....|output=wiki}my sql-statement2 {sql} into the first sql-statement. Of course this doesn't work because the first sql-macro doesn't know that a second one starts inside and therefore things get out of control and errors appear... The hack around this is to make "some more" sql-macros: Create a sql2, sql3, sql4 macro ! All these macros have to do is calling the original sql macro! I even managed to update a table from datasource1 with values of datasource2. Look at the following example:

      {sql:datasource=TCB_PROD|output=wiki}select '{sql2:datasource=DIM_Produktion|table=false{color:#000000}}
                                                    SELECT hw.description FROM pcms_part_data hw WHERE hw.part_uid = ' + ts_DIM_KEY_HW + '{sql2}'

      as 'DIM-HW' from testsystem {sql}

      And: Thanks to Bob Swift for this awesome macro!

  10. Nov 14, 2007

    Christian Foisy says:

    Is it possible that this macro doesn't play well with search? I have the same in...

    Is it possible that this macro doesn't play well with search? I have the same information sitting in both a standard table and a table-plus table and the table-plus data doesn't show up in search results.

    If someone else can confirm this is the case I'll create an issue.

  11. Nov 14, 2007

    Joe Van Quakebeke says:

    I have installed this plugin and the CSV part works great.  The table-plus ...

    I have installed this plugin and the CSV part works great.  The table-plus just renders an ordinary table.  No sorting at all.  I uninstalled and reinstalled the plugin.  I checked the WEB-INF/lib directory and there is no jar file listed.

    I looked through the JIRA issues and I don't an issue related to this problem.  I looked through the comments and saw that was the same as mine but the reinstall didn't solve my issue.

     Here are the examples I tried:

    NOTE: added \ to escape macro expansion
    {table-plus:columnTypes=S,I|autoNumber=true|sortIcon=true}
    {csv:script=^test.csv}
    {table-plus}
    {table-plus}
    || || January || February || March || April ||
    | Max | 37.5 | 32.7 | 28.0 | 25.3 |
    | Min | 31.3 | 26.8 | 25.1 | 18.7 |
    {table-plus}
     None of the examples worked, just ordinary tables.  I am sure it is something simple but I don't how to resolve this.  Is my format incorrect?

     Tia,

    Joe

    1. Nov 14, 2007

      Bob Swift says:

      First, there is no need to put table-plus around the csv macro, csv supports the...

      First, there is no need to put table-plus around the csv macro, csv supports the same parameters. Second, you need an end csv macro since it is a macro that has a body. If the table-plus is still not working for you, I suggest you write up an issue giving plugin version, browser version, and confluence version.

  12. Dec 06, 2007

    john martin says:

    Is there a way to pivot the table data to create cross-tabs? I think this would...

    Is there a way to pivot the table data to create cross-tabs? I think this would help me with a csv file that doesn't want to chart.

    1. Sep 22, 2008

      Bob Swift says:

      Not sure what you mean with cross-tabs, but please describe what you want in an ...

      Not sure what you mean with cross-tabs, but please describe what you want in an issue. Note that the Confluence Chart Plugin allows for data in either horizontal or vertical position, so no need to pivot data for that.

  13. Feb 08, 2008

    john martin says:

    I use this macro all the time! Is it possible for the macro to interpret wi...

    I use this macro all the time! Is it possible for the macro to interpret wiki markup in the csv? that is, if I have a line in my csv that looks like:

    *string*,_statement_,[link|http://www.google.com]

    I'd like it to appear as:

    string statement link
    1. Feb 08, 2008

      john martin says:

      Sorry, should have gone down to the csv page. I see that there is indeed a nice...

      Sorry, should have gone down to the csv page. I see that there is indeed a nice output=wiki parameter. Thanks!

  14. Apr 21, 2008

    bruce McMurdo says:

    Hi, I am having some trouble sorting by the date field. If I sort by any field ...

    Hi, I am having some trouble sorting by the date field.

    If I sort by any field other than the date, and then try to sort on the date, it just re-sorts on the previous field. Here is a sample table that exhibits this behaviour;

    || Date || Customer || TME || Notes ||
    | Apr 2008 | x cust | brian | big customer |
    | Jan 2008 | d cust | harry | small Customer |
    | Feb 2008 | a cust | george | middle customer |
    | dec 2008 | s cust| mike| soso cust |


    I am not sure if date.js is installed, could that be the cause?

    Confluence 2.7.2; Firefox 2.0.0.14 

    Any suggestions? 

    1. Apr 21, 2008

      Bob Swift says:

      date.js would be required since it is unlikely the date format you are using mat...

      date.js would be required since it is unlikely the date format you are using matches your browser. You also need to specify your date format in your columnTypes parameter - D"MMM yyyy". If you are still having problems, open an issue with all your wiki markup.

  15. Jun 16, 2008

    guest says:

    Hey, pretty new to this whole thing, was wondering if there was any way to combi...

    Hey, pretty new to this whole thing, was wondering if there was any way to combine a table-data and a table-plus ie the option to dynamically add rows with table-data and the sorting ability of table-plus.

    1. Jan 05, 2009

      hajo van Ravenswaay says:

      Yep, this would be useful combination. Go here to vote for ittoo! Both fun...

      Yep, this would be useful combination. Go here to vote for ittoo!

      Both functionalities are great, but could be even better if combined.

  16. Jul 23, 2008

    Wiki Support says:

    The date sort on the column "Date" works perfectly if it is sorted first. Howeve...

    The date sort on the column "Date" works perfectly if it is sorted first. However, if you sort another text column, it appears to continue sorting by the text-based column, despite the sort arrow showing on the date column.Is there any way to sort only one column at a time keeping the other columns intact.

  17. Jan 15, 2009

    Werner Spielmann says:

    Hi! Please is it possible to combine within a table-plus the features colum...

    Hi!

    Please is it possible to combine within a table-plus the features columnAttributes=style and columnAttributes=width?

    {table-plus:columnAttributes=style="background:yellow; font-size:12pt; text-align: center;",
    style="background:red; font-size:12pt; text-align: center;",
    style="background:lightblue; font-size:12pt; text-align: left;"}
    
    ||Header 1||Header 2||Header 3||
    |Cell 1a|Cell 1b|Cell 1c|
    |Cell 2a|Cell 2b|Cell 2c|
    {table-plus}
    
    
    {table-plus:columnAttributes=width=20%,width=10%,width=50%}
    
    ||Header 1||Header 2||Header 3||
    |Cell 1a|Cell 1b|Cell 1c|
    |Cell 2a|Cell 2b|Cell 2c|
    {table-plus}
    
    

    Thanks

    Werner

  18. Apr 20, 2009

    Hasan Edain says:

    Bob, first thanks so much for a set of plugins that I use all the time. Really i...

    Bob, first thanks so much for a set of plugins that I use all the time. Really improves my use of Confluence.

    Second I am looking for something that as far as I can tell does not exist (read feature enhancement).

    I would really like to be able to have a way to do math between the auto summed columns on a page.

    This would allow me to make summary pages for all sort of projects.

    Added TBL-68to capture / describe the request.

  19. May 06, 2009

    Peer Hausding says:

    According to issue Issue TBL-66. I've tryed to get a workaround by displaying a ...

    According to issue Issue TBL-66. I've tryed to get a workaround by displaying a common table (show the body without the macro calls). But I still don't know, if there will come up some new "probems" ...

    Changes in TablePlusMacro.java:

    ...
    58   	/* (non-Javadoc)
    59     * @see com.atlassian.renderer.v2.macro.Macro#getBodyRenderMode()
    60     */
    61    public RenderMode getBodyRenderMode() {
    62        return RenderMode.ALL;
    63    }
    64
    65
    66    /* (non-Javadoc)
    67     * @see com.atlassian.renderer.v2.macro.Macro#hasBody()
    68     */
    69    public boolean hasBody() {
    70        return true;
    71    }
    72
    73    /* (non-Javadoc)
    74     * @see com.atlassian.renderer.v2.macro.Macro#isInline()
    75     */
    76    public boolean isInline() {
    77        return false;
    78    }
    79    
    80    /* (non-Javadoc)
    81     * @see com.atlassian.renderer.v2.macro.BaseMacro#suppressMacroRenderingDuringWysiwyg()
    82     */
    83    public boolean suppressMacroRenderingDuringWysiwyg() {
    84        return false;
    85    }
    ...
    118            // render the macro body first
    119    	    String rendered = info.getMacroBody(); //subRenderer.render(info.getMacroBody(), info.getPageContext());
    120    	    
    121    	    if (info.getPageContext().isRenderingForWysiwyg()) {   // don't interfere with wysiwyg editor
    122    	    	log.debug("rendering for Wysiwyg");
    123    	    	return rendered;
    124    	    }
    ...
    

    Cheers

  20. May 18, 2009

    Gustavo Nalle Fernandes says:

    Can you please deploy to maven the missing dependency of this plugin: org.swif...

    Can you please deploy to maven the missing dependency of this plugin:

    org.swift.confluence:scriptutil:jar:1.4.1

    Tks,
    Gustavo

  21. Jul 13, 2009

    François says:

    Hy, I'm new user of Confluence. I just discover the chart macro. It's great !...

    Hy,
    I'm new user of Confluence. I just discover the chart macro. It's great !

    In the documentation, it say that chart macro could retrieve its data from a table with an id. I tried, but it's doesn't work.

    There is my code in wiki format (in the same page) :

    {table-plus:id=5}
    || 2.3 || 2.4 ||
    || Line1 | 977 | 1000 |
    || Line2 | 0 | 53 |
    {table-plus}
    
    {chart:title=MyTitle|tables=5}
    

    On Confluence forum, I found this thread with the same question (http://forums.atlassian.com/thread.jspa?threadID=20934). It's write that there are "Helpful answers available: 2. Correct answers available: 1". But I can't find any link to this 3 answers...

    I hope you could help me, I think the solution is easy.
    best regards.

    PS : I use confluence 2.10.2

    1. Jul 13, 2009

      Bob Swift says:

      The table must be within the body of the chart macro. {chart} ... table ... ...

      The table must be within the body of the chart macro.

      {chart}
      ... table ...
      {chart}
      
      1. Jul 13, 2009

        Hasan Edain says:

        That works briliantly for me as long as I do not use Table-plus. As soon as I us...

        That works briliantly for me as long as I do not use Table-plus. As soon as I use table-plus, I get a chart that says it found no data.

        Not sure why you need the table plus inside the chart context, but if you do, I do not see how to make it work.

        1. Jul 13, 2009

          François says:

          If there are other solutions than using Table-plus, I'm very interessing. It's p...

          If there are other solutions than using Table-plus, I'm very interessing. It's possible, you give me a simple sample with table and chart using Id to be link together ?

          thanks

          1. Jul 13, 2009

            Hasan Edain says:

            Here is an example I wrote for our internal use (thanks to someone who posted pa...

            Here is an example I wrote for our internal use (thanks to someone who posted parts of this on another forum):


            You can make a nice chart from table data

            Build TIme

            {chart:title=Build Time|tables=1|type=Timeseries|columns=Date,Build Time|dateFormat=MM/dd/yyyy|dataOrientation=vertical}
            || Build || Date || Build Time || DB Size ||
            | 1.0 | 10/28/2007 | 56 | 216 | 
            | 1.1 | 10/29/2007 | 65 | 221 |
            | 1.2 | 10/30/2007 | 42 | 229 |
            | 1.3 | 10/31/2007 | 49 | 242 | 
            {chart}
            

            Database Size

            {chart:title=Database Size|tables=1|type=Timeseries|columns=Date,DB Size|dateFormat=MM/dd/yyyy|dataOrientation=vertical}
            || Build || Date || Build Time || DB Size ||
            | 1.0 | 10/28/2007 | 56 | 216 | 
            | 1.1 | 10/29/2007 | 65 | 221 |
            | 1.2 | 10/30/2007 | 42 | 229 |
            | 1.3 | 10/31/2007 | 49 | 242 |
            {chart}
            
  22. Jul 20, 2009

    Bertoberto says:

    Hi Bob, I have tested the table plugin and i think is a great plugin, but I have...

    Hi Bob, I have tested the table plugin and i think is a great plugin, but I have had some problems with date format:
    Example to use:
    Firefox navigator

    ID NOMBRE
    FECHA DE INSTALACION
    1
    ALBERTO
    07/12/2009
    2
    PEPE
    05/02/2009
    3
    JUAN
    22/08/2009
    4
    YO
    09/12/2009
    5
    TU
    08/12/2009
    6
    EL
    08/11/2009

    1. As i can see in the instructions, I have to use table-plus:columnType=I,S,Ddd/MM/yyyy (I am using European format. Spanish format)
    If I use "columntypes", i can do no column ordering. In the example, Id= 1 to 6, and if I order by date column, i get 1 to 6 or 6 to 1.
    I have to use "columntype" in order to get something. In this case, i get 2,1,6,5,4,3. This means that I get order by day not by date (day/month)
    I take out the date.js file of the \includes\js directory, and the result is the same. It seems that confluence doesnt use the date.js.
    How is it possible? Where you say to install date.js, this means only to copy the file to \include\js directory or I have to do anything else?
    ¿What about columntype and columntypes?
    The final result is that I can only order date format columns if the colummns are in format MM/dd/yyyy. But this is a problem for me because I have a lot of tables in format dd/MM/yyyy. And also here in Spain MM/dd/yyyy is not a valid date format.

    Please, can you or anybody help me?
    Best Regards

    1. Jul 22, 2009

      Bob Swift says:

      Issue is TBL-73 - the workaround is to NOT have leading or trailing blanks aroun...

      Issue is TBL-73 - the workaround is to NOT have leading or trailing blanks around dates values. Thanks to Bertoberto for providing enough information to discover this problem. See the issue for additional information related to this.

      Please open an issue and provide the source for your examples and details of environment including Confluence and plugin versions. Thanks.

  23. Oct 05

    Bertoberto says:

    Hi Bob, what about a new version of Table Plugin? Best Regards

    Hi Bob, what about a new version of Table Plugin?

    Best Regards

    1. Oct 05

      Bob Swift says:

      Yes, I agree it is needed, it is close to the top of the priority list. Next rel...

      Yes, I agree it is needed, it is close to the top of the priority list. Next release will only support 2.9 and above.

      1. Oct 06

        Bertoberto says:

        Ok. I think bugs we have been talking about will be included, is it right? So, D...

        Ok. I think bugs we have been talking about will be included, is it right?
        So, Do you know when the new update is going to be out? (sorry for the hurry)

        Best Regards

        1. Oct 06

          Bob Swift says:

          TBL-73 yes but the rest is TBD as well as timing. Popular items (votes) will be ...

          TBL-73 yes but the rest is TBD as well as timing. Popular items (votes) will be looked at first.

  24. Nov 06

    Bertoberto says:

    Hi Bob, in the release notes of the new confluence version 3.0.2 says: "Editing ...

    Hi Bob, in the release notes of the new confluence version 3.0.2 says:
    "Editing and Visual Improvements. A bug in the Rich Text Editor lead to the generation of line break and other character formatting problems after saving a page. This bug has been fixed."
    I have test this new version because I thought it could resolve the problem with Table Plugin, but not. I think this fix probably resolve character formatting problems without tables.
    When I use table plugin with wiki markup editor and I save a page, Confluence always introduce blanks before and after columns data.

    I hope these lines can be helpful for you.

    Best Regards

  25. Nov 11

    Michael Adams says:

    I am trying to find a way to control the size of the calendar so I put it in a t...

    I am trying to find a way to control the size of the calendar so I put it in a table.  Is there a way to control the size of the table with a calendar in it? 

  26. Nov 17

    sabrina caw says:

    Hi Bob, How about merging of 2 columns? Can we do this? Thanks!

    Hi Bob, How about merging of 2 columns? Can we do this? Thanks!

    1. Nov 17

      Bob Swift says:

      No. Write up an issue and describe an example of what you are trying to do.

      No. Write up an issue and describe an example of what you are trying to do.

  27. Dec 16

    Dennis Benzinger | hybris GmbH says:

    I'm trying to display a table that is initially sorted by a date column: {table...

    I'm trying to display a table that is initially sorted by a date column:

    {table-plus:columnTypes=Ddd.MM.yyyy,S,S|sortColumn=1|sortDescending=true|sortIcon=true}
    || Wann? || Wo?    || Was? ||
    |20.12.2009| Hier    | Irgendwas tolles  |
    |13.11.2009| Dort    | Noch was besseres |
    |01.01.2010| Überall | Neujahr |
    {table-plus}
    

    But the initial sort is not working. The rows are displayed in the same order in which they appear in the source.
    When I click on the header they are sorted correctly.

    Did I do something wrong or should I report this as a bug?

    1. Dec 16

      Bob Swift says:

      Please write up a bug . A second table works ok, so a work around is to put some...

      Please write up a bug . A second table works ok, so a work around is to put something like the following ahead of the other table. And of course make sure you have installed date.js.

      {table-plus:columnTypes=Ddd.MM.yyyy,S,S|sortColumn=1|sortDescending=true}
      | |
      {table-plus}
      
  28. Dec 16

    Christopher Kelly says:

    Should we be able to edit a table-plus macro using the native table editing tool...

    Should we be able to edit a table-plus macro using the native table editing tools (ex: "Add Row", "Delete Row", etc) when editing a page in Rich Text mode?  I have a page that contains a regular table and a 'table-plus' macro, and when I edit the page in Rich Text mode, the regular table is drawn as an actual table and I can use the table editing tools, but the table-plus macro is displayed in wiki markup.  I thought the table-plus macro was still drawn as a actual table in Rich Text mode when editing a page in Confluence 3.0, but I just upgraded to Confluence 3.1 and I no longer see this.  Did something change in the newest release?

    1. Dec 16

      Bob Swift says:

      Confluence 3.1 contains some changes to enable better interaction with plugins w...

      Confluence 3.1 contains some changes to enable better interaction with plugins wrt RTE. In particular, this should solve the long nagging problem of RTE table editing for tables wrapped by table-plus. However, the new support does require a change to the table plugin that should be available in the next couple of weeks.