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

tanvirtonu

Members
  • Posts

    22
  • Joined

  • Last visited

tanvirtonu's Achievements

Contributor

Contributor (5/14)

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

Recent Badges

0

Reputation

  1. Brother can you tell me what the problem is now.If I run the report from Ireport(with empty data source)giving some value to my parameters,everything shows well.But if I run the same report from my application it says- couldnt creat the report,error evaluating the expression-: Source Text : ( $P{ElcA}== null ? new Integer(0) : $V{ElcA}.valueOf( $P{ElcA} ) ) I changed the calculation type- System and it worked well from Ireport but the problem is if I run from my application.Could u pls have a look at my report. [file name=rent-eeea4f3ae66f7429f90125d640fbb8c7.jrxml size=84927] I noticed that if I run the report first time filling the MAP object,it works well.But later if I run the same report(by clearing the MAP first-map.clear() and then filling it with the SAME data from database) from another method in application, it shows the above error.Even I made sure that the newly entered values are assigned to the MAP object correctly. Post edited by: tanvirtonu, at: 2008/04/18 21:06
  2. Pedja Brother you have always been soooo helpful to me.TONS of thanks to u brother.It alll worked after I did what you said.But brother can u pls tell me what is specialty of the calculation type setting to- system.What does it do?I saw it earlier also.
  3. I want to assign a value of a parameter to a variable in Ireport.I have the following parameter and variable- Parameter name- wasa type-String default value= null variable name- wasa Type-Integer variable expression= blank (nothing written) Initial value expression-( $P{wasa}== null ? new Integer(0) : $V{wasa}.valueOf( $P{wasa} ) ) reset type= report Now,I get the value of the parameter- wasa passed from the application but I get "null" from the variable- wasa in Detail band.Amazingly,I get the value of the variable -wasa in Title band.What is the wrong in here? One more thing,how can I run my report with blank data source from my application.If I dont write any SQL statement in Report Query, the report shows nothing.But I dont need anything from my database. [file name=rent-6279094fd03d0d95af382a47460a342b.jrxml size=85376] Post edited by: tanvirtonu, at: 2008/04/17 09:30
  4. Could anybody pls have a look at my attached jrxml file and tell me why the "total" field is not showing anything. There are 6 fields-Flat,Rent,Gas,Wasa,Elect,Total.When I pass parameter from my app. every fields show its value as desired except the total field.Can anybody pls help me. [file name=rent-5f40fa191a26805eb73ceb3f18684e6b.jrxml size=84323]
  5. Could anybody pls have a look at my attached jrxml file and tell me why the total field is not showing anything. There are 6 fields-Flat,Rent,Gas,Wasa,Elect,Total.When I pass parameter from my app. every fields show its value as desired except the total field.Can anybody pls help me. [file name=rent.jrxml size=84323]
  6. Thnx brother.Can u tell me what is the difference between initial value expression and variable expression of a variable.And why it is working in my case above?
  7. I have the following things in my report Parameter- demo Type-String default value=null Variable-demo1 Type-Integer variable expression-( $P{Demo}.equals( null) ? new Integer(0) : $V{demo1}.valueOf( $P{Demo} ) ) Even if I set null to parameter demo,the value of variable demo1 is shown - null instead of 0. The problem is solved when I put the expression in Initial value expression of variable demo1.BUT CAN ANYBODY TELL ME WHY it is working now.And one more thing if i write $P{Demo}.equals( null),this is not recognized,but $P{Demo}== null is recognized, what is the difference? Post edited by: tanvirtonu, at: 2008/04/16 08:33
  8. I have a report which I want to populate with data given from my application not database.I have created and compiled the report with empty data source in Ireport. But, now I cant run that report from my application.Previously,I could run any .jasper file (with active connection)from the following code Code:JasperPrint jasperPrint = JasperFillManager.fillReport(reportFileName, map, jdbcConnection); JasperViewer.viewReport(jasperPrint,false); Now,what code should I write to run compiled jasper file which has empty data source. One more thing,if I pass a Map object from my application into report,how can I get the key and value of that map in Ireport/expression editor.Please help me.
  9. How can I assign a value to a field.I have a field-$F{SUM(total_price)} and a variable-$V{total} Can I do the followig to assign a value to a field,If not How to do it.At the same time,I want to show the value in that Field. $V{total}=$F{SUM(total_price)}
  10. Somebody pls tell me how to use two subreports in another report.I mean-I have a report which has two subreport elements and these two reports use different queries with no parameter passing between them.But when I made it this way I got "no document" message.I made it this way bcos I want to show my report the following way- Item___________Amount Wood____________300 Oil_____________500 Total___________800 If I use a master report and a subreport for Total I get the following format- Item___________Amount Wood____________300 Total___________800 Oil_____________500 Total___________800 Can anybody tell me how to do it pls?
  11. mohammad_awadat wrote: set these two report in new report and set your master report first and subreport set second report What do u mean brother.How to set these two report in new report.
  12. I need to show my report the following way- Item____________Amount Wood____________500 Oil_____________400 Coal____________300 Total___________1200 Now how should I set the total portion of this report. Should I use sub report or is there any other way? Can I use multiple query in a single report? if so how?
  13. Is there any good and easy tutorial for sub report? Post edited by: tanvirtonu, at: 2007/12/24 10:01
  14. I m a newbie in iReport.Can anybody pls tell me some basic thing about iReport Expression editor. Assuming that I have three fields in my Db table 1.how to add the value of one field to another field and show result in another field in ireport. 2.How to write a simple condition on a single field. 3.How to display the String-"No Data Found" in PK field of iReport,if no data is found. 4.how to use variable
  15. I m a newbie in iReport.Can anybody pls tell me some basic thing about iReport Expression editor. Assuming that I have three fields in my Db table 1.how to add the value of one field to another field and show result in another field in ireport. 2.How to write a simple condition on a single field. 3.How to display the String-"No Data Found" in PK field of iReport,if no data is found.
×
×
  • Create New...