
I can read in the Invoice data from our database.
I need to include numerous options that the end user will supply. One option is:
Which invoices to display?
- All
- Charge
- Cash
I am passing in the parameter int value "p_intWhichInvoice".
- If p_intWhichInvoice=0, return All
- If p_intWhichInvoice=1, return Charge
- If p_intWhichInvoice=2, return Cash
For 0, I need to exclude the filter.
How would I write such a Filter in the Report editor?
Code: Select all
(p_intWhichInvoice == 1 ? 0 < VwInvoice.AmountDue :
p_intWhichInvoice == 2 ? VwInvoice.AmountDue == 0 :
1 == 1)