Don't show save dialog

Stimulsoft Reports.Flex discussion
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Don't show save dialog

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Don't show save dialog

Post 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.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

Hello Vladimir,

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


Thank you,
Hugo.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Don't show save dialog

Post by Andrew »

Thank you, Hugo.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

When that predicts is the next release?

Thank you,
Hugo.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Don't show save dialog

Post by HighAley »

Hello.

We have just released our major build.
Our next prerelease build should be available next week on October 16.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post by hugo »

OK, thank you.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Don't show save dialog

Post by Andrew »

Have a nice day, Hugo
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Don't show save dialog

Post 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.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Don't show save dialog

Post by HighAley »

Hello, Hugo.

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

Thank you.
Locked