Don't show save dialog
Don't show save dialog
Hello,
I have the designer embeded on a Desktop AIR application.
The user can costumize a report (from a MRT template) and then save to a database.
var report:StiReport = new StiReport();
report.load Report FromString(reportString);
report.design();
designer = report.designer as StiDesignerFx;
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
}
However the application also saves the report on disk (with the original file name).
If I set report.reportFile = null; then I get a popup to choose where to save the file
Then I tryed this:
StiOptions.designer.appearance.show SaveFileDialog = false;
StiOptions.designer.dontAskSaveReport = true;
But the application continues to popup where to save the file.
My goal is to continue to capture the save event but ignore the Stimulsoft.Fx designer save method.
Thanks,
Hugo.
I have the designer embeded on a Desktop AIR application.
The user can costumize a report (from a MRT template) and then save to a database.
var report:StiReport = new StiReport();
report.load Report FromString(reportString);
report.design();
designer = report.designer as StiDesignerFx;
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
}
However the application also saves the report on disk (with the original file name).
If I set report.reportFile = null; then I get a popup to choose where to save the file
Then I tryed this:
StiOptions.designer.appearance.show SaveFileDialog = false;
StiOptions.designer.dontAskSaveReport = true;
But the application continues to popup where to save the file.
My goal is to continue to capture the save event but ignore the Stimulsoft.Fx designer save method.
Thanks,
Hugo.
Re: Don't show save dialog
Hello Hugo,
We are sorry for the delay with reply. Release pressure.
We have added a new "cancel" flag for the StiDesignerEvent class which will stop further processing of a report after the event:
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
event.cancel = true;
}
Unfortunately, the fix will not be included in the new release 2015.2, it will be available in the first prerelease build 2015.2.1.
Thank you.
We are sorry for the delay with reply. Release pressure.
We have added a new "cancel" flag for the StiDesignerEvent class which will stop further processing of a report after the event:
designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSave);
private function onSave(event:StiDesignerEvent):void
{
//my custom code to save the report definition to a database
event.cancel = true;
}
Unfortunately, the fix will not be included in the new release 2015.2, it will be available in the first prerelease build 2015.2.1.
Thank you.
Re: Don't show save dialog
Hello Vladimir,
No problem.
OK, I understand. I will wait for the first prerelease build.
Thank you,
Hugo.
No problem.
OK, I understand. I will wait for the first prerelease build.
Thank you,
Hugo.
Re: Don't show save dialog
Thank you, Hugo.
Re: Don't show save dialog
When that predicts is the next release?
Thank you,
Hugo.
Thank you,
Hugo.
Re: Don't show save dialog
Hello.
We have just released our major build.
Our next prerelease build should be available next week on October 16.
Thank you.
We have just released our major build.
Our next prerelease build should be available next week on October 16.
Thank you.
Re: Don't show save dialog
OK, thank you.
Re: Don't show save dialog
Have a nice day, Hugo
Re: Don't show save dialog
Hi Andrew,
Can you confirm that the new release with the requested improvement will be available today (October 16) as planned ?
Best regards,
Hugo.
Can you confirm that the new release with the requested improvement will be available today (October 16) as planned ?
Best regards,
Hugo.
Re: Don't show save dialog
Hello, Hugo.
Yes, the build with the fix for you will be available today in a few hours.
Thank you.
Yes, the build with the fix for you will be available today in a few hours.
Thank you.