Seal Report Forum
»
Report Edition
»
Reports
»
Decimal value should not be allowed in Top X* field
Rank: Newbie
Groups: Registered
Joined: 6/20/2018(UTC) Posts: 1 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
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 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.
|
|
|
|
Seal Report Forum
»
Report Edition
»
Reports
»
Decimal value should not be allowed in Top X* field
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.