I have <include> & <exclude> report selection parameters:
.. and <Include_text_variable> in <field> and
not <Exclude_text_variable> in <field>
but want them ignored so that all records are returned with respect to these parameters if they are left blank at run-time.
I have tried using:
<other conditions not listed here)
And
// If {?Desc_Filter Include} in either field or filter not entered at run time, print record
If Not Isnull ({?Desc_Filter Include})
then
({?Desc_Filter Include} in ({File.JNLDTLDESC}) or
{?Desc_Filter Include} in {File.JNLDTLREF})
//Exclude Filter
// If ({?Desc_Filter Exclude}) in either field, don't print or excl_filter not entered at run time, print records subject to other conditions
and
If Not Isnull ({?Desc_Filter Exclude})
then
(
Not ({?Desc_Filter Exclude} in {File.JNLDTLDESC}) or
Not ({?Desc_Filter Exclude} in {File.JNLDTLREF})
without success.
What's the best way to ignore record selection conditions when parameters are blank on run time screen?
.. and <Include_text_variable> in <field> and
not <Exclude_text_variable> in <field>
but want them ignored so that all records are returned with respect to these parameters if they are left blank at run-time.
I have tried using:
<other conditions not listed here)
And
// If {?Desc_Filter Include} in either field or filter not entered at run time, print record
If Not Isnull ({?Desc_Filter Include})
then
({?Desc_Filter Include} in ({File.JNLDTLDESC}) or
{?Desc_Filter Include} in {File.JNLDTLREF})
//Exclude Filter
// If ({?Desc_Filter Exclude}) in either field, don't print or excl_filter not entered at run time, print records subject to other conditions
and
If Not Isnull ({?Desc_Filter Exclude})
then
(
Not ({?Desc_Filter Exclude} in {File.JNLDTLDESC}) or
Not ({?Desc_Filter Exclude} in {File.JNLDTLREF})
without success.
What's the best way to ignore record selection conditions when parameters are blank on run time screen?