Hello, I adding a custom property on my view wich is tableFiler-1,
when I choose the whole custom property so I can filter multiple values with the dropdown the filter doesn´t work.
When I choose just one element of the array the filter works
The table where I get the binding to filter the named query is like this
and the named query is like this:
SELECT DISTINCT
Asset.asset AS "Activo",
Asset.assetName AS "Descripcion",
Asset.EquipmentType || ' <' || EquipmentType.EquipmentTypeName || '>' AS "Clase equipo",
Asset.parentAsset AS "Activo padre",
Asset.businessUnit AS "Ud. negocio",
ALD.Value AS "Dato de nivel",
Asset.companyLevel AS "Nivel",
Asset.priority AS "Prioridad"
FROM
Asset
LEFT JOIN EquipmentType ON Asset.equipmentType = EquipmentType.EquipmentType
LEFT JOIN AssetLevelData ALD ON Asset.asset = ALD.asset
WHERE
Asset.company = 'ORANGE' AND EquipmentType.company = 'OEA'
AND (:tableFilter IS NULL OR Asset.businessUnit IN :tableFilter)
ORDER BY
CASE
WHEN SubStr(Asset.businessUnit, 1, 3) IN ('CAT', 'BAL', 'MUR', 'VAL', 'AND', 'ARA', 'AST', 'CAL', 'EUS', 'GAL', 'NAV', 'RIO') THEN 2
WHEN SubStr(Asset.businessUnit, 1, 5) = 'MAD-F' THEN 0
WHEN SubStr(Asset.businessUnit, 1, 7) = 'MAD-PAR' THEN 0
ELSE 1
END,
Asset.businessUnit,
Asset.parentAsset,
Asset.asset
Basically when I choose just one item the dropdown filter works, when I choose multiple ones it doesnt.
I´m not sure why this happen, any ideas?