I want to export a report to Excel. I designed a pivot grid in Report Designer based on the Invoice table. The report displays fine.
Some parameters:
- The report is on a custom screen and is generated as HTM onscreen
- The following filters apply to the report on the screen:
- Fullname contains "Main Account"
- TxnDate is between StartDate and EndDate which are selected by the user using date-picker objects. Defaults are Start date = January 1st of the current year, End Date = today's date
- SalesRep_RecordID is is one of in value from session SharedListSalesRep
I made an "Export To Excel" button and used the "Generate Report" action I run into the following problem: I can't just export what is onscreen, already filtered, can I?
If not, my options are as follows:
Re-apply all the filters above (1-3) in the Generate Report action. The problem is, only the first "Where" allows things like "Dates between" or "Fullname Contains". When you "Add Where", there are no options to use "Greater than", "Contains" or anything like that.
So...that leaves me with using Advanced Script, which I'd have to do all in one shot, and I'm not sure how to do #3. Plus, for the dates, I'd have to put in date placeholders (StartDate, EndDate) and then merge the script and replace the placeholders with the date-picker values selected by the user.
SQL: (Fullname CONTAINS 'Main Account') AND (TXNDATE >= 'StartDate' AND TXNDATE <= 'EndDate') AND ???
Anyway, that's a lot of work for just exporting a report to Excel.
If the original report is Excel (and not HTM), then, sure, it works, but then the report never displays.
Am I missing something here?