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

sanbez

Members
  • Posts

    296
  • 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 sanbez

  1. Order of subreport parameters is important in this case. Is $P{WHERECLAUSE} placed after $P{P_TODOCNO} and $P{P_FROMDOCNO}? Can you show subreport parameters definition (part of subreport.jrxml)?
  2. Heh heh. Therу are many questions. 1. Position type for "Text field one". I am think its must be = Fix Relative to top 2. Property "Stretch with overflow" on both text fields (Try check big text on text fields) 3. Which output when Text field one = null You have test stackoverflow solution imho
  3. show your attempts and describe existing problems
  4. http://stackoverflow.com/questions/8654851/format-the-text-style-in-text-field-ireport http://stackoverflow.com/questions/1103107/new-lines-in-jasper-reports HTH
  5. There are many way to solve this problem. One of them: You can make 4 frame which contains relevant static text and fields. Define borders for frame to display only top and bottom borders. For instance first frame contains static text "Account #", "Facility Name", "Facility_Address", "Phone#" and text fields $F{Account#}, $F{Facility_Name}, $F{Facility_Address}, $F{Facility_Address}, F{Phone#} On text fields set property "Stretch with overflow" Second frame contains static text and filed for Facility_Type_Code_Description,Facility_Description,Total_Size_Audited, Inspected_For Third frame ... and so on Set property on first frame Position Type = "Fix Relative to top" and set Position Type = "Float" for others frames. Other way: you can add 3 detail band and put corresponding data into this bands...
  6. I didn't found the solution ((( I guess it is unsolvable
  7. Is it great problem? No, it is not porblem. Premature optimization is evil. Less words, less doubts. More coding. Philosophical discussion is not for programmers Just do it Bye
  8. Not 100 query. Only two queries. I am guess that SKU and PRODUCT are fields of table1. Then query for main report: select SKU, PRODUCT from TABLE1 So main report contain fields $F{SKU} and $F{PRUDUCT} You have add subreport into detail band of main report. And pass fields into subreport as parameters. For example $F{SKU} correspond parameter $P{SKU_PAR} of subreport and $F{PRODUCT} correspond parameter $P{PRODUCT_PAR} of subreport. Query of subreport like this: select ORDER, QUANTITY from TABLE2 where TABLE2.field_reference_to_sku = $P{SKU_PAR} and TABLE2.field_reference_to_product = $P{PRODUCT_PAR} I say it again: ONLY TWO queries - first for main report, second for subreport.
  9. Use subreport for fields ORDER # and QUANTITY. Modify query at main report which return only one record with SKU='EL-102-01' Pass value of field SKU as parameter to subreport and use it at subreport query. For SKU='EL-102-01' subreport must return 2 records. Set porperty Stretch='Relative to band height' for fields SKU and PRODUCT
  10. An error has occurred. See error log for more details.
  11. community.jaspersoft.com/questions/968861/how-calculate-male-and-female-ireport
  12. >Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 10 Are you sure that $P{yearFrom} containt 10 characters? www.tutorialspoint.com/java/lang/string_substring_index.htm
  13. 1. "I need to print the values of invoice id, duedateand amountfrom table invoice table. I have used the textfieldexpressions but it is printing as null ." I do not see any fields in detail band 2. You define fields: <field name="description" class="java.lang.String"/> <field name="price_per_item" class="java.math.BigDecimal"/> <field name="quantity" class="java.lang.Integer"/> which not used in query Your report is chaotic. For example <textFieldExpression><![CDATA[$P{amount}]]></textFieldExpression> and report not content parameter $P{amount} ... and so on.... RTFM
  14. www.sql.ru/forum/331327/jasperreports-pdf-kirillica
  15. Not enouth information. Show jrxml and stacktrace. Stacktrace must content name of retrieving field.
  16. Example for count Male. Define variable: Variable class = java.lang.Integer Calculation = Sum ResetType = Report Increment type = None Variable expression = $F{gender}.equals("Male") ? 1 : 0
  17. https://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/
  18. You can use variable which contain previous value of $F{Payment_ID} and set print when expression for detail section if previous value equal current. Now I don't remember way to save previous value, but it exist in answers. You can find it.
  19. Set at report properties whenNoDataType="AllSectionsNoDetail"
×
×
  • Create New...