![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
wangmin2001
-
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
-
-
I check it again, I found return value cannot evaluate in this band, but will work for next entry/band, thus, every entry varaible value is not correct!.
-
very sorry to hear that, I encounter same problem now, I also want to know how to caculate based on sbureport return value.
-
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?
-
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!
-
I have similar question, how to pass table field value to subreport as parameters, I found subreport only read main report parameters and fields, not table elements.
-
eferrell, thank you very much.
I add a simple query for main report ,and it works!
I think it's a not good feature since sometimes we do not need a query.
aanyway ,thank you very much.
-
I found sctiptlet code at demo folder. and think it's good idea to write back db.
-
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!
-
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.
-
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!
-
I calculate variables in jasper report, I want to save its value to database for further reuse. how can I do it?
any good suggestion?
besides, may i use scriplet to do above job? where can I found scriplet sample code ?
thanks!
-
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?
-
I am using studio 5.6 final for report development on my windows7 professional. after hours runing, it always return me OutOfMemeroy, I have to shut it and restart it.
besides, studio cannot save password info for datasource and jasper server adaper, everytime I lauch studio, I need to re-input password to make connection, is it a bug?
JDBC Data adapter password issue
in Products
Posted
yes, It works, although I do not know why.