How do I Filter Data?
Posted: Thu Feb 11, 2016 9:47 pm
I have Version 2015.3

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?
I am passing in the parameter int value "p_intWhichInvoice".
For 0, I need to exclude the filter.
How would I write such a Filter in the Report editor?
Is there a better way to write this?

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)