Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Date value required

$
0
0

Hi Everyone,

 

I got a report with a date parameter which enables the user to select a single date

however the user selection should pull in the data for the fyscal year by month

so I've created to formulas as follow:

 

@FYStart:

cdate(year({?Date})

-(if month({?Date})<7 then 1 else 0),7,1)

 

@FYEnd

cdate(year({?Date})

+(if month({?Date})>=7 then 1 else 0),6,30)

 

and I've declared the following in the record selection:

 

{billing_tx_history.date_of_service} >= {@FYStart}

and

{billing_tx_history.date_of_service} <= {@FYEnd}

 

The report works fine on my local but once I deploy it to the WebApp which is a Web-portal called AVATAR and try to run the report from there I get an error msg saying that:

"Date or number or currency is required here"

 

and I think the problem that the two formulas above were created using IF function which returns Boolean

 

Any help would be appreciated


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>