Hi,
I've created a custom report for generating some in-house accounting sheets but I'm having one small problem.
I have all the date selection and everything else working, but I can't seem to get the same codes for generating the From/To text that the in-built reports use.
I'm referring to the @ReportDates Formula field that has the following code:
I have added all of the other Formula fields as needed as well so everything works ok.
The problem I am having is with the @ToDate and @FromDate variables. In the supplied reports there is a comment in each of these that says they are set by the application. Does this not happen for custom reports?
Does anyone have an idea on what else I can do to get the ToDate and FromDate information to make the above mentioned formulas work?
Thanks,
Kev
I've created a custom report for generating some in-house accounting sheets but I'm having one small problem.
I have all the date selection and everything else working, but I can't seem to get the same codes for generating the From/To text that the in-built reports use.
I'm referring to the @ReportDates Formula field that has the following code:
PHP Code:
if {@FromDate} = "" and {@ToDate} = "" then
{@AllDatesText}
else if {@FromDate} = "" then
Left({@ToDateText} + " " + {@ReportToDate}, 255)
else if {@ToDate} = "" then
Left({@FromDateText} + " " + {@ReportFromDate}, 255)
else
Left({@BetweenText} + " " + {@ReportFromDate} + " " + {@AndText} + " " + {@ReportToDate}, 255)
The problem I am having is with the @ToDate and @FromDate variables. In the supplied reports there is a comment in each of these that says they are set by the application. Does this not happen for custom reports?
Does anyone have an idea on what else I can do to get the ToDate and FromDate information to make the above mentioned formulas work?
Thanks,
Kev
Comment