I'm developing a report and encountered a problem when trying to select items in a filter. In its current configuration, I can extract either ONE specific item or ALL items, but I can't select multiple specific items.
Here's my WHERE clause:
WHERE
xah.application_id = 707
AND xal.application_id = 707
and ccd.cost_book_id = '300000082235861'
AND ccov.cost_org_name IN (:P_FILIAL)
AND gcc.segment4 IN (:P_CONTA)
AND xah.period_name IN (:P_PERIODO)
AND (
:P_ITEM IS NULL
OR esi.item_number IN (:P_ITEM)
Does anyone know how to modify this to work for all options? (All items, one item, or multiple selected items?)