I have to implement custom "save as a copy" function for designer.
I do the following (stiReportDesigner - StiDesignerFx):
Code: Select all
// rename report in designer
stiReportDesigner.report.reportFile = NEW_REPORT_NAME;
stiReportDesigner.report.reportName = NEW_REPORT_NAME;
stiReportDesigner.report.isNew = true;
// save the report content
StiSaveManager.saveReport(stiReportDesigner.report);
I tried figure out where it was taken from. I guess it is from ApiProvider (I use java api provider) for communication between flex and java parts.
I debugged all steps I could and saw old report name there (as a "reportKey" property). As far as I understood it was captured during first dispatch of StiApiProviderEvent.LOAD_REPORT event.
How I can reassign reportKey property in the api provider?
Merry XMass