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

firuzzz

Members
  • Posts

    38
  • Joined

  • Last visited

firuzzz's Achievements

Contributor

Contributor (5/14)

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

Recent Badges

0

Reputation

2

Community Answers

  1. vchiem u should remove that video, having a .java in the build path simply doesn't work, that's a big lie, we all have the same error XXX cannot be resolved to a type
  2. @miditec, this doesn't work on JS 6.6.0, if I put that expression in the band, it's never displayed, must be related on when the band evaluate if it must be displayed or not and the expression always results in FALSE
  3. Thanks but it was definitely something related Payara, a JVM property that I added -Duser.language=en (this is because the translation of logs exception to my OS/Region language (Spanish) is too bad, so I wanted all in English) having to change hundreds of report couldn't be the solution
  4. I recently updated to JS 6.6.0 and trying some reports I noticed some extra characters in currency columns like ARS 1.234,00 when the usual and what I want is $1.234,00 or €1.234.00 (if I change to location/region of the OS) Running the preview (JasperStudio) It doesn't change the ¤ for anything and compiling and running through my app + payara it shows the extras ARS I am using Payara 4, on Windows 10 The pattern is exactly the same as always ¤#,##0.00
  5. That's exactly what I wanted to do, but it used to work in the way that I tried, excluding with some pattern: **.jasper *.jasper, /reportes/*.jasper
  6. I am trying to exclude from a folder the *.jasper files, just want to see the jrxml but is not working https://snag.gy/oLYmVH.jpg Using JS 6.6.0
  7. I found it, right click, show properties, I clicked in "View Menu" from this tab and look what I found https://photos.app.goo.gl/Pw7NPvnqDcc7Nz8t9
  8. the problem is with/in the tab Properties, the rendering of this after every event when you click on something in the Design tab, I closed this tab and JS started to work like always, now I can't find a way to re-open this tab without reset the Perspective
  9. <field name="periodo" class="java.lang.Integer"/> this is the definition of the field, there is no BigDecimal related to periodo. You are right about the SimpleDateFormatter("MMM") , there is no such formatter definition in the source yet there are 2 or 3 errors that point to that file when I double click them As I pointed out, the errors disappear after compiling, that means the JS read "better" the jrxml and notice that there is no such error @reportdev Why would I cast it to String/varchar?, the report works fine, there is no need for that workaround, it's just this annoying bug that marks the file with Errors. PD: I have a lot of reports with a similar query
  10. Every time I open JS, it makes this file with errors, if I go to that jrxml and compile it, the errors disappear, but reopening the IDE, the "problem" is back the problem seems to be this line where the IDE initialy thinks the periodo is a BigDecimal <textFieldExpression><![CDATA[new SimpleDateFormat("MM/yyyy").format(new SimpleDateFormat("yyyyMM").parse($F{periodo}.toString()))]]></textFieldExpression> </textField> <textField>[/code] Tab Problems Errors (3 items) The method parse(String) in the type DateFormat is not applicable for the arguments (BigDecimal) OSDeclaracionAnualF931.jrxml /sindicato/reportes line 0 JRXML Problem The method parse(String) in the type DateFormat is not applicable for the arguments (BigDecimal) value = new SimpleDateFormat("MMM").format(new SimpleDateFormat("yyyyMM").parse(((java.math.BigDecimal)field_periodo.getOldValue()))); OSDeclaracionAnualF931.jrxml /sindicato/reportes line 0 JRXML Problem The method parse(String) in the type DateFormat is not applicable for the arguments (BigDecimal) value = new SimpleDateFormat("MMM").format(new SimpleDateFormat("yyyyMM").parse(((java.math.BigDecimal)field_periodo.getValue()))); OSDeclaracionAnualF931.jrxml /sindicato/reportes line 0 JRXML Problem This is the file: <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="OSDeclaracionAnualF931" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="656860b5-a66f-4d1a-b132-882d4df1c801"> <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="DESDE" class="java.util.Date"> <defaultValueExpression><![CDATA[]]></defaultValueExpression> </parameter> <parameter name="HASTA" class="java.util.Date"> <defaultValueExpression><![CDATA[]]></defaultValueExpression> </parameter> <queryString> <![CDATA[select afip.periodo, count(afip.importe) cant , sum(afip.importe) totalfrom nominaos afip, maestroos mos JOIN provincia_zona pz ON mos.provincia_id = pz.provincia_idwhere afip.periodo >=to_char($P{DESDE}::date, 'yyyyMM'::varchar)::int and afip.periodo <=to_char($P{HASTA}::date, 'yyyyMM'::varchar)::int and afip.zona = pz.zonagroup by afip.periodoorder by afip.periodo]]> </queryString> <field name="periodo" class="java.lang.Integer"/> <field name="cant" class="java.lang.Long"/> <field name="total" class="java.math.BigDecimal"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"> <subreport> <reportElement x="0" y="0" width="555" height="79" uuid="12a56761-7de3-46e6-a4f1-4ec954c8de83"/> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "membreteOS.jasper"]]></subreportExpression> </subreport> <textField pattern="dd/MM/yyyy HH:mm:ss"> <reportElement x="455" y="60" width="100" height="19" uuid="c531d91b-93b1-4c02-b8f6-b18be12e3870"/> <textElement textAlignment="Right"> <font size="9"/> </textElement> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="40" splitType="Stretch"> <staticText> <reportElement x="0" y="0" width="555" height="25" uuid="59888f5c-7d45-46e6-abd8-5ca55f7ca1ba"/> <textElement textAlignment="Center"> <font size="16" isBold="true"/> </textElement> <text><![CDATA[Obra Social: Declaraciones de Remunerativos según F931]]></text> </staticText> <staticText> <reportElement x="341" y="25" width="214" height="15" uuid="0d6c3875-5dea-4eef-9aaf-a81d0d282918"/> <text><![CDATA[¹ corresponde al 9% menos el FSR (10-15%)]]></text> </staticText> </band> </pageHeader> <columnHeader> <band height="20" splitType="Stretch"> <staticText> <reportElement mode="Opaque" x="0" y="0" width="100" height="20" backcolor="#CCCCCC" uuid="0942c542-9e69-41b0-ae0c-54cd6c655df5"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> <text><![CDATA[Periodo]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="100" y="0" width="95" height="20" backcolor="#CCCCCC" uuid="08efc0b2-db13-466b-b6be-83185d6b57eb"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> <text><![CDATA[Cantidad]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="195" y="0" width="120" height="20" backcolor="#CCCCCC" uuid="35423cbb-d1c7-4e87-8429-dc22dcfba212"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> <text><![CDATA[Total REM]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="315" y="0" width="120" height="20" backcolor="#CCCCCC" uuid="1614b4b5-d465-4002-bfd0-954437748196"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> <text><![CDATA[OS (9%)]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="435" y="0" width="120" height="20" backcolor="#CCCCCC" uuid="c849695f-3343-4ecd-8bfc-dcd6aac8a718"/> <textElement textAlignment="Center"> <font size="12" isBold="true"/> </textElement> <text><![CDATA[Distribución¹]]></text> </staticText> </band> </columnHeader> <detail> <band height="15" splitType="Stretch"> <textField> <reportElement x="0" y="0" width="100" height="15" uuid="5f35e64c-b54d-4c3f-955f-6f46ae8248d7"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[new SimpleDateFormat("MM/yyyy").format(new SimpleDateFormat("yyyyMM").parse($F{periodo}.toString()))]]></textFieldExpression> </textField> <textField> <reportElement x="100" y="0" width="95" height="15" uuid="98afa13e-e3e0-4a68-97eb-9f7b7840ee72"/> <box rightPadding="2"/> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA[$F{cant}]]></textFieldExpression> </textField> <textField pattern="¤#,##0.00;¤-#,##0.00"> <reportElement x="195" y="0" width="120" height="15" uuid="955e7739-9f04-48fc-85a1-ebf574a98b28"/> <box rightPadding="2"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{total}]]></textFieldExpression> </textField> <textField pattern="¤#,##0.00;¤-#,##0.00"> <reportElement x="315" y="0" width="120" height="15" uuid="0b4eb0d0-1b94-4e14-b11b-31bf6233a17b"/> <box rightPadding="2"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{total}.multiply(BigDecimal.valueOf(0.09)).setScale(2, RoundingMode.HALF_UP)]]></textFieldExpression> </textField> <textField pattern="¤#,##0.00;¤-#,##0.00"> <reportElement x="435" y="0" width="120" height="15" uuid="23151b97-e274-417d-966e-1617b3ec8062"/> <box rightPadding="2"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA[$F{total}.multiply(BigDecimal.valueOf(0.09)).multiply(BigDecimal.valueOf(0.85)).setScale(2, RoundingMode.HALF_UP)]]></textFieldExpression> </textField> </band> </detail> <pageFooter> <band height="30" splitType="Stretch"/> </pageFooter> <summary> <band height="30" splitType="Stretch"/> </summary></jasperReport>[/code]
  11. I had been using 6.6.0 for a month at least, and suddenly since yesterday it started to take several seconds to open a .jrxml, after that, every time I select a field/component or whatever in the Design tab, the Properties tab starts to "blink" (like trying heavily to build properties/values) it freezes at least 4-6" to UI, and trying multi selecting (holding CTRL) makes things slooooooooower! I'm on Windows 10, java8 181, but my colleague that use Linux (same java and jasper version) have had this problem always This is the JasperStudio.ini -startupplugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834-data@noDefault--launcher.defaultActionopenFile-vmfeatures/jre.win32.win32.x86_64.feature_1.8.0.u171/jre/bin-vmargs-Xms1024m-Xmx2048m-XX:PermSize=128M-XX:MaxPermSize=256M-XX:+CMSClassUnloadingEnabled-XX:+UseConcMarkSweepGC-Dfile.encoding=UTF-8-Djava.net.preferIPv4Stack=true[/code]
  12. Where can I specify a default Data Set for a project? So I don't have to set it every time that a report is opened for the 1st time, every time that open the IDE. If I try to preview, I have to set it one time and when I go to Query Editor it is already set, but going to Query Editor 1st doesn't keep it, closing editor and opening again I have to set it again!
  13. Is it a way to avoid the version comment to be added? <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 -->[/code]Not the whole has the same version, some have 6.4, 6.5, 6.5.1, so this comment generate unnecessary changes on Git
  14. I noticed that when I open jrxml or jasper, a copy of the jrxml is created in the "workspace", and after saving and compiling just the .jasper is modified in the original folder/location from where was opened. I want the original jrxml be modified from wherever it was. How can I configure jasper Studio 6.4 to achieve this? Or how could I disable the workspace and have the normal behavior that any other program will have when opening, editing, saving files. (like iReport)
×
×
  • Create New...