Page 1 of 1
Report designer for end user
Posted: Wed Jun 11, 2014 8:25 am
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.
Re: Report designer for end user
Posted: Wed Jun 11, 2014 11:51 am
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:
Thank you.
Re: Report designer for end user
Posted: Wed Jun 11, 2014 1:37 pm
by hugo
Thank you.
Re: Report designer for end user
Posted: Wed Jun 11, 2014 9:29 pm
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.
Re: Report designer for end user
Posted: Fri Jun 13, 2014 6:05 am
by Alex K.
Hello,
Thank you for the information.
Can you please describe your workaround in more details.
Thank you.
Re: Report designer for end user
Posted: Fri Jun 13, 2014 2:06 pm
by hugo
Code: Select all
designer = report.designer as StiDesignerFx;
designer.getChildAt(2).visible = false; //hide the standard main menu
Re: Report designer for end user
Posted: Sun Jun 15, 2014 10:15 am
by Andrew
Dear Hugo,
Thank you for sharing this.
Have a nice day!
Re: Report designer for end user
Posted: Sun Jun 15, 2014 12:44 pm
by hugo
No problem.
Have a nice day!
Re: Report designer for end user
Posted: Mon Jun 16, 2014 6:59 am
by HighAley
Hello, Hugo.
Let us know if you need any additional help.
Thank you.