From version 2.2
edited by Raluca Stavro
on 2015/10/29 14:59
To version 3.1
edited by Raluca Stavro
on 2015/10/29 15:02
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,8 +1,9 @@
1 1  {{warning}}
2 2  This macro is relying on the fix for [[XWIKI-12722>>http://jira.xwiki.org/browse/XWIKI-12722]].
3 -This bug was introduced in version 2.6 (long time ago) and the fix is very simple so it is very possible that you have it on your XWiki instance. The fix is very simple, so you have to apply it if you need to use this macro.
3 +This bug was introduced in version 2.6 (long time ago) so it is very possible that you have it on your XWiki instance. The fix is very simple and you have to apply it if you need to use this macro.
4 4  {{/warning}}
5 5  
6 += Description =
6 6  This macro is adding a new column in the livetable containing checkboxes for selecting table rows. It supports the following parameters :
7 7  
8 8  |=Name|=Description|=Is Mandatory
... ... @@ -11,8 +11,10 @@
11 11  |**serviceDocument**|The name of the document acting as service for the selected values|No
12 12  |**buttonId**|The id of the element that is clicked for sending data to the service document|No
13 13  
14 -Example of usage :
15 += Example of usage =
15 15  
17 +== The code =
18 +
16 16  {{code}}
17 17  {{html}}
18 18   <div class="buttonwrapper">
... ... @@ -38,15 +38,15 @@
38 38  {{addCheckboxColumnToLivetable livetable="myLivetable" column="doc.fullName" buttonId="checkboxService" serviceDocument="Code.ServiceDocument" /}}
39 39  {{/code}}
40 40  
41 -The result :
44 +== The result ==
42 42  
43 -1. The livetable
46 +=== 1. The livetable ===
44 44  
45 45  Selecting multiple values of the doc.fullName colum that is hidden in this example :
46 46  
47 -attach:AddCheckboxColumnToLivetable.png
50 +[[image:AddCheckboxColumnToLivetable.png]]
48 48  
49 -2. Sending data to the service document
52 +=== 2. Sending data to the service document ===
50 50  
51 51  The Ajax request URL parameters:
52 52  

Get Connected