on 12-13-2013 6:50 AM
Hi All,
I am creating a report with a paramater "AccountID" and the date type is number.
I want the user to enter "99999" if they want to pull out all the "AccountID".
(if {?AccountID} = 99999 then True
else
{AR041_ATB.AccountID} = {?AccountID})
It always give me an empty report when I enter "99999".
Please help.
Thanks
And what happens when you enter a correct Account ID?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why not create an optional prompt in that case?
Although I don't see an issue with the selection formula as such the only reason it could fail is maybe because you're not typing in the default value correctly?
Try changing the formula to:
{?AccountID} = 99999 OR
{AR041_ATB.AccountID} = {?AccountID}
-Abhilash
Hi Sastry,
Please see below for the condition.
{AR041_ATB_DTL.AR041_ORG_CODE} = {?@Organization} and
{AR041_ATB_DTL.AR041_SEQ} = {?Hdr_Ctl_Sequence} and
(({?EventID}) = 99999 OR {AR041_ATB_DTL.AR041_EVT_ID} = {?EventID}) and
(
(
({?Exclude_Deposits} = True and {AR041_ATB_DTL.AR041_TRANS_TYPE} < "DEP") or
({?Exclude_Deposits} = True and {AR041_ATB_DTL.AR041_TRANS_TYPE} > "DEP")
)
or {?Exclude_Deposits} = False
) and
(If ({?AR_Control}) = "ALL" Then True
else
{AR041_ATB_DTL.AR041_AR_CONTROL} = {?AR_Control})
When i enter an eventID, it will generate the correct data but when i 99999, it will not pull out any data.
Hi
Can you comment all other conditions except below and try to enter 99999 value and check the records.
({?EventID}) = 99999 OR {AR041_ATB_DTL.AR041_EVT_ID} = {?EventID})
If you are getting some records then you need to check the braces '()' for other conditions and adjust them.
Still you are not getting any records then try with any other number 8888 and see (may be it is odd to try) any change in results.
Hi
Use the same formula and also add below line to it. Your record selection formula should look like :
not(isnull({AR041_ATB_DTL.AR041_EVT_ID}}))
and
({?EventID}) = 99999 OR {AR041_ATB_DTL.AR041_EVT_ID} = {?EventID})
Also on top of the formula editor there is a drop down with the name : 'Exceptions For Nulls' change it to Default Values for Nulls
Hope this will resolve the issue.
Hi Sastry,
I have changed my code to below:
"
{AR041_ATB_DTL.AR041_SEQ} = {?Hdr_Ctl_Sequence} and
{AR041_ATB_DTL.AR041_ORG_CODE} = {?@Organization} and
(not(isnull({AR041_ATB_DTL.AR041_EVT_ID})) and
({?EventID}) = 99999 OR
{AR041_ATB_DTL.AR041_EVT_ID} = {?EventID}) and
(
(
({?Exclude_Deposits} = True and {AR041_ATB_DTL.AR041_TRANS_TYPE} < "DEP") or
({?Exclude_Deposits} = True and {AR041_ATB_DTL.AR041_TRANS_TYPE} > "DEP")
)
or {?Exclude_Deposits} = False
) and
(If ({?AR_Control}) = "ALL" Then True
else
{AR041_ATB_DTL.AR041_AR_CONTROL} = {?AR_Control})"
and 'Exceptions For Nulls' change it to Default Values for Nulls but still the same. Nth was pull out.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.