Modifications pour le document Macros de résultats Livetable

Modifié par Florent Charton le 2026/03/13 11:03

Depuis la version 4.1
modifié par Florent Charton
sur 2026/01/08 10:56
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-livetable-ui/17.4.8]
À la version 3.1
modifié par Florent Charton
sur 2025/07/04 23:28
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-livetable-ui/16.10.9]

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -305,7 +305,10 @@
305 305   #if(!$offset || $offset < 0)
306 306   #set($offset = 0)
307 307   #end
308 - #getAndValidateQueryLimitFromRequest('limit', 15, $limit)
308 + #set($limit = $numbertool.toNumber($request.get('limit')).intValue())
309 + #if(!$limit)
310 + #set ($limit = 15)
311 + #end
309 309   #set($query = $services.query.hql($sql))
310 310   ## Apply query filters if defined. Otherwise use default.
311 311   #foreach ($queryFilter in $stringtool.split($!request.queryFilters, ', '))
... ... @@ -559,10 +559,8 @@
559 559   #elseif($propType == 'TextAreaClass' || $propType == 'UsersClass' || $propType == 'GroupsClass')
560 560   #set($tableName = 'LargeStringProperty')
561 561   #elseif($propType == 'StaticListClass' || $propType == 'DBListClass' || $propType == 'DBTreeListClass' || $propType == 'PageClass')
562 - ## The following logic is mirrored from ListClass and might need to be updated when the logic in ListClass changes.
563 563   #set($multiSelect = $propClass.get($colname).getProperty('multiSelect').getValue())
564 564   #set($relationalStorage = $propClass.get($colname).getProperty('relationalStorage').getValue())
565 - #set($largeStorage = $propClass.get($colname).getProperty('largeStorage').getValue())
566 566   #if($multiSelect == 1)
567 567   #if($relationalStorage == 1)
568 568   #set($tableName = 'DBStringListProperty')
... ... @@ -569,8 +569,6 @@
569 569   #else
570 570   #set($tableName = 'StringListProperty')
571 571   #end
572 - #elseif($largeStorage == 1)
573 - #set($tableName = 'LargeStringProperty')
574 574   #else
575 575   #set($tableName = 'StringProperty')
576 576   #end