Jump to content
We've recently updated our Privacy Statement, available here ×

thanosk

Members
  • Posts

    12
  • Joined

  • Last visited

thanosk's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I should have mentioned that I am using Jasper Server to view the report. I really think that this must be a bug. LCODE and LDESK are varchar types and total is double. If I call the report with a default to sort by total it executes correctly. If I call the report to execute and sort by any of the other 2 fields I get the error. Should I file this as a bug or I am doing something seriously wrong?
  2. I have set up a report in such a way that the people viewing the report can change the ORDER the report is displayed. I am doing this by passing a parameter $P{OrderBy} and using a CASE syntax in the SQL query to get the appropriate result. The corresponding code is here <parameter name="OrderBy" class="java.lang.String"> <defaultValueExpression><![CDATA["b"]]></defaultValueExpression> </parameter> .... ORDER BY CASE WHEN $P{OrderBy} = 'a' then a.LCODE WHEN $P{OrderBy} = 'b' then a.LDESC WHEN $P{OrderBy} = 'c' then a.total END This returns java.sql.SQLException: Error converting data type varchar to float. The absolutely weird thing is that if I chage the default value of the parameter to 'c' the report executes without any problems. Also if I remove the last line from the CASE statement () (ie have only 2 WHEN statements in the CASE statement) the report executes with no problems I am at a complete loss as to why this should be happening. PS. I am connecting to an MS SQL Server using jdbc on a Windows Server Platform.
  3. OKs I managed to solve the problem by saving the .properties file using SC UniPad in ASCII (Decimal). Pity with JasperBabylon since I am going to do a full translation anyways but it will not really be usuable from there. Post Edited by Thanos Koukoulis at 02/18/09 15:08
  4. I attempted to use Jasper Babylon in the hope that the file automatically produced by that service would work properly and have the ability to do the actual translation. Unfortunately the file produced the characters were all messed up (they show up correctly on the Babylon web-page) and in the form : jasper.report.view.hint.previous.page=u03A0u03C1u03BFu03B7u03B3u03BFu03CDu03BCu03B5u03BDu03B7 u03A3u03B5u03BBu03AFu03B4u03B1 Using that file ofcourse produces a server error. Can anyone help out or tell me that such a translation is possible or should I should just give up on the project ?
  5. I have been trying to do localization for the Jasper Server for Greek. I followed the instructions in the pdf but as soon as I change the jasper_messages.properties file the greek language characters appear all messed up. The file formating is in UTF-8. II made sure that applicationcontext.xml has correctly set UTF-8 for encoding. <bean id="encodingProvider" class="com.jaspersoft.jasperserver.api.common.util.StaticCharacterEncodingProvider"> <constructor-arg value="UTF-8"/> </bean> What can I be doing wrong ?
  6. thanks so much for the pointer... will try it out immediately
  7. Since I got no answer to this I am posting it as a bug.
  8. I am not certain if this is a bug or a misconfiguration so I am reporting it here first. I have edited jasperserver-servlet.xml and for a particular ROLE I have added their own custom home page. If I give as a URL http://<web-server>/jasperserver/login.html and login with their credentials I am correctly redirected to the desired report that I have setup as the custom home page. BUT if give as a URL http://<web-server>/jasperserver/ I am redirected to http://<web-server>/jasperserver/flow.html?_flowId=repositoryExplorerFlow which is not the desired effect. Am I am missing something in the configuration or is it a bug ? Code: <property name="homePageByRole"> <list> <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=repositoryExplorerFlow</value> <value>ROLE_SENSE|redirect:flow.html?_flowId=viewReportFlow&reportUnit=/reports/chart&standAlone=true&ParentFolderUri=/reports</value> </list> </property> <property name="defaultHomePage"> <value>redirect:/home.html</value> </property>
  9. Thanks for the suggestion. In general it works but I am still having problems with capital Δ and capital Ω. Those 2 don't show up at all when they are exported to PDF. Any ideas ?
  10. I am having an identical problem and it happens when I add Greek text to a static text field. Maybe some wierd UTF-8 conversion problem ? Any ideas how to avoid this ?
×
×
  • Create New...