Page 1 of 1

Custom Errors Message

Posted: Mon Jun 15, 2015 2:28 pm
by rafaelwithoeft
Is possible to show custom errors messages, example: The user do not have access to this report.

I check it, using one

Code: Select all

if (user.hasAccess())
..., now I throw an exception, has a alternative to show personalized message?

Best Regards,
Rafael

Re: Custom Errors Message

Posted: Tue Jun 16, 2015 7:41 am
by Vadim
Hello.
Wich product do you use? HTML or Flex(Flash) ? Which version?

Re: Custom Errors Message

Posted: Tue Jun 16, 2015 2:30 pm
by rafaelwithoeft
Using Html, last version.

Re: Custom Errors Message

Posted: Wed Jun 17, 2015 6:42 am
by Vadim
Hello.
You can check permission yourself in JSP page.

Re: Custom Errors Message

Posted: Mon Jul 13, 2015 12:48 pm
by rafaelwithoeft
It's possible to use this message dialog to show errors?

Image

Re: Custom Errors Message

Posted: Tue Jul 14, 2015 6:22 am
by Vladimir
Hello,

For this you need to send to the client the following JSON response:

Code: Select all

{"error": "Custom error message"}
Also the attached archive contains a fix to correctly display this dialog box:
stimulsoft.reports-webdesigner-2015.1.12-trial.zip
(1.27 MiB) Downloaded 443 times
Thank you.