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

Meiren

Members
  • Posts

    15
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by Meiren

  1. I have the same question; How can I make category tick label to be different of Category series? Thanks.
  2. You can try to put this :"new Boolean($V{REPORT_COUNT}.intValue()==1)" In your subreport property print when expression, it will only print once your sub report in detail band, it worked for me.
  3. Did you check if the jars are under the lib direcotry in your webcontainer? The app could not find the logging jar file.
  4. Normally I use iReport to generate report, in the iReport, there is one property -- Print repeated values, when this property is check, it solves this kind of problem. But I checked the generated .jxml file, did not see this property in it though.
  5. I could not solve the problem by using scriptlet, but I did find a work around, what I did was simple, I get the total data points, according to the total data points, I will render different chart, I have 3 charts, they are chart based on Hours, minuts and seconds. I have condition on each of them, at one time, only one chart is displayed, and the condition is based on the total data points. Thanks for all your help.
  6. Yes, that is the whole point that I want to display the time by hour or by minutes according to the time period. I need to remove the extra data points to make them readable. Do you know if that I can use scriptlet as the category expression? If I can use scriptlet, I can process the data first, then populate the chart. I am going to try that. Thanks.
  7. I can get the total time, but I don't know how to define the category expression accord to the total time. Any suggestion? Thank you very much for your reply.
  8. Hi, I have a Line chart to indicate CPU usage during a test, the category is the time, and the Value expression is the usage %. I have made it work, but sometimes, the test lasts a long time, the category becomes unreadable, so I am thinking to change the category expression scale according to test time, if the test time long, then the category expression will be measured in hours, so the category will be time in hours. And if the test is short, the category expression will be measured in seconds and the category will be time in seconds. Do you think it is doable? If so, how? Thanks adavnce for any feedback!
  9. Thank you so much for your help! It is working now by using $P! instead of $P, I did not pay attention to $P! before, now I know :cheer: . Thanks again. P.S. I said "does not run" meant in iReport, when I click on the Execute button, nothing happens.
  10. Hi, I am trying to pass a string parameter which passes mutiple Ids to the query string, I defined the parameter TEST_IDs as String, the default vallue is: "(10072, 10110)", the query string is like: select distinct transtype_name, transtype_id from transaction_type where transtype_id in (select transtype_id from transaction where test_id in $P{TEST_IDs}) I used iReport to generate the jasper report, the generated .jxml file is like (part of it): <parameter name="TEST_IDs" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["(10072, 10110)"]]></defaultValueExpression> </parameter> <queryString><![CDATA[select distinct transtype_name, transtype_id from transaction_type where transtype_id in (select transtype_id from transaction where test_id in $P{TEST_IDs})]]></queryString> If I don't define the default value, the report runs, but if I define the default value, the report will not run. Anybody has any idea? Any feedback is highly appreciated! Thanks in advance. Post edited by: Meiren, at: 2008/05/08 16:03
  11. oh, another thing probably is worth mentioning is that I did create a jar file with my scriptlet class in the jar and put the jar in ireport/lib directory, then in iReport, specify add the classpath in the Options/classpath as you suggested.
  12. Thanks again for your help! I have made it work, the reason it was not working was that I defined the TextField type as Double, and the return type in the scriptlet is Double, but I did not create a new Double, just used the default cast, cast the value double to Double. I had to create a new Double in the method and return the Double object, by doing this, it worked.
  13. Thank you very much for your reply. I tried to put the class file in a jar and placed the .jar file under iReportlib, restarted iReport, I tried both with the class cast and without class cast, it still does not run. What I mean does not run here is that no action at all, I don't see anything happenning, but underneath, I can see the .jxml file is updated. The method is not static, if it is static, I could not call the build in method "getFieldValue()". The iReport manual example is not static either.
  14. oh, I forgot to mention, that I added the C:JasperSoftiReport-2.0.4classes to the classpath in iReport Optionsclasspath, not sure if that is the right place to do it though.
  15. Hi, I am kind of new to Jasper report, I am using iReport to generate the report, I specified the scriptlet class with fullly qualified class name in the report properties. and I put the scriptlet class under C:JasperSoftiReport-2.0.4classes with the right package structure. The scriptlet class is defined in report.scriptlet package, the class name is Test, the method needs to call is getParameterA(), I used the scriptlet in one of the text field as: ((report.scriptlet.Test)$P{REPORT_SCRIPTLET}).getParameterA() The generated .jxml file seems identical with the scriptlet sample. If I remove the text field expression, the report runs fine, but if I have the above expression, the report does not run if I click the button Execute in iReport. I also tried only use: $P{REPORT_SCRIPTLET}.getParameterA() The result is the same. Oh, I defined the text field use double and getParameterA() returns double too. Any feedback is highly appreciated. Thanks in advance.
×
×
  • Create New...