Hi,
I am looking to use the multiselect filter in one of my reports, but the issue is that my main report, where the parameter query is called, doesn't seem to be working. It shows a typable box instead of a search-and-find box.
Below is my parameter query:
DROP PROCEDURE IF EXISTS sp_ADBR_po_multiselect
$$
CREATE PROCEDURE `sp_ADBR_po_multiselect`(IN inTenantKey varchar(128))
BEGIN
SELECT 0 AS id, 'All' AS customerName
UNION
SELECT DISTINCT
c.id,
COALESCE(CONCAT(c.first_name, ' ', COALESCE(c.last_name, '')), 'Walk-in Customer') AS customerName
FROM
kennel_payment.invoice inv
LEFT JOIN kennel_payment.payment p ON p.invoice_id = inv.id AND p.payment_status = 'APPROVED'
LEFT JOIN kennel_payment.customer c ON c.id = inv.customer_id
WHERE
inv.merchant_key = inTenantKey
AND inv.deleted = FALSE
ORDER BY customerName;
END
$$
And I have called the above in my main query as below:
parameter as inSelectedCustomers TEXT
& in the report query as -> (inSelectedCustomers IS NULL OR FIND_IN_SET(c.id, inSelectedCustomers)
Please help me out here.
Thank you.