This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-88d9d598-e5aa-4ee6-b1e2-04a5b000943e XWIKI-22970 Open

Filtering LiveData: Unwanted Results for StaticList Fields

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-8d3b9e06-da9e-4163-927d-0e3061a9eb98 Sebastian Klipper created this issue on 13/Mar/25 12:03
 
Summary: Filtering LiveData: Unwanted Results for StaticList Fields
Issue Type: cid:jira-generated-image-avatar-88d9d598-e5aa-4ee6-b1e2-04a5b000943e Bug
Affects Versions: 16.4.6
Assignee: Unassigned
Attachments: FilterTest.png
Components: Live Data
Created: 13/Mar/25 12:03
Priority: cid:jira-generated-image-static-major-61b3cf0e-196c-44cf-9646-d4d05ac27a9f Major
Reporter: Sebastian Klipper
Description:

It’s seams that LiveData uses a "contains" filter operator even for static list properties.

Steps to reproduce:

1. Create an AWM app with a static list (staticList1: Static List):

value1=First Choice|value2=Second Choice|value3=Third Choice|value33=No Choice

2. Add a LiveTable and a LiveData table to a new page:

{{velocity}}
#set ($columnsProperties = {'doc.title': {"link":"view"}, 'staticList1': {} })
#set ($options = {'className': 'Sandbox.FilterData.Code.FilterDataClass', 'translationPrefix': 'filterdata.livetable.'})
#set ($columns = ['doc.title', 'staticList1'])
#livetable('filtertest' $columns $columnsProperties $options)
{{/velocity}}

{{liveData properties="doc.title, staticList1" source="liveTable" sourceParameters="translationPrefix=platform.index.&className=Sandbox.FilterData.Code.FilterDataClass"}}{{/liveData}} 

3. Add four entries covering all possible choices.

4. Filter the data by “Third Choice”:

Expected result:
Both tables should only display the entry for “Third Choice.”

Actual result:

43398_FilterTest.png