Custom Errors Message

Stimulsoft Reports.JAVA discussion
Post Reply
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Custom Errors Message

Post 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
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Custom Errors Message

Post by Vadim »

Hello.
Wich product do you use? HTML or Flex(Flash) ? Which version?
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Custom Errors Message

Post by rafaelwithoeft »

Using Html, last version.
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Custom Errors Message

Post by Vadim »

Hello.
You can check permission yourself in JSP page.
User avatar
rafaelwithoeft
Posts: 70
Joined: Thu Mar 05, 2015 8:26 pm

Re: Custom Errors Message

Post by rafaelwithoeft »

It's possible to use this message dialog to show errors?

Image
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Re: Custom Errors Message

Post 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 442 times
Thank you.
Post Reply