Modifications pour le document Macros de résultats Livetable

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

Depuis 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]
À 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]

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -305,10 +305,7 @@
305 305   #if(!$offset || $offset < 0)
306 306   #set($offset = 0)
307 307   #end
308 - #set($limit = $numbertool.toNumber($request.get('limit')).intValue())
309 - #if(!$limit)
310 - #set ($limit = 15)
311 - #end
308 + #getAndValidateQueryLimitFromRequest('limit', 15, $limit)
312 312   #set($query = $services.query.hql($sql))
313 313   ## Apply query filters if defined. Otherwise use default.
314 314   #foreach ($queryFilter in $stringtool.split($!request.queryFilters, ', '))
... ... @@ -562,8 +562,10 @@
562 562   #elseif($propType == 'TextAreaClass' || $propType == 'UsersClass' || $propType == 'GroupsClass')
563 563   #set($tableName = 'LargeStringProperty')
564 564   #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.
565 565   #set($multiSelect = $propClass.get($colname).getProperty('multiSelect').getValue())
566 566   #set($relationalStorage = $propClass.get($colname).getProperty('relationalStorage').getValue())
565 + #set($largeStorage = $propClass.get($colname).getProperty('largeStorage').getValue())
567 567   #if($multiSelect == 1)
568 568   #if($relationalStorage == 1)
569 569   #set($tableName = 'DBStringListProperty')
... ... @@ -570,6 +570,8 @@
570 570   #else
571 571   #set($tableName = 'StringListProperty')
572 572   #end
572 + #elseif($largeStorage == 1)
573 + #set($tableName = 'LargeStringProperty')
573 573   #else
574 574   #set($tableName = 'StringProperty')
575 575   #end