Jump to content

wangmin2001

Members
  • Posts

    14
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by wangmin2001

  1. I am using jsper studio 5.6, I use cherry group report, and use subreport in group to get another table field info,

    I set variable_1 as return value of subreport, I can display it when I set evaluation time=band.

    then I define a variables named   V1= $F{field}- varables_1,  I found it always return null.

    if I directly input above expression in a text field and set evaluatoin time=band , it works!

    What's the reason?

    since I need sum(V1) in group, I have to use V1 instead of text field.

    what I should do?  is it a bug? or is there any propertity I can set?

  2. I am using table and tableDataset in report, now I place subreport on table field row, hope subreport can get table field value as parameter to query data.

    but I found subreport can only accept main report field/paramters,  not table fields/variables,

    how to to resolve it ? 

    if jasper do not support it, I have to give up table component, only use main report.

    thanks!

  3. HI,  I am using scriptlet in jasper studio, I do following steps:

    1. copy demo scriptlet java code to netbean project to build  a jar file.

    2. add jar file to jasper studio  java build path (add external jar to studio project java build path)

    3. create a new simple report with static text and text fileds.

    3. add script class for report properties,

    4. define $P{report_scriptlet}  properities with script class.

    then I copy demo code-  set text filed expression -->    $P{report_scriptlet}.hello()

    then I run it in studio , it return me "document is empty!"  what that mean?

    I am sure now studio can found my scriptlet, since compile is fine , and console return message :

    Start Report Execution
    Compiling report......DONE
    Setting Data Adapter...DONE
    Setting Virtualizer...DONE
    Filling Report........DONE
    Report Execution Finished.

     

    any help is appreciated!

     

     

     

     

  4. I have to add my update info:

    I  I changed report language to groovy from java, and add groovy class into classpath, now it return me :

    net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
        Source text : ABS($F{QUANTITY})

    it seems that I canno use any build-in fuctions in japer studio, inlcude:  IF-else, ABS, Days.

    I found it's becuase there is no jasper mathfuction class. I search all folder, found there have classes at sample folder, I add them, then pass!

    conclusion: I do not know why jasper do no package mathfunction into jasper lib, but, if you want to use it, you have to include it mannualy.

     

     

     

     

     

  5. HI, I am using jasper5.6.1 in win7,jdk1.7, I use days function in studio to calculate date diff between min_date and max_date, such as :

    days($V{min_date},$V{max_date})

    it works fine in studio, but when I called it from web java application, it always return me following error:

    net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
        Source text : DAYS($V{min_date},$V{max_date})

    I also encountered another IF experession error,

     

    I doubt it's java issue, and I check my report language setting, it's "JAVA".

    if I cannnot use system function, I have to pass all calculated varibles from outside application, it's too complex.

    could you give me some suggesiton? thanks!

     

     

  6. I am using 5.6 eidtion of studio and sever, I found I cannot use html component ,event in a blank report, when I place html component at report, preview is always fine, but when publish, it alway return error

    mesage: "invalid jrxml".

    I tried to copy source code at here but failed.  the simple method is create a blank report and put html componnent to try it.

    I think it's studio/server bug.

    anybody can confirm it?

     

     

×
×
  • Create New...