JSON Data Source - Record Filter not working


#1

Matrix Version: 5.4.1

I have a JSON Data Source setup, that return JSON like this …

[
{id: "1", name: "Self-management"},
{id: "2", name: "Digital literacy"},
{id: "3", name: "Problem solving"},
{id: "4", name: "Critical thinking"},
]

Dynamic input” screen is set up like this

Record Filter” screen is set up like this …

When I open the JSON Data source asset in a browser (like shown below) by passing the GET parameter, nothing is filtered.

www.example.com/records?cid=4 (All Results returned, filter NOT working)

www.example.com/records?id=4 (All Results returned, filter NOT working)

What am I doing wrong ?


(Bart Banda) #2

The filtering only works when you are listing the data records using an asset listing for example. Not when you just preview the JSON data source asset.

Have a look at this example: https://matrix.squiz.net/manuals/data/chapters/db-data-source#asset-listing (uses DB data source but the concept is the same)