Page 1 of 3

Don't show save dialog

Posted: Tue Sep 29, 2015 8:46 pm
by hugo
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.

Re: Don't show save dialog

Posted: Thu Oct 01, 2015 7:56 am
by Vladimir
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.

Re: Don't show save dialog

Posted: Thu Oct 01, 2015 8:33 am
by hugo
Hello Vladimir,

No problem.
OK, I understand. I will wait for the first prerelease build.


Thank you,
Hugo.

Re: Don't show save dialog

Posted: Thu Oct 01, 2015 11:17 am
by Andrew
Thank you, Hugo.

Re: Don't show save dialog

Posted: Mon Oct 05, 2015 2:53 pm
by hugo
When that predicts is the next release?

Thank you,
Hugo.

Re: Don't show save dialog

Posted: Tue Oct 06, 2015 9:01 am
by HighAley
Hello.

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

Posted: Tue Oct 06, 2015 1:23 pm
by hugo
OK, thank you.

Re: Don't show save dialog

Posted: Tue Oct 06, 2015 2:23 pm
by Andrew
Have a nice day, Hugo

Re: Don't show save dialog

Posted: Fri Oct 16, 2015 7:45 am
by hugo
Hi Andrew,

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

Posted: Fri Oct 16, 2015 9:53 am
by HighAley
Hello, Hugo.

Yes, the build with the fix for you will be available today in a few hours.

Thank you.