ola pessoal, consegui fazer um relatorio, hehe
estou indo pro segundo (utilizo o postgresql)
mas alguns problemas
-
como eu faco para fazer uma ‘formula’ textfield expression
*tipo do campo inteiro
if ($F{campo}.intValue() > 50{
50;
} else {
$F{campo};
naum deu certo. -
outro problema eh quando incluo no relatorio na band details um campo tipo time, deixo configurado como os outros e me da o seguinte erro.
Compiling to file… /home/darlan/workspace/relatorio/ponto_funcionario.jasper -> /home/darlan/workspace/relatorio/ponto_funcionario.java Errors compiling /home/darlan/workspace/relatorio/ponto_funcionario.jasper! 9881462 [Thread-574] ERROR digester.Digester - Parse Error at line 313 column 128: Attribute “evaluationTime” with value “now” must have a value from the list "Now Report Page Column Group ". org.xml.sax.SAXParseException: Attribute “evaluationTime” with value “now” must have a value from the list "Now Report Page Column Group ". at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.validateDTDattribute(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:400)