logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Tabssum Mulani  
#1 Posted : Thursday, July 19, 2018 2:18:34 PM(UTC)
Tabssum Mulani

Rank: Newbie

Groups: Registered
Joined: 6/20/2018(UTC)
Posts: 1
India
Location: Banglore

Here we are enabling "numeric" datatype for out "Top X" filter,we are getting error message "This report has execution errors. Please check details in the Windows Event Viewer...".Can we change this error message to "Error in Top X filter value.No decimal values accepted".
please refer following screenshot:

https://drive.google.com...a1vfg3k3iSYr9E-ngjo/view
epf  
#2 Posted : Friday, July 20, 2018 6:26:48 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
For this, you could use the translations of the message to change it.
The reference text is "This report has execution errors. Please check details in the Windows Event Viewer..."
You can modify that in Translations.csv (in Settings directory of the Repository), but the problem is that it will apply for all reports...
You may change it dynamically in your reports (using Tasks or the InitScript), then turn it back after the execution...
translations object is in Report.Repository which contains public List<RepositoryTranslation> Translations.

Note that the error message comes from the SQL statement, another approach is to use a Floor function (either in SQL or in PreProcessing script of the reports).
It is easy to modify the input restriction into an integer.


Good luck.


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.