Report designer for end user

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

Report designer for end user

Post by hugo »

I would like to provide the designer for final use embedded on my application but I'm facing a lot of problems:
  • How to hide the main menu (not the subitems) on the upper left corner ?
  • How to hide the help menu on the upper right corner ?
  • How to catch the save button event. My purpose is to grab the changed report definition and deal my self with the persistence location automatically ?
  • How to add an exit button (outside of the main menu) ?
Sorry for so much questions in a single thread but these are all related with the same purpose.


Thanks,
Hugo.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Report designer for end user

Post by Vladimir »

Hello Hugo,

1. Unfortunately, it's impossible to hide Main Menu easily. You could do it in our source code only.

2. You can use the following option:

Code: Select all

StiOptions.appearance.showFormsHelp = false;
3. You can use the following event:

Code: Select all

designer.addEventListener(StiDesignerEvent.SAVE_REPORT, onSaveReport);
4. To close designer, you can call the following method in the button click event:

Code: Select all

designer.close();
Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: Report designer for end user

Post by hugo »

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

Re: Report designer for end user

Post by hugo »

OK, about the first question, I found a workaround (monkey patch) in 2 lines of code. It's better for future upgrade then custom code version.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Report designer for end user

Post by Alex K. »

Hello,

Thank you for the information.
Can you please describe your workaround in more details.

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

Re: Report designer for end user

Post by hugo »

Code: Select all

			designer = report.designer as StiDesignerFx;
			designer.getChildAt(2).visible = false; //hide the standard main menu
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: Report designer for end user

Post by Andrew »

Dear Hugo,

Thank you for sharing this.

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

Re: Report designer for end user

Post by hugo »

No problem.

Have a nice day!
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report designer for end user

Post by HighAley »

Hello, Hugo.

Let us know if you need any additional help.

Thank you.
Locked